summary refs log tree commit diff stats
path: root/monitor/misc.c
diff options
context:
space:
mode:
authorVíctor Colombo <victor.colombo@eldorado.org.br>2022-10-05 09:15:51 -0300
committerDaniel Henrique Barboza <danielhb413@gmail.com>2022-10-17 16:15:09 -0300
commitc348e09fb077553469f3d9be41ba671e63733a9b (patch)
tree279a500bcc871cfdb13cac090b4e6c6b0e248ebb /monitor/misc.c
parent9f6621bd161e95f4fe25c97bffc4f1a97a536138 (diff)
downloadfocaccia-qemu-c348e09fb077553469f3d9be41ba671e63733a9b.tar.gz
focaccia-qemu-c348e09fb077553469f3d9be41ba671e63733a9b.zip
target/ppc: Fix xvcmp* clearing FI bit
Vector instructions in general are not supposed to change the FI bit.
However, xvcmp* instructions are calling gen_helper_float_check_status,
which is leading to a cleared FI flag where it should be kept
unchanged.
As helper_float_check_status only affects inexact, overflow and
underflow, and the xvcmp* instructions don't change these flags, this
issue can be fixed by removing the call to helper_float_check_status.
By doing this, the FI bit in FPSCR will be preserved as expected.

Fixes: 00084a25adf ("target/ppc: introduce separate VSX_CMP macro for xvcmp* instructions")
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221005121551.27957-1-victor.colombo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'monitor/misc.c')
0 files changed, 0 insertions, 0 deletions