summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormlu <mlu@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-13 13:57:50 +0000
committermlu <mlu@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-13 13:57:50 +0000
commitc4ee12ea7724d06d2f6818379fe271c92f0bbc18 (patch)
tree32fa1be1da56b1f5c7342698706412065a653e08
parenta17eb667a348784e67ddbdb4fb50bcc91e5f575b (diff)
downloadopenocd_libswd-c4ee12ea7724d06d2f6818379fe271c92f0bbc18.tar.gz
openocd_libswd-c4ee12ea7724d06d2f6818379fe271c92f0bbc18.tar.bz2
openocd_libswd-c4ee12ea7724d06d2f6818379fe271c92f0bbc18.tar.xz
openocd_libswd-c4ee12ea7724d06d2f6818379fe271c92f0bbc18.zip
Fix argument passing in cortex_a8_write_cp.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/cortex_a8.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c
index 55a3c45b..7a705153 100644
--- a/src/target/cortex_a8.c
+++ b/src/target/cortex_a8.c
@@ -224,7 +224,6 @@ int cortex_a8_read_cp(target_t *target, uint32_t *value, uint8_t CP,
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 @@ int cortex_a8_write_cp(target_t *target, uint32_t value,
/* 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;
}