diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-22 03:41:14 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-22 03:41:14 -0800 |
commit | dd9894f481d127266c201d7075ecbdd34b034124 (patch) | |
tree | f96d110f7d54368b9435fc9d96018a21c51bfcf0 /src/target/arm920t.c | |
parent | ff810723e051ed1f86cffcb565ade6b4d1fc50c8 (diff) |
ARM: arm_set_cpsr() handles T and J bits
Have arm_set_cpsr() handle the two core state flags, updating
the CPU state. This eliminates code in various debug_entry()
paths, and marginally improves handling of the J bit.
Catch and comment a few holes in the handling of the J bit on
ARM926ejs cores ... it's unlikely our users will care about
Jazelle mode, but we can at least warn of Impending Doom. If
anyone does use it, these breadcrumbs may help them to find
the right path through the code.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm920t.c')
-rw-r--r-- | src/target/arm920t.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c index 739df3ea..8a03554f 100644 --- a/src/target/arm920t.c +++ b/src/target/arm920t.c @@ -603,7 +603,6 @@ int arm920t_soft_reset_halt(struct target *target) cpsr |= 0xd3; arm_set_cpsr(armv4_5, cpsr); armv4_5->cpsr->dirty = 1; - armv4_5->core_state = ARMV4_5_STATE_ARM; /* start fetching from 0x0 */ buf_set_u32(armv4_5->core_cache->reg_list[15].value, 0, 32, 0x0); |