]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Report HCR_EL2.{NV,NV1,NV2} in cpu dumps
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:56 +0000 (14:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:44:45 +0000 (14:44 +0000)
commitbde0e60be4f0d1bef6dfb8fea102d42cf98a1bff
treef5bb42b90a1ab0f6507e61b1b234d8af5683dad5
parentb1b7a2b555a5a88f7277e32d250589f9ad216c9b
target/arm: Report HCR_EL2.{NV,NV1,NV2} in cpu dumps

When interpreting CPU dumps where FEAT_NV and FEAT_NV2 are in use,
it's helpful to include the values of HCR_EL2.{NV,NV1,NV2} in the CPU
dump format, as a way of distinguishing when we are in EL1 as part of
executing guest-EL2 and when we are just in normal EL1.

Add the bits to the end of the log line that shows PSTATE and similar
information:

PSTATE=000003c9 ---- EL2h  BTYPE=0 NV NV2

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
target/arm/cpu.c