On 7/28/25 09:43, Michael Tokarev wrote:
On 28.07.2025 21:16, Richard Henderson wrote:
Move arm_reset_sve_state() calls to aarch64_set_svcr().
(cherry picked from commit 7f2a01e7368f960fadea38f437d0f6de7f249686)
+/* ResetSVEState */
+static void arm_reset_sve_state(CPUARMState *env)
+{
+ memset(env->vfp.zregs, 0, sizeof(env->vfp.zregs));
+ /* Recall that FFR is stored as pregs[16]. */
+ memset(env->vfp.pregs, 0, sizeof(env->vfp.pregs));
+ vfp_set_fpcr(env, 0x0800009f);
+}
-/* ResetSVEState */
-void arm_reset_sve_state(CPUARMState *env)
-{
- memset(env->vfp.zregs, 0, sizeof(env->vfp.zregs));
- /* Recall that FFR is stored as pregs[16]. */
- memset(env->vfp.pregs, 0, sizeof(env->vfp.pregs));
- vfp_set_fpsr(env, 0x0800009f);
-}
It's a fun one. Please note vfp_set_fpsr vs vfp_set_fpcr.
cf. 1edc3d43f20df0d04f8d00b906ba19fed37512a5 which has been
back-ported to 7.2 already :)
Unfortunately the order of these commits is different than
the one on master.
/mjt
Oh, whoops! Thanks for the catch!
r~