Sparc: fix carry flag handling (Solaris bootblk fix)
authorArtyom Tarasenko <atar4qemu@gmail.com>
Wed, 4 Nov 2009 19:38:26 +0000 (19:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 4 Nov 2009 19:38:26 +0000 (19:38 +0000)
commit879393a8071619a86765385cc7105361d1933aa1
tree0bfb80cad7b80cb90f1cf387c569b469e49f3f70
parent41cf872ed81988a1034315feabba118aa76577bc
Sparc: fix carry flag handling (Solaris bootblk fix)

The page 108 of the SPARC Version 8 Architecture Manual describes
that addcc and addxcc shall compute carry flag the same way.
The page 110 claims the same about subcc and subxcc instructions.
This patch fixes carry computation in corner cases and removes redundant code.
The most visible effect of the patch is enabling Solaris boot when using OBP.

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
[blauwirbel@gmail.com: cleaned up formatting]
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c