mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86_emulate: Fix build with some versions of gcc targeting i386.
Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
61c7ab294f
commit
dedca852d0
1 file changed
+2
@@ -2101,9 +2101,11 @@ x86_emulate(
|
||||
case 4:
|
||||
_regs.edx = (uint32_t)(((int32_t)_regs.eax < 0) ? -1 : 0);
|
||||
break;
|
||||
#ifdef __x86_64__ /* compile warning with some versions of 32-bit gcc */
|
||||
case 8:
|
||||
_regs.edx = ((int64_t)_regs.eax < 0) ? -1 : 0;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||