Re: [Qemu-devel] [PATCH] Improve cmpxchg emulation.

2010-09-08 Thread malc
On Wed, 8 Sep 2010, Jonathan A. Kollasch wrote: > Change the accumulator only after performing the redundant write during > cmpxchg. This fixes pthreaded programs using fork() in NetBSD/i386 > guests. > > >From Andreas Gustafsson in https://bugs.launchpad.net/qemu/+bug/569760. This is tab damag

[Qemu-devel] [PATCH] Improve cmpxchg emulation.

2010-09-08 Thread Jonathan A. Kollasch
Change the accumulator only after performing the redundant write during cmpxchg. This fixes pthreaded programs using fork() in NetBSD/i386 guests. >From Andreas Gustafsson in https://bugs.launchpad.net/qemu/+bug/569760. Signed-off-by: Jonathan A. Kollasch --- target-i386/translate.c | 12 +++