summaryrefslogtreecommitdiffstats
path: root/bsd-user/elfload.c
diff options
context:
space:
mode:
authorAndreas Gustafsson2011-12-11 21:46:32 +0100
committermalc2011-12-11 21:46:32 +0100
commitf7e80adf3cc4b99b8230e6474d0518363773915f (patch)
treebfc311ea3ac0a4d42f68e00833197fbb22c3d6d4 /bsd-user/elfload.c
parenthw/arm_gic.c: Ignore attempts to complete nonexistent IRQs (diff)
downloadqemu-f7e80adf3cc4b99b8230e6474d0518363773915f.tar.gz
qemu-f7e80adf3cc4b99b8230e6474d0518363773915f.tar.xz
qemu-f7e80adf3cc4b99b8230e6474d0518363773915f.zip
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 <gson@gson.org>
Diffstat (limited to 'bsd-user/elfload.c')
0 files changed, 0 insertions, 0 deletions