From: <ml...@ma...> - 2009-09-13 15:58:09
|
Author: mlu Date: 2009-09-13 15:57:50 +0200 (Sun, 13 Sep 2009) New Revision: 2701 Modified: trunk/src/target/cortex_a8.c Log: Fix argument passing in cortex_a8_write_cp. Modified: trunk/src/target/cortex_a8.c =================================================================== --- trunk/src/target/cortex_a8.c 2009-09-12 13:05:20 UTC (rev 2700) +++ trunk/src/target/cortex_a8.c 2009-09-13 13:57:50 UTC (rev 2701) @@ -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; } |