summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-03-31 18:46:14 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-03-31 18:46:14 +0200
commitf169f86bd10c4dfdab6088e233647bb6d42b5c26 (patch)
tree08f85c124db4cb60ca9f87b687d777e92be1a286 /src/target
parent8d338f3296d87f3b0aa40b6f60a0ca393e435b36 (diff)
downloadopenocd_libswd-f169f86bd10c4dfdab6088e233647bb6d42b5c26.tar.gz
openocd_libswd-f169f86bd10c4dfdab6088e233647bb6d42b5c26.tar.bz2
openocd_libswd-f169f86bd10c4dfdab6088e233647bb6d42b5c26.tar.xz
openocd_libswd-f169f86bd10c4dfdab6088e233647bb6d42b5c26.zip
xscale: fix gaffe in phys write
it would *read* instead of *write* to memory when the MMU was disabled. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 9511be0a..d1e33b7c 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -2022,7 +2022,7 @@ static int xscale_write_phys_memory(struct target *target, uint32_t address,
/* with MMU inactive, there are only physical addresses */
if (!xscale->armv4_5_mmu.mmu_enabled)
- return xscale_read_memory(target, address, size, count, buffer);
+ return xscale_write_memory(target, address, size, count, buffer);
/** \todo: provide a non-stub implementation of this routine. */
LOG_ERROR("%s: %s is not implemented. Disable MMU?",