[PATCH v3 03/26] target/m68k: Restore fp rounding mode on vm load

Richard Henderson posted 26 patches 2 months, 2 weeks ago
[PATCH v3 03/26] target/m68k: Restore fp rounding mode on vm load
Posted by Richard Henderson 2 months, 2 weeks ago
Call cpu_m68k_set_fpcr to make sure softfloat internals
are up-to-date with the restored FPCR.

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

diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c
index 1d49f4cb23..4d70cd50b4 100644
--- a/target/m68k/cpu.c
+++ b/target/m68k/cpu.c
@@ -402,6 +402,7 @@ static int fpu_post_load(void *opaque, int version)
 {
     M68kCPU *s = opaque;
 
+    cpu_m68k_set_fpcr(&s->env, s->env.fpcr);
     cpu_m68k_set_fpsr(&s->env, s->env.fpsr);
     return 0;
 }
-- 
2.43.0
Re: [PATCH v3 03/26] target/m68k: Restore fp rounding mode on vm load
Posted by Philippe Mathieu-Daudé 2 months, 2 weeks ago
On 9/9/24 19:28, Richard Henderson wrote:
> Call cpu_m68k_set_fpcr to make sure softfloat internals
> are up-to-date with the restored FPCR.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   target/m68k/cpu.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>