target-ppc: fix nego and subf*o instructions
commit8e7a6db96566fe4162edaeb3e8b62fc8004d1598
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 31 Mar 2013 14:33:16 +0000 (31 14:33 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 21:02:40 +0000 (26 23:02 +0200)
tree3693d69998d3f6304f702f07bcb108ee3551c7fe
parent2cf3eb6df552cee74b52de9989e270b74e42847e
target-ppc: fix nego and subf*o instructions

The overflow computation of nego and subf*o instructions has been broken
in commit ffe30937. Contrary to other targets, the instruction is subtract
from an not subtract on PowerPC.

This patch fixes the issue by using the correct argument in the xor
computation. Thanks to Peter Maydell for the hint.

With this change the PPC emulation passes the Gwenole Beauchesne
testsuite again.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c