target/arm: Add missing entries to excnames[] for log strings

Recent changes have added new EXCP_ values to ARM but forgot
to update the excnames[] array which is used to provide
human-readable strings when printing information about the
exception for debug logging. Add the missing entries, and
add a comment to the list of #defines to help avoid the mistake
being repeated in future.

Backports commit 32b81e620ea562d56ab2733421b5da1082b237a2 from qemu
This commit is contained in:
Peter Maydell 2018-03-02 14:37:30 -05:00 committed by Lioncash
parent 13242af398
commit 1af1944903
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,8 @@
#define EXCP_VFIQ 15 #define EXCP_VFIQ 15
#define EXCP_SEMIHOST 16 /* semihosting call */ #define EXCP_SEMIHOST 16 /* semihosting call */
#define EXCP_NOCP 17 /* v7M NOCP UsageFault */ #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 */
#define ARMV7M_EXCP_RESET 1 #define ARMV7M_EXCP_RESET 1
#define ARMV7M_EXCP_NMI 2 #define ARMV7M_EXCP_NMI 2

View File

@ -72,6 +72,8 @@ static const char * const excnames[] = {
"Virtual IRQ", "Virtual IRQ",
"Virtual FIQ", "Virtual FIQ",
"Semihosting call", "Semihosting call",
"v7M NOCP UsageFault",
"v7M INVSTATE UsageFault",
}; };
/* Scale factor for generic timers, ie number of ns per tick. /* Scale factor for generic timers, ie number of ns per tick.