diff mbox series

[v4,05/24] target/m68k: Update FPSR for FMOVECR

Message ID 20250224171444.440135-6-richard.henderson@linaro.org (mailing list archive)
State New
Headers show
Series target/m68k: fpu improvements | expand

Commit Message

Richard Henderson Feb. 24, 2025, 5:14 p.m. UTC
This instruction sets CC and EXC bits just like any other.
So far we do not properly emulate inexact for the various
rom entries, but we can certainly update CC correctly.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/m68k/fpu_helper.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c
index 206ceeba16..2fa0752277 100644
--- a/target/m68k/fpu_helper.c
+++ b/target/m68k/fpu_helper.c
@@ -426,6 +426,7 @@  void HELPER(ftst)(CPUM68KState *env, FPReg *val)
 void HELPER(fconst)(CPUM68KState *env, FPReg *val, uint32_t offset)
 {
     val->d = fpu_rom[offset];
+    HELPER(ftst)(env, val);
 }
 
 typedef int (*float_access)(CPUM68KState *env, uint32_t addr, FPReg *fp,