Skip to content
Snippets Groups Projects
Commit d785f552 authored by Øyvind Harboe's avatar Øyvind Harboe
Browse files

check if mmu is enabled before using mmu code path

parent 19b84daf
No related branches found
No related tags found
No related merge requests found
...@@ -713,7 +713,7 @@ int arm926ejs_write_memory(struct target_s *target, uint32_t address, uint32_t s ...@@ -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 /* FIX!!!! this should be cleaned up and made much more general. The
* plan is to write up and test on arm926ejs specifically and * plan is to write up and test on arm926ejs specifically and
* then generalize and clean up afterwards. */ * 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 /* special case the handling of single word writes to bypass MMU
* to allow implementation of breakpoints in memory marked read only * to allow implementation of breakpoints in memory marked read only
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment