aboutsummaryrefslogtreecommitdiff
path: root/src/target/mips_m4k.c
diff options
context:
space:
mode:
authorDrasko DRASKOVIC <drasko.draskovic@gmail.com>2011-07-04 12:55:00 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-07-04 18:15:18 +0200
commitac43d7a69fca52df1ad287b51c44013653ad2f61 (patch)
tree58fd0de0ae768bd45153bdd1f030ff613a3d839e /src/target/mips_m4k.c
parentd4cd6f032015552f00bf4b5a90f25f5f958e9d9e (diff)
mips_m4k and arm7_9 : Fix soft bkpt endianess for 16-bit instructions
The patch fix comparison of target data on the host by using target_buffer_get_u16() to transform current_instr to _host_ endianess before comparison.
Diffstat (limited to 'src/target/mips_m4k.c')
-rw-r--r--src/target/mips_m4k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index b84783b1..822d0c85 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -643,7 +643,7 @@ static int mips_m4k_unset_breakpoint(struct target *target,
{
return retval;
}
-
+ current_instr = target_buffer_get_u16(target, (uint8_t *)&current_instr);
if (current_instr == MIPS16_SDBBP)
{
if ((retval = target_write_memory(target, breakpoint->address, 2, 1,