diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 19:21:26 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 19:21:26 +0000 |
commit | 56a04a3413a6427ef83dc18e3f7c7c13fd217113 (patch) | |
tree | 3fc33bae7ef2da9d2dc6321b3b79947494c99411 | |
parent | f36d0083def304410418a174e140469a771a44a2 (diff) | |
download | openocd+libswd-56a04a3413a6427ef83dc18e3f7c7c13fd217113.tar.gz openocd+libswd-56a04a3413a6427ef83dc18e3f7c7c13fd217113.tar.bz2 openocd+libswd-56a04a3413a6427ef83dc18e3f7c7c13fd217113.tar.xz openocd+libswd-56a04a3413a6427ef83dc18e3f7c7c13fd217113.zip |
Matt Hsu <matt@0xlab.org> cortex_a8_exec_opcode is writing the ARM instruction into
the ITR register but it will only be executed when the DSCR[13]
bit is set. The documentation is a bit weird as it classifies
the DSCR as read-only but the pseudo code is writing to it as
well. This is working on a beagleboard.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2634 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/cortex_a8.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index fd807232..9585b35c 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -546,7 +546,7 @@ int cortex_a8_resume(struct target_s *target, int current, int cortex_a8_debug_entry(target_t *target) { int i; - uint32_t regfile[16], pc, cpsr; + uint32_t regfile[16], pc, cpsr, dscr; int retval = ERROR_OK; working_area_t *regfile_working_area = NULL; @@ -561,6 +561,14 @@ int cortex_a8_debug_entry(target_t *target) LOG_DEBUG("dscr = 0x%08" PRIx32, cortex_a8->cpudbg_dscr); + /* Enable the ITR execution once we are in debug mode */ + mem_ap_read_atomic_u32(swjdp, + OMAP3530_DEBUG_BASE + CPUDBG_DSCR, &dscr); + dscr |= (1 << 13); + retval = mem_ap_write_atomic_u32(swjdp, + OMAP3530_DEBUG_BASE + CPUDBG_DSCR, dscr); + + /* Examine debug reason */ switch ((cortex_a8->cpudbg_dscr >> 2)&0xF) { |