> The va to pa translation should not be done if MMU is not enabled, or rather > was not enabled when the target was halted, so that relevant address ranges > are actually mapped through the MMU.
How's this? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer
From a9f9c4ed4462bb1f9bfd954707c1f25d0ed018eb Mon Sep 17 00:00:00 2001 From: =?utf-8?q?=C3=98yvind=20Harboe?= <[email protected]> Date: Sun, 25 Oct 2009 18:24:18 +0100 Subject: [PATCH] check if mmu is enabled before using mmu code path --- src/target/arm926ejs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c index 9061174..ef9a494 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 -- 1.6.0.4
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
