On 10/26/26 12:52, Philippe Mathieu-Daudé wrote:
On SME2 systems, Linux sets SMCR_EL1.EZT0 in cpu_enable_sme2()
to allow user space to access ZT0.

linux-user already initializes SMCR_EL1.LEN and FA64 to match the
kernel's setup, but leaves EZT0 clear (see commit 3aad4bc8beb9
"target/arm: Add zt0_excp_el to DisasContext"). Set EZT0 when SME2
is present to keep the emulated EL1 state consistent with Linux.

This has no functional effect because CONFIG_USER_ONLY omits the
ZT0 trap checks.

Reported-by: Samyuktha K<[email protected]>
Suggested-by: Sritam Paltasingh<[email protected]>
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
  target/arm/cpu.c | 4 ++++
  1 file changed, 4 insertions(+)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to