IBM PPC440X5 Computer Hardware User Manual


 
icread
Instruction Cache Read
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 317 of 589
icread
Instruction Cache Read
EA (RA|0) + (RB)
INDEX
EA
17:26
WORD EA
27:29
ICDBDR (instruction cache data)[INDEX,WORD]
ICDBTRH
(instruction cache tag high)[INDEX]
ICDBTRL
(instruction cache tag low)[INDEX]
An effective address (EA) is formed by adding an index to a base address. The index is the contents of
register RB. The base address is 0 if the RA field is 0 and is the contents of register RA otherwise.
EA
17:26
selects a line of tag and data (instructions) from the instruction cache. EA
27:29
selects a 32-bit
instruction from the 8-instruction data portion of the selected cache line, and this instruction is read into the
ICDBDR. EA
30:31
are ignored, as are EA
0:16
.
The tag portion of the selected cache line is read into the ICDBTRH and ICDBTRL registers, as follows:
The instruction cache on PPC440x5 is “virtually-tagged”, which means that the tag field contains the virtual
address, which consists of the TEA, TS, and TID fields. See Memory Management on page 133 for more
information on the function of the TS, TD, and TID fields.
This instruction can be used by a debug tool to determine the contents of the instruction cache, without
knowing the specific addresses of the lines which are currently contained within the cache.
If instruction bit 31 contains 1, the contents of CR[CR0] are undefined.
icread RA, RB
31 RA RB 998
0 6 11 16 21 31
Register[bit(s)]
Tag
Field
Name
ICDBTRH[0:23] TEA Tag Effective Address
Bits 0:23 of the 32-bit effective address associ-
ated with this cache line
ICDBTRH[24] V Valid
The valid indicator for the cache line (1 indi-
cates valid)
ICDBTRH[25:31] reserved Reserved fields are read as 0s
ICDBTRL[0:21] reserved Reserved fields are read as 0s
ICDBTRL[22] TS Translation Space
The address space portion of the virtual
address associated with this cache line.
ICDBTRL[23] TD Translation ID (TID) Disable
TID Disable field for the memory page associ-
ated with this cache line
ICDBTRL[24:31] TID Translation ID
TID field portion of the virtual address associ-
ated with this cache line