]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86emul: add missing suffixes in test harness
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Feb 2018 09:14:15 +0000 (10:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Feb 2018 09:14:15 +0000 (10:14 +0100)
I'm in the process of putting together a gas change issuing at least
warnings when the intended size of a memory operation can't be deduced
from another (register) operand. Add missing suffixes to silence such
future diagnostics.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c

index b41c368335094b582167a4a75f9a07b33154feac..628a382e920dda727e0a2ffd11829e54e2895f1a 100644 (file)
@@ -743,13 +743,13 @@ int main(int argc, char **argv)
         regs.eflags |= (i & 0x100) ? X86_EFLAGS_AF : 0;
         if ( i & 0x400 )
             __asm__ (
-                "pushf; and $0xffffffee,(%%esp); or %1,(%%esp); popf; das; "
+                "pushf; andl $~0x11,(%%esp); or %1,(%%esp); popf; das; "
                 "pushf; popl %1"
                 : "=a" (bcdres_native), "=r" (regs.eflags)
                 : "0" (i & 0xff), "1" (regs.eflags) );
         else
             __asm__ (
-                "pushf; and $0xffffffee,(%%esp); or %1,(%%esp); popf; daa; "
+                "pushf; andl $~0x11,(%%esp); or %1,(%%esp); popf; daa; "
                 "pushf; popl %1"
                 : "=a" (bcdres_native), "=r" (regs.eflags)
                 : "0" (i & 0xff), "1" (regs.eflags) );