diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-17 17:56:44 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-17 17:56:44 +0000 |
commit | 5711203e20fb11fa6d0f1acac714bca5833f17d8 (patch) | |
tree | b612bfb7976110916b46420c7f72526e52650464 /src/target/mips_ejtag.c | |
parent | 76b3c6ece6f853daca937652df78b61df11c47f3 (diff) |
- add support for hardware breakpoints to mips32 target
git-svn-id: svn://svn.berlios.de/openocd/trunk@1173 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/mips_ejtag.c')
-rw-r--r-- | src/target/mips_ejtag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c index c169c6f0..52c710ec 100644 --- a/src/target/mips_ejtag.c +++ b/src/target/mips_ejtag.c @@ -227,6 +227,7 @@ int mips_ejtag_exit_debug(mips_ejtag_t *ejtag_info, int enable_interrupts) int mips_ejtag_read_debug(mips_ejtag_t *ejtag_info, u32* debug_reg) { + /* read ejtag ECR */ u32 code[] = { MIPS32_MTC0(15,31,0), /* move $15 to COP0 DeSave */ MIPS32_LUI(15,UPPER16(MIPS32_PRACC_STACK)), /* $15 = MIPS32_PRACC_STACK */ @@ -288,6 +289,7 @@ int mips_ejtag_init(mips_ejtag_t *ejtag_info) ejtag_info->impcode & (1<<14) ? " noDMA": " DMA", ejtag_info->impcode & (1<<0) ? " MIPS64": " MIPS32" ); + if((ejtag_info->impcode & (1<<14)) == 0) LOG_DEBUG("EJTAG: DMA Access Mode Support Enabled"); |