diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-07 14:55:08 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-07 14:57:44 -0800 |
commit | bbb754aa395be74ceac0c01640fb33c0fae52c20 (patch) | |
tree | 54c581f26df52ec5b0f7fe3efe73b406d3acdb88 /src/target/armv7m.c | |
parent | 19ad7f828ba36f398f52749c2f33e25a3ea78ac2 (diff) | |
download | riscv-openocd-bbb754aa395be74ceac0c01640fb33c0fae52c20.zip riscv-openocd-bbb754aa395be74ceac0c01640fb33c0fae52c20.tar.gz riscv-openocd-bbb754aa395be74ceac0c01640fb33c0fae52c20.tar.bz2 |
target: add debug_reason_name()
Provide and use debug_reason_name() instead of expecting targets
to call Jim_Nvp_value2name_simple(). Less dependency on Jim, and
the code becomes more clear too.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv7m.c')
-rw-r--r-- | src/target/armv7m.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c index fc3f47c..d4f6309 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -480,8 +480,7 @@ int armv7m_arch_state(struct target *target) LOG_USER("target halted due to %s, current mode: %s %s\n" "xPSR: %#8.8" PRIx32 " pc: %#8.8" PRIx32 " %csp: %#8.8" PRIx32, - Jim_Nvp_value2name_simple(nvp_target_debug_reason, - target->debug_reason)->name, + debug_reason_name(target), armv7m_mode_strings[armv7m->core_mode], armv7m_exception_string(armv7m->exception_number), buf_get_u32(armv7m->core_cache->reg_list[ARMV7M_xPSR].value, 0, 32), |