| |||
| Home > Caches and Tightly Coupled Memories > Configuring a PU | |||
To configure a PU, you must do the following:
Define the starting addresses and sizes of protection regions, and enable them. To do this, write to coprocessor register c6 in CP15, the system control coprocessor (see Setting protection region addresses and sizes, and enabling each region).
Set the cacheable and bufferable attributes for each region. To do this, write to CP15 registers c2 and c3 (see Setting region cacheable and bufferable flags).
Set access permissions for each region. To do this, write to CP15 register c5 (see Setting region access permissions).
Enable the caches and enable the PU. To do this, write to CP15 register c1 (see Configuring core operation).
The Pagetable model can do this for you if you are using ARMulator (see Models of caches and tightly coupled memory and the ARMulator Basics chapter in ADS Debug Target Guide).
Details of configuration vary from core to core. See the Technical Reference Manual for your particular core.
The following examples show the general methods of programming. They do not show correct details for every core.