]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Expand pstate to 64 bits
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 8 Oct 2025 21:55:36 +0000 (14:55 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Oct 2025 12:19:09 +0000 (13:19 +0100)
commitde83d60a84f25b9518a91bcb996f60a911d03e48
treef5723830692ac613e1ee5db15100c15dfd7b4f56
parent38f8b024d80d276429dad0adadc67789aa89730a
target/arm: Expand pstate to 64 bits

The ARM now defines 36 bits in SPSR_ELx in aarch64 mode, so
it's time to bite the bullet and extend PSTATE to match.

Most changes are straightforward, adjusting printf formats,
changing local variable types.  More complex is migration,
where to maintain backward compatibility a new pstate64
record is introduced, and only when one of the extensions
that sets bits 32-35 are active.

The fate of gdbstub is left undecided for the moment.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20251008215613.300150-37-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/cpu.h
target/arm/gdbstub64.c
target/arm/helper.c
target/arm/machine.c
target/arm/tcg/helper-a64.c
target/arm/tcg/translate.h