If the PC is pointing to an invalid instruction, then simulation will
fail. This is
expected.
### Eclipse Workspace Patch 1.0
#P openocd
Index: src/target/arm7_9_common.c
===================================================================
--- src/target/arm7_9_common.c (revision 2625)
+++ src/target/arm7_9_common.c (working copy)
@@ -1833,7 +1833,7 @@
{
uint32_t current_opcode;
target_read_u32(target, current_pc,
¤t_opcode);
- LOG_ERROR("BUG: couldn't calculate PC of next
instruction,
current opcode was 0x%8.8" PRIx32 "", current_opcode);
+ LOG_ERROR("Couldn't calculate PC of next
instruction, current
opcode was 0x%8.8" PRIx32 "", current_opcode);
return retval;
}
@@ -2038,7 +2038,7 @@
{
uint32_t current_opcode;
target_read_u32(target, current_pc, ¤t_opcode);
- LOG_ERROR("BUG: couldn't calculate PC of next instruction,
current
opcode was 0x%8.8" PRIx32 "", current_opcode);
+ LOG_ERROR("Couldn't calculate PC of next instruction, current
opcode was 0x%8.8" PRIx32 "", current_opcode);
return retval;
}
--
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development