diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-01-27 13:24:21 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-01-27 13:24:21 -0800 |
commit | 2b5c444a32725dd75833348e04620bd7b1bda2ad (patch) | |
tree | 31767c32ad408f2402ad9cbb3ce5673d4e614f73 | |
parent | 30365886dab87f20c014d9ad1500c70edef48b00 (diff) | |
download | openocd_libswd-2b5c444a32725dd75833348e04620bd7b1bda2ad.tar.gz openocd_libswd-2b5c444a32725dd75833348e04620bd7b1bda2ad.tar.bz2 openocd_libswd-2b5c444a32725dd75833348e04620bd7b1bda2ad.tar.xz openocd_libswd-2b5c444a32725dd75833348e04620bd7b1bda2ad.zip |
Cortex-A8: debug messaging tweaks
Make that "TODO" message say what needs to be done.
Say what part of examining failed.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-rw-r--r-- | src/target/cortex_a8.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 18edd95a..bcdb5260 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -1461,7 +1461,8 @@ static int cortex_a8_examine_first(struct target *target) int retval = ERROR_OK; uint32_t didr, ctypr, ttypr, cpuid; - LOG_DEBUG("TODO"); + /* stop assuming this is an OMAP! */ + LOG_DEBUG("TODO - autoconfigure"); /* Here we shall insert a proper ROM Table scan */ armv7a->debug_base = OMAP3530_DEBUG_BASE; @@ -1474,28 +1475,28 @@ static int cortex_a8_examine_first(struct target *target) if ((retval = mem_ap_read_atomic_u32(swjdp, armv7a->debug_base + CPUDBG_CPUID, &cpuid)) != ERROR_OK) { - LOG_DEBUG("Examine failed"); + LOG_DEBUG("Examine %s failed", "CPUID"); return retval; } if ((retval = mem_ap_read_atomic_u32(swjdp, armv7a->debug_base + CPUDBG_CTYPR, &ctypr)) != ERROR_OK) { - LOG_DEBUG("Examine failed"); + LOG_DEBUG("Examine %s failed", "CTYPR"); return retval; } if ((retval = mem_ap_read_atomic_u32(swjdp, armv7a->debug_base + CPUDBG_TTYPR, &ttypr)) != ERROR_OK) { - LOG_DEBUG("Examine failed"); + LOG_DEBUG("Examine %s failed", "TTYPR"); return retval; } if ((retval = mem_ap_read_atomic_u32(swjdp, armv7a->debug_base + CPUDBG_DIDR, &didr)) != ERROR_OK) { - LOG_DEBUG("Examine failed"); + LOG_DEBUG("Examine %s failed", "DIDR"); return retval; } |