Skip to content

Commit 92838c3

Browse files
committed
[#60890] arm64/helper: Move setting VFP registers from init to reset
1 parent e520f57 commit 92838c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/arm64/helper.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,6 @@ static void cpu_init_core_config(CPUState *env, uint32_t id)
459459
cpu_abort(env, "Bad CPU ID: %x\n", id);
460460
break;
461461
}
462-
463-
env->vfp.xregs[ARM_VFP_FPEXC] = 0x700; // Bits 8-10 are RES1 for A53, A75 and R52 where it's accessible.
464-
env->vfp.xregs[ARM_VFP_FPSID] = env->arm_core_config.reset_fpsid;
465462
}
466463

467464
void cpu_init_v8(CPUState *env, uint32_t id)

arch/arm64/helper_v7.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ void cpu_reset_vfp(CPUState *env)
368368
set_default_nan_mode(1, &env->vfp.standard_fp_status);
369369
set_float_detect_tininess(float_tininess_before_rounding, &env->vfp.fp_status);
370370
set_float_detect_tininess(float_tininess_before_rounding, &env->vfp.standard_fp_status);
371+
372+
env->vfp.xregs[ARM_VFP_FPEXC] = 0x700; // Bits 8-10 are RES1 for A53, A75 and R52 where it's accessible.
373+
env->vfp.xregs[ARM_VFP_FPSID] = env->arm_core_config.reset_fpsid;
371374
}
372375

373376
/* return 0 if not found */

0 commit comments

Comments
 (0)