mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/arm/sme: Rebuild hflags in aarch64_set_svcr()
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-7-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
fccb49182e
commit
f431855714
4 changed files with 6 additions and 19 deletions
|
@ -89,14 +89,8 @@ void cpu_loop(CPUARMState *env)
|
|||
|
||||
switch (trapnr) {
|
||||
case EXCP_SWI:
|
||||
/*
|
||||
* On syscall, PSTATE.ZA is preserved, along with the ZA matrix.
|
||||
* PSTATE.SM is cleared, per SMSTOP, which does ResetSVEState.
|
||||
*/
|
||||
/* On syscall, PSTATE.ZA is preserved, PSTATE.SM is cleared. */
|
||||
aarch64_set_svcr(env, 0, R_SVCR_SM_MASK);
|
||||
if (FIELD_EX64(env->svcr, SVCR, SM)) {
|
||||
arm_rebuild_hflags(env);
|
||||
}
|
||||
ret = do_syscall(env,
|
||||
env->xregs[8],
|
||||
env->xregs[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue