Datasheet
ARMulator Basics
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-19
2.6 Pagetable module
This section contains the following subsections:
• Overview of the pagetable module
• Controlling the MMU or PU and cache on page 2-20
• Controlling registers 2 and 3 on page 2-20
• Memory regions on page 2-21
• Pagetable module and memory management units on page 2-23
• Pagetable module and protection units on page 2-24.
2.6.1 Overview of the pagetable module
The pagetable module enables you to run code on a model of a system with a Memory
Management Unit (MMU) or a Protection Unit (PU), without having to write
initialization code for the MMU or PU.
Note
This module allows you to debug code, or perform approximate benchmarking. For a
real system. you must write initialization code to set up the MMU or PU. You can debug
your initialization code on the ARMulator by disabling the pagetable module.
On models of ARM architecture v4 and v5 processors with an MMU, the pagetable
module sets up pagetables and initializes the MMU. On processors with a PU, the
pagetable module sets up the PU. To control whether to include the pagetable model,
find the
Pagetables
tag in the ARMulator configuration file,
default.ami
, and alter it as
appropriate:
{Pagetables=Default_Pagetables
}
or
{ Pagetables=No_Pagetables
}
The
Pagetables
section in
peripherals.ami
controls the contents of the pagetables, and
the configuration of the caches and MMU or PU. To locate the
Pagetables
section, find
this line:
{Default_Pagetables=Pagetables
For full details of the flags, control register and pagetables described in this section, see
ARM Architecture Reference Manual, or the technical reference manual for the
processor you are simulating.