aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorRui Wang <wangrui@loongson.cn>2022-11-07 10:45:26 +0800
committerSong Gao <gaosong@loongson.cn>2022-11-07 10:54:11 +0800
commite913bace61c539a88feb489b424554ebb2d5d3a3 (patch)
tree7aceb457a58bca52429bdbbb9217ad5ee9e0ea9f /target
parentc8885b8839dfe39ee7b02dedcbf79af9087c9079 (diff)
downloadqemu-e913bace61c539a88feb489b424554ebb2d5d3a3.zip
qemu-e913bace61c539a88feb489b424554ebb2d5d3a3.tar.gz
qemu-e913bace61c539a88feb489b424554ebb2d5d3a3.tar.bz2
target/loongarch: Fix return value of CHECK_FPE
Regarding the patchset v3 has been merged into main line, and not approved, this patch updates to patchset v4. Fixes: 2419978c ("target/loongarch: Fix emulation of float-point disable exception") Link: https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg00808.html Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Rui Wang <wangrui@loongson.cn> Message-Id: <20221107024526.702297-3-wangrui@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'target')
-rw-r--r--target/loongarch/insn_trans/trans_farith.c.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/insn_trans/trans_farith.c.inc b/target/loongarch/insn_trans/trans_farith.c.inc
index e2dec75..7081fbb 100644
--- a/target/loongarch/insn_trans/trans_farith.c.inc
+++ b/target/loongarch/insn_trans/trans_farith.c.inc
@@ -7,7 +7,7 @@
#define CHECK_FPE do { \
if ((ctx->base.tb->flags & HW_FLAGS_EUEN_FPE) == 0) { \
generate_exception(ctx, EXCCODE_FPD); \
- return false; \
+ return true; \
} \
} while (0)
#else