summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorPeter Maydell2017-04-20 18:32:28 +0200
committerPeter Maydell2017-04-20 18:39:17 +0200
commit2c4a7cc5afb1bfc1728a39abd951ddd7714c476e (patch)
tree189fe1168fa89ab97bc4f8133e8853d6779d50a3 /target/arm/cpu.h
parenttarget/arm: Add missing entries to excnames[] for log strings (diff)
downloadqemu-2c4a7cc5afb1bfc1728a39abd951ddd7714c476e.tar.gz
qemu-2c4a7cc5afb1bfc1728a39abd951ddd7714c476e.tar.xz
qemu-2c4a7cc5afb1bfc1728a39abd951ddd7714c476e.zip
arm: Move excnames[] array into arm_log_exceptions()
The excnames[] array is defined in internals.h because we used to use it from two different source files for handling logging of AArch32 and AArch64 exception entry. Refactoring means that it's now used only in arm_log_exception() in helper.c, so move the array into that function. Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 1491821097-5647-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index e6f05e23c3..ab869431aa 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -58,7 +58,7 @@
#define EXCP_SEMIHOST 16 /* semihosting call */
#define EXCP_NOCP 17 /* v7M NOCP UsageFault */
#define EXCP_INVSTATE 18 /* v7M INVSTATE UsageFault */
-/* NB: new EXCP_ defines should be added to the excnames[] array too */
+/* NB: add new EXCP_ defines to the array in arm_log_exception() too */
#define ARMV7M_EXCP_RESET 1
#define ARMV7M_EXCP_NMI 2