target-arm: Dump 32-bit CPU state if 64 bit CPU is in AArch32
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Apr 2014 18:19:15 +0000 (19:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Apr 2014 20:34:06 +0000 (21:34 +0100)
commit177311157c9dbd408728620771b1fceb65d26846
tree4358dace23101bfefb68dc24030fb20e1a49877a
parent7633378d5fbe932c9d38ae8961ef035d1ed26bfd
target-arm: Dump 32-bit CPU state if 64 bit CPU is in AArch32

For system mode, we may have a 64 bit CPU which is currently executing
in AArch32 state; if we're dumping CPU state to the logs we should
therefore show the correct state for the current execution state,
rather than hardwiring it based on the type of the CPU. For consistency
with how we handle translation, we leave the 32 bit dump function
as the default, and have it hand off control to the 64 bit dump code
if we're in AArch64 mode.

Reported-by: Rob Herring <rob.herring@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu-qom.h
target-arm/cpu64.c
target-arm/translate.c
target-arm/translate.h