Programmer’s Model
2-6
Copyright © ARM Limited 2000. All rights reserved.
I-SRAM and D-SRAM sizes in register 9 reflect the physical I-SRAM and D-SRAM
sizes.
CP15 registers can only be accessed with
MRC
and
MCR
instructions in a privileged
mode. The instruction bit pattern of the
MCR
and
MRC
instructions is shown in
Figure 2-1 CP15 MRC and MCR bit pattern
The assembler for these instructions is:
MCR/MRC{cond} p15,opcode_1,Rd,CRn,CRm,opcode_2
Instructions
CDP
,
LDC
, and
STC
, along with unprivileged
MRC
and
MCR
instructions to
CP15, cause the undefined instruction trap to be taken. The
CRn
field of
MRC
and
MCR
instructions specifies the coprocessor register to access. The
CRm
field and
opcode_2
field specify a particular action when addressing registers.
Attempting to read from a nonreadable register, or writing to a nonwritable register
causes unpredictable results.
The
opcode_1
,
opcode_2
, and
CRm
fields should be zero, except when the values
specified are used to select the desired operations, in all instructions that access CP15.
Using other values results in unpredictable behavior.
2.3.2
Register 0, ID code register
This is a read-only register that returns a 32-bit device ID code. The ID code register is
accessed by reading CP15 register 0 with the
opcode_2
field set to any value other
than 1 or 2. For example:
MRC p15, 0, rd, c0, c0, {0,3-7}; returns ID register
31
28 27
24 23
21 20 19
16 15
12 11
8 7
5 4 3
0
1 1 1 0
1 1 1 1
1
CRm
opcode_2
Rd
CRn
L
opcode_1
Cond
Summary of Contents for ARM946E-S
Page 1: ...ARM DDI 0155A ARM946E S Technical Reference Manual ...
Page 6: ...vi Copyright ARM Limited 2000 All rights reserved ARM DDI 0155A 04 Limited Confidential ...
Page 54: ...Programmer s Model 2 34 Copyright ARM Limited 2000 All rights reserved ARM DDI 0155A ...
Page 70: ...Caches 3 16 Copyright ARM Limited 2000 All rights reserved ARM DDI 0155A ...
Page 78: ...Protection Unit 4 8 Copyright ARM Limited 2000 All rights reserved ARM DDI 0155A ...
Page 112: ...Coprocessor Interface 7 14 Copyright ARM Limited 2000 All rights reserved ARM DDI 0155A ...