target/loongarch: Fix return value of CHECK_FPE
authorRui Wang <wangrui@loongson.cn>
Mon, 7 Nov 2022 02:45:26 +0000 (10:45 +0800)
committerSong Gao <gaosong@loongson.cn>
Mon, 7 Nov 2022 02:54:11 +0000 (10:54 +0800)
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>
target/loongarch/insn_trans/trans_farith.c.inc

index e2dec75dfb41d1b604220fa4fb899f56fd266ac5..7081fbb89bbccb495897939efb74db8f21ae029f 100644 (file)
@@ -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