Skip to content
Snippets Groups Projects
Commit 454b0a65 authored by oharboe's avatar oharboe
Browse files

fix mode output when illegal arm mode is detected. Now prints illegal mode for index -1.

git-svn-id: svn://svn.berlios.de/openocd/trunk@664 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 55224472
No related branches found
No related tags found
No related merge requests found
......@@ -70,11 +70,14 @@ char* armv4_5_core_reg_list[] =
"cpsr", "spsr_fiq", "spsr_irq", "spsr_svc", "spsr_abt", "spsr_und"
};
char* armv4_5_mode_strings[] =
char * armv4_5_mode_strings_list[] =
{
"User", "FIQ", "IRQ", "Supervisor", "Abort", "Undefined", "System"
"Illegal mode value", "User", "FIQ", "IRQ", "Supervisor", "Abort", "Undefined", "System"
};
/* Hack! Yuk! allow -1 index, which simplifies codepaths elsewhere in the code */
char** armv4_5_mode_strings = armv4_5_mode_strings_list+1;
char* armv4_5_state_strings[] =
{
"ARM", "Thumb", "Jazelle"
......
......@@ -36,7 +36,7 @@ typedef enum armv4_5_mode
ARMV4_5_MODE_ANY = -1
} armv4_5_mode_t;
extern char* armv4_5_mode_strings[];
extern char** armv4_5_mode_strings;
typedef enum armv4_5_state
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment