]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Clear FPMR on ResetSVEState
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 22 May 2026 22:02:13 +0000 (15:02 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 26 May 2026 10:41:00 +0000 (11:41 +0100)
FPMR is cleared when entering or exiting Streaming Mode.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260522220306.235200-12-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c

index 7eb7031294626ae208af84f7a7cd0e16bc8c1a40..3d6e7f1ccc18e36c9ec27e95de7ac5d9b82d06b1 100644 (file)
@@ -4856,6 +4856,7 @@ static void arm_reset_sve_state(CPUARMState *env)
     /* Recall that FFR is stored as pregs[16]. */
     memset(env->vfp.pregs, 0, sizeof(env->vfp.pregs));
     vfp_set_fpsr(env, 0x0800009f);
+    env->vfp.fpmr = 0;
 }
 
 void aarch64_set_svcr(CPUARMState *env, uint64_t new, uint64_t mask)