]> Git Repo - qemu.git/commit
target-i386: fix cmpxchg instruction emulation
authorAndreas Gustafsson <[email protected]>
Sun, 11 Dec 2011 20:46:32 +0000 (00:46 +0400)
committermalc <[email protected]>
Sun, 11 Dec 2011 20:46:32 +0000 (00:46 +0400)
commitf7e80adf3cc4b99b8230e6474d0518363773915f
treebfc311ea3ac0a4d42f68e00833197fbb22c3d6d4
parent217bfb445b54db618a30f3a39170bebd9fd9dbf2
target-i386: fix cmpxchg instruction emulation

When the i386 cmpxchg instruction is executed with a memory operand
and the comparison result is "unequal", do the memory write before
changing the accumulator instead of the other way around, because
otherwise the new accumulator value will incorrectly be used in the
comparison when the instruction is restarted after a page fault.

This bug was originally reported on 2010-04-25 as
https://bugs.launchpad.net/qemu/+bug/569760

Signed-off-by: Andreas Gustafsson <[email protected]>
target-i386/translate.c
This page took 0.02464 seconds and 4 git commands to generate.