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 --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,
--
2.43.0