ARMv7-A: use standard ARM core states

We don't want an ARMv7-specific core state enumeration just to
add ThumbEE state.  Update the generic stuff to handle that,
and replace the V7-specific bits with it.

For Cortex-A8:  on debug entry, check both the T and J bits
instead of just the T bit.  When the J bit is set, set the
right state and warn appropriately.

(And while we're at it, move the generic arm struct to the front
of the v7a structure, for somewhat better code generation.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell
2009-11-19 02:33:01 -08:00
parent f320b12289
commit 195ce5eb27
5 changed files with 43 additions and 31 deletions

View File

@@ -227,7 +227,7 @@ enum armv4_5_mode armv4_5_number_to_mode(int number)
char* armv4_5_state_strings[] =
{
"ARM", "Thumb", "Jazelle"
"ARM", "Thumb", "Jazelle", "ThumbEE",
};
static const struct armv4_5_core_reg armv4_5_core_reg_list_arch_info[] =