]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/aarch64: Support ZT_MAGIC signal frame record
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Jul 2025 17:55:10 +0000 (18:55 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 25 Jul 2025 23:11:48 +0000 (13:11 -1000)
commite35215db401113867e20634622a370c0e8931797
tree3d5e736b1952c699de993abde6dd297228c70c94
parent99870aff907b1c863cd32558b543f0ab0d0e74ba
linux-user/aarch64: Support ZT_MAGIC signal frame record

FEAT_SME2 adds the ZT0 register, whose contents may need to be
preserved and restored on signal handler entry and exit.  This is
done with a new ZT_MAGIC record.  We forgot to implement support for
this in our linux-user code before enabling the SME2p1 emulation,
which meant that a signal handler using SME would corrupt the ZT0
register value, and code that attempted to unwind an exception from
inside a signal handler would not work.

Add the missing record handling.

Fixes: 7b1613a1020d2942 ("target/arm: Enable FEAT_SME2p1 on -cpu max")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250725175510.3864231-4-peter.maydell@linaro.org>
linux-user/aarch64/signal.c