target/arm/sme: Rebuild hflags in set_pstate() helpers
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20230112102436.1913-3-philmd@linaro.org Message-Id: <20230112004322.161330-1-richard.henderson@linaro.org> [PMD: Split patch in multiple tiny steps] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
535ca76425
commit
3c9ee54894
@ -45,6 +45,7 @@ void helper_set_pstate_sm(CPUARMState *env, uint32_t i)
|
||||
}
|
||||
env->svcr ^= R_SVCR_SM_MASK;
|
||||
arm_reset_sve_state(env);
|
||||
arm_rebuild_hflags(env);
|
||||
}
|
||||
|
||||
void helper_set_pstate_za(CPUARMState *env, uint32_t i)
|
||||
@ -65,6 +66,7 @@ void helper_set_pstate_za(CPUARMState *env, uint32_t i)
|
||||
if (i) {
|
||||
memset(env->zarray, 0, sizeof(env->zarray));
|
||||
}
|
||||
arm_rebuild_hflags(env);
|
||||
}
|
||||
|
||||
void helper_sme_zero(CPUARMState *env, uint32_t imm, uint32_t svl)
|
||||
|
@ -1855,7 +1855,6 @@ static void handle_msr_i(DisasContext *s, uint32_t insn,
|
||||
if ((crm & 4) && i != s->pstate_za) {
|
||||
gen_helper_set_pstate_za(cpu_env, tcg_constant_i32(i));
|
||||
}
|
||||
gen_rebuild_hflags(s);
|
||||
} else {
|
||||
s->base.is_jmp = DISAS_NEXT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user