aboutsummaryrefslogtreecommitdiff
path: root/qapi/qmp-registry.c
diff options
context:
space:
mode:
authorLuis Pires <luis.pires@eldorado.org.br>2021-08-23 12:02:35 -0300
committerDavid Gibson <david@gibson.dropbear.id.au>2021-09-29 19:37:39 +1000
commita3d67f3e5d5bfe480eeb83d24546191b681b7c38 (patch)
tree38fe501ecc44d7866f844afa54a7d3d22e1060d8 /qapi/qmp-registry.c
parentf640afec1a14e99d561f7da93e3fc8a5e1206384 (diff)
downloadqemu-a3d67f3e5d5bfe480eeb83d24546191b681b7c38.zip
qemu-a3d67f3e5d5bfe480eeb83d24546191b681b7c38.tar.gz
qemu-a3d67f3e5d5bfe480eeb83d24546191b681b7c38.tar.bz2
target/ppc: fix setting of CR flags in bcdcfsq
According to the ISA, CR should be set based on the source value, and not on the packed decimal result. The way this was implemented would cause GT, LT and EQ to be set incorrectly when the source value was too large and the 31 least significant digits of the packed decimal result ended up being all zero. This would happen for source values of +/-10^31, +/-10^32, etc. The new implementation fixes this and also skips the result calculation altogether in case of src overflow. Signed-off-by: Luis Pires <luis.pires@eldorado.org.br> Message-Id: <20210823150235.35759-1-luis.pires@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'qapi/qmp-registry.c')
0 files changed, 0 insertions, 0 deletions