summaryrefslogtreecommitdiff
path: root/src/target/mips_m4k.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2009-12-21 16:33:03 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-05 19:54:36 +0000
commitf6412d9c7b22ab25caec6be19317f0fc4a840fdd (patch)
treeb9bb7a56f70e98d6003d5a5556f093c6edc11d7f /src/target/mips_m4k.c
parentfaad9e59233306e608a3a01388a38099ece9688b (diff)
downloadopenocd+libswd-f6412d9c7b22ab25caec6be19317f0fc4a840fdd.tar.gz
openocd+libswd-f6412d9c7b22ab25caec6be19317f0fc4a840fdd.tar.bz2
openocd+libswd-f6412d9c7b22ab25caec6be19317f0fc4a840fdd.tar.xz
openocd+libswd-f6412d9c7b22ab25caec6be19317f0fc4a840fdd.zip
MIPS: optimize pracc access
remove unnecessary nops when accessing ejtag pracc general fastdata patch cleanup Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/mips_m4k.c')
-rw-r--r--src/target/mips_m4k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index f3191ae6..4adc1f19 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -993,14 +993,14 @@ int mips_m4k_bulk_write_memory(struct target *target, uint32_t address, uint32_t
if (target->endianness == TARGET_BIG_ENDIAN)
{
uint32_t i, t32;
- for(i = 0; i < (count*4); i+=4)
+ for(i = 0; i < (count * 4); i += 4)
{
t32 = be_to_h_u32((uint8_t *) &buffer[i]);
h_u32_to_le(&buffer[i], t32);
}
}
- retval = mips32_pracc_fastdata_xfer(ejtag_info, source, write, address, count, (uint32_t *) buffer);
+ retval = mips32_pracc_fastdata_xfer(ejtag_info, source, write, address, count, (uint32_t*) buffer);
if (source)
target_free_working_area(target, source);