summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-10-25 18:24:18 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-10-25 22:15:57 +0100
commitd785f552ee034aedb26aefc3e47e5c78cdcce065 (patch)
tree57b90a1de03e20dad10e75c133e1315847c21ca9 /src
parent19b84dafb0a9902df78aa021330cbcfae93a89a7 (diff)
downloadopenocd+libswd-d785f552ee034aedb26aefc3e47e5c78cdcce065.tar.gz
openocd+libswd-d785f552ee034aedb26aefc3e47e5c78cdcce065.tar.bz2
openocd+libswd-d785f552ee034aedb26aefc3e47e5c78cdcce065.tar.xz
openocd+libswd-d785f552ee034aedb26aefc3e47e5c78cdcce065.zip
check if mmu is enabled before using mmu code path
Diffstat (limited to 'src')
-rw-r--r--src/target/arm926ejs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index 90611747..ef9a4941 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -713,7 +713,7 @@ int arm926ejs_write_memory(struct target_s *target, uint32_t address, uint32_t s
/* FIX!!!! this should be cleaned up and made much more general. The
* plan is to write up and test on arm926ejs specifically and
* then generalize and clean up afterwards. */
- if ((count == 1) && ((size==2) || (size==4)))
+ if (arm926ejs->armv4_5_mmu.mmu_enabled && (count == 1) && ((size==2) || (size==4)))
{
/* special case the handling of single word writes to bypass MMU
* to allow implementation of breakpoints in memory marked read only