From: Jan Beulich Date: Mon, 5 Feb 2018 09:14:15 +0000 (+0100) Subject: x86emul: add missing suffixes in test harness X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~632 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c82edf29eaa12cdc4a4365f970103c4e21b555d8;p=xen.git x86emul: add missing suffixes in test harness 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 Reviewed-by: Andrew Cooper --- diff --git a/tools/tests/x86_emulator/test_x86_emulator.c b/tools/tests/x86_emulator/test_x86_emulator.c index b41c368335..628a382e92 100644 --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -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) );