summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 19:35:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 19:35:10 +0000
commita690ee3c0c903f692462b3ee959c4b279f2ad1f3 (patch)
treea8ea1526825dc6e07b482f6a384a204834f107a9 /src/target
parent0b11e4dbb4e2d40452bff47bef6a6522453b4a96 (diff)
downloadopenocd+libswd-a690ee3c0c903f692462b3ee959c4b279f2ad1f3.tar.gz
openocd+libswd-a690ee3c0c903f692462b3ee959c4b279f2ad1f3.tar.bz2
openocd+libswd-a690ee3c0c903f692462b3ee959c4b279f2ad1f3.tar.xz
openocd+libswd-a690ee3c0c903f692462b3ee959c4b279f2ad1f3.zip
Mahr, Stefan <Stefan.Mahr@sphairon.com> removes the endianness swapping in mips_m4k.c Swapping is already done in target.c
git-svn-id: svn://svn.berlios.de/openocd/trunk@2673 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/mips_m4k.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index f8164ff0..40e17d16 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -874,28 +874,6 @@ int mips_m4k_read_memory(struct target_s *target, uint32_t address, uint32_t siz
if (ERROR_OK != retval)
return retval;
- /* TAP data register is loaded LSB first (little endian) */
- if (target->endianness == TARGET_BIG_ENDIAN)
- {
- uint32_t i, t32;
- uint16_t t16;
-
- for (i = 0; i < (count*size); i += size)
- {
- switch (size)
- {
- case 4:
- t32 = le_to_h_u32(&buffer[i]);
- h_u32_to_be(&buffer[i], t32);
- break;
- case 2:
- t16 = le_to_h_u16(&buffer[i]);
- h_u16_to_be(&buffer[i], t16);
- break;
- }
- }
- }
-
return ERROR_OK;
}
@@ -919,28 +897,6 @@ int mips_m4k_write_memory(struct target_s *target, uint32_t address, uint32_t si
if (((size == 4) && (address & 0x3u)) || ((size == 2) && (address & 0x1u)))
return ERROR_TARGET_UNALIGNED_ACCESS;
- /* TAP data register is loaded LSB first (little endian) */
- if (target->endianness == TARGET_BIG_ENDIAN)
- {
- uint32_t i, t32;
- uint16_t t16;
-
- for (i = 0; i < (count*size); i += size)
- {
- switch (size)
- {
- case 4:
- t32 = be_to_h_u32(&buffer[i]);
- h_u32_to_le(&buffer[i], t32);
- break;
- case 2:
- t16 = be_to_h_u16(&buffer[i]);
- h_u16_to_le(&buffer[i], t16);
- break;
- }
- }
- }
-
/* if noDMA off, use DMAACC mode for memory write */
if (ejtag_info->impcode & EJTAG_IMP_NODMA)
return mips32_pracc_write_mem(ejtag_info, address, size, count, (void *)buffer);