summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorLucas Mateus Castro (alqotel)2022-08-05 16:15:22 +0200
committerDaniel Henrique Barboza2022-08-31 19:08:05 +0200
commit08e185cadb24b038574dad676d4dae8488ba8b6e (patch)
treec7e29faf9a3e75f097899d53efcd25d5ee33a486 /include/hw
parentfpu: Add rebias bool, value and operation (diff)
downloadqemu-08e185cadb24b038574dad676d4dae8488ba8b6e.tar.gz
qemu-08e185cadb24b038574dad676d4dae8488ba8b6e.tar.xz
qemu-08e185cadb24b038574dad676d4dae8488ba8b6e.zip
target/ppc: Bugfix FP when OE/UE are set
When an overflow exception occurs and OE is set the intermediate result should be adjusted (by subtracting from the exponent) to avoid rounding to inf. The same applies to an underflow exceptionion and UE (but adding to the exponent). To do this set the fp_status.rebias_overflow when OE is set and fp_status.rebias_underflow when UE is set as the FPU will recalculate in case of a overflow/underflow if the according rebias* is set. Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220805141522.412864-3-lucas.araujo@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions