The arguments was not passed to the MCR instruction in cortex_a8_write_cp.
Commited.
Best regards,
Magnus
Index: src/target/cortex_a8.c
===================================================================
--- src/target/cortex_a8.c (revision 2700)
+++ src/target/cortex_a8.c (working copy)
@@ -224,7 +224,6 @@
int cortex_a8_write_cp(target_t *target, uint32_t value,
uint8_t CP, uint8_t op1, uint8_t CRn, uint8_t CRm, uint8_t op2)
-/* TODO Fix this */
{
int retval;
/* get pointers to arch-specific information */
@@ -237,7 +236,7 @@
/* Move DTRRX to r0 */
cortex_a8_exec_opcode(target, ARMV4_5_MRC(14, 0, 0, 0, 5, 0));
- cortex_a8_exec_opcode(target, ARMV4_5_MCR(CP, 0, 0, 0, 5, 0));
+ cortex_a8_exec_opcode(target, ARMV4_5_MCR(CP, op1, 0, CRn, CRm, op2));
return retval;
}
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development