Programmer’s Model
ARM DDI0198D
Copyright © 2001-2003 ARM Limited. All rights reserved.
2-29
7.
For each of the cache lines to be locked down in cache way
i
:
•
If a DCache is being locked down, use an LDR instruction to load a word
from the memory cache line to ensure that the memory cache line is loaded
into the cache.
•
If an ICache is being locked down, use the register c7 MCR prefetch ICache
line (CRm == c13, Opcode2 == 1) to fetch the memory cache line into the
cache.
8.
Write to register c9, CRm == 0 setting L == 1 for bit
i
and restoring all the other
bits to the values they had before the lockdown routine was started.
Cache unlock procedure
To unlock the locked down portion of the cache, write to register c9 setting L == 0 for
the appropriate bit. For example, the following sequence sets the L bit to 0 for way 0 of
the ICache, unlocking way 0:
MRC p15, 0, <Rn>, c9, c0, 1;
BIC <Rn>, <Rn>, 0x01 ;
MCR p15, 0, <Rn>, c9, c0, 1;
TCM Region Register c9
The ARM926EJ-S processor supports physically-indexed, physically-tagged TCM.
The TCM Region Register supports one region of instruction TCM and one region of
data TCM. The minimum size of TCM region that can be supported is 4KB. The TCM
Status Register indicates if TCM memories are attached (see
TCM Status Register c0
on
page 2-12). The size of each TCM region is defined by the
DRSIZE
and
IRSIZE
input
pins.
The data TCM is always disabled at reset. The instruction TCM is enabled at reset if the
INITRAM
pin is HIGH. This enables booting from the instruction TCM and sets the
ITCM enable bit in the ITCM region register. You can use the TCM Region Register
instructions listed in Table 2-22.
Table 2-22 TCM Region Register instructions
Function
Data
Instruction
Read data TCM Region Register
Base address
MRC p15,0,<Rd>,c9,c1,0
Write data TCM Region Register
Base address
MCR p15,0,<Rd>,c9,c1,0
Read instruction TCM Region Register
Base address
MRC p15,0,<Rd>,c9,c1,1
Write instruction TCM Region Register
Base address
MCR p15,0,<Rd>,c9,c1,1
Summary of Contents for ARM926EJ-S
Page 6: ...Contents vi Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 10: ...List of Tables x Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 14: ...List of Figures xiv Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 22: ...Preface xxii Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 28: ...Introduction 1 6 Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 96: ...Memory Management Unit 3 32 Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 108: ...Caches and Write Buffer 4 12 Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 152: ...Bus Interface Unit 6 12 Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...
Page 206: ...Signal Descriptions A 18 Copyright 2001 2003 ARM Limited All rights reserved ARM DDI0198D ...