Re: [Xen-devel] [PATCH 2/2] test_x86_emulate: adjust CMPXCHG test

2015-05-01 Thread Jan Beulich
>>> Eugene Korenevsky 04/28/15 11:54 PM >>> >--- a/tools/tests/x86_emulator/test_x86_emulator.c >+++ b/tools/tests/x86_emulator/test_x86_emulator.c >@@ -288,7 +288,7 @@ int main(int argc, char **argv) >rc = x86_emulate(&ctxt, &emulops); >if ( (rc != X86EMUL_OKAY) || >(*res != 0x923456AA) || >-

[Xen-devel] [PATCH 2/2] test_x86_emulate: adjust CMPXCHG test

2015-04-28 Thread Eugene Korenevsky
CMPXCHG: in the case of inequality of the rAX and the operand, need to check CF, PF, AF, SF and OF flags as well. This adjustment covers the fix of incorrect comparison during CMPXCHG emulation. Signed-off-by: Eugene Korenevsky --- tools/tests/x86_emulator/test_x86_emulator.c | 2 +- 1 file cha