MOTOROLA
Chapter 8. Instruction and Data Caches
8-9
Part II. PowerPC Microprocessor Module
To read the data or tags stored in the instruction cache:
1. Write the address of the data or tag to be read to the IC_ADR, according to the
format shown in Table 8-4.
Note that it is also possible to read this register for debugging purposes.
2. Read the IC_DAT register.
For data array (IC_ADR[18] = 0) read commands, the word selected by IC_ADR[28Ð29]
is placed in the target general-purpose register. For tag array (IC_ADR[18] = 1) read
commands, the tag and state information is placed in the target general-purpose register.
Table 8-5 provides the format of the IC_DAT register when reading a tag.
8.3.1.2 IC_CST Commands
All IC_CST commands, except the load & lock cache block command, are executed
immediately after writing to the IC_CST register and do not generate any errors. Therefore,
when executing these commands there is no need to check the error type bits in the IC_CST
register. All commands should be followed by an isync instruction, if the instruction cache
command is required to affect all instruction fetches that come after it in the program order.
In addition, correct operation of the instruction cache relies on software following the
procedures described in Section 8.5.5, ÒUpdating Code And Memory Region Attributes.Ó
Note that when the instruction cache is executing a command, it stops handling CPU
requests, which can result in machine stalls.
8.3.1.2.1 Instruction Cache Enable/Disable Commands
The instruction cache enable command (IC_CST[CMD] = 0b001) is used to enable the
instruction cache; the instruction cache disable command (IC_CST[CMD] = 0b010) is used
to disable the instruction cache. Neither of these commands has any error cases. The current
state of the instruction cache is available by reading the instruction cache enable status bit
(IC_CST[IEN]).
When disabled, the MPC860 ignores the instruction cache valid bit and operates as if all
accesses have caching-inhibited access attributes (that is, all instruction fetches are
propagated to the bus as single-beat transactions). Disabling the instruction cache does not
Table 8-4. IC_ADR Fields for Cache Read Commands
0Ð17
18
19
20
21Ð27
28Ð29
30Ð31
Reserved
0 Tag
1 Data
0 Way 0
1 Way 1
Reserved
Set select
(0Ð127)
Word select
(used only for
data array)
Reserved
Table 8-5. IC_DAT Format when Reading a Tag
0Ð20
21
22
23
24
25Ð31
Tag value
Reserved
0 Invalid
1 Valid
0 Unlocked
1 Locked
LRU bit of this set
Reserved
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......