projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b84da
)
check if mmu is enabled before using mmu code path
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Sun, 25 Oct 2009 17:24:18 +0000
(18:24 +0100)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Sun, 25 Oct 2009 21:15:57 +0000
(22:15 +0100)
src/target/arm926ejs.c
patch
|
blob
|
history
diff --git
a/src/target/arm926ejs.c
b/src/target/arm926ejs.c
index 9061174797e2fb44dc130c22c2720308ec8d4271..ef9a4941300dae92e9f5143853632fdc5c64bf54 100644
(file)
--- 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