OSDN Git Service

target/arm: Make arm_cpu_dump_state() handle the M-profile XPSR
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:52 +0000 (15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:52 +0000 (15:21 +0100)
commit5b906f3589443a3c69d8feeaac37263843ecfb8d
tree6be2f2d8b668d3b0e030f9b4c833636b2ed46c7c
parenteeade0017698ada9d3049ec9021d094d96304f58
target/arm: Make arm_cpu_dump_state() handle the M-profile XPSR

Make the arm_cpu_dump_state() debug logging handle the M-profile XPSR
rather than assuming it's an A-profile CPSR.  On M profile the PSR
line of a register dump will now look like this:

XPSR=41000000 -Z-- T priv-thread

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1501692241-23310-12-git-send-email-peter.maydell@linaro.org
target/arm/translate.c