From: Keir Fraser Date: Sun, 31 Oct 2010 19:01:33 +0000 (+0000) Subject: x86_emulate: Fix build with some versions of gcc targeting i386. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11302 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dedca852d0bd91db2821e6ef7498165bee8404a4;p=xen.git x86_emulate: Fix build with some versions of gcc targeting i386. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index 7ad0dd5d2f..d6586d6944 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -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;