8-24
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part II. PowerPC Microprocessor Module
8.5.5 Updating Code And Memory Region Attributes
The instruction cache does not perform snooping, so if a processor modiÞes a memory
location that may be contained in the instruction cache, software must ensure that such
memory updates are visible to the instruction fetching mechanism. Also, whenever the
memory/cache attributes of any memory region are changed, it is critical that the cache
contents reßect the new attributes. Therefore, when updating code or changing memory
region attributes (in the MMU) the user must perform the following steps:
1. Update code/change memory region attributes
2. Execute a sync instruction to ensure the update/change operation Þnished
3. Unlock all locked cache blocks containing code that was updated
4. Invalidate all cache blocks containing code that was updated
5. Execute an isync instruction
8.6 Data Cache Operation
When the data MMU is enabled (MSR[DR] = 1), the data cache operates as deÞned by the
memory/cache access attributes. When the data MMU is disabled (MSR[DR] = 0), the data
cache operates as deÞned by the default data memory access attributes. The default state of
the write-through/write-back attribute is determined by MD_CTR[WTDEF]; the
caching-inhibited/caching-allowed attribute is determined by MD_CTR[CIDEF]; and the
entire memory space defaults to the guarded attribute. See Chapter 9, ÒMemory
Management Unit (MMU),Ó for more information.
A data cache access begins with a load or store request from the load/store unit (LSU) in
the core. The data cache has a 32-bit data path to and from the load/store unit, allowing for
a 4-byte transfer per cycle. As shown in Figure 8-2, bits 21Ð27 of the data address provide
the index to select a set (0Ð127) within the data cache array. The tags from both ways of the
set are compared against bits 0Ð20 of the data address. If a match is found and the matched
entry is valid, then it is a cache hit. If neither tag matches or the matched tag is not valid, it
is a cache miss.
The data cache operates in both write-through and write-back modes as programmed by the
memory/cache access attributes. These modes affect store hit and store miss behavior of the
data cache. Load hits and load misses behave the same regardless of the
write-through/write-back mode. If two logical blocks map to the same physical block, it is
considered a programming error for them to specify different cache write policies.
Each data cache block contains two state bits that implement a three-state
(modiÞed-valid/unmodiÞed-valid/invalid) protocol. The MPC860 does not support
snooping of the data cache. All memory is considered to have memory coherency not
required attributes. Therefore, software must maintain data cache coherency. The MPC860
does not provide support for snooping external bus activity. All coherency between the
internal caches and external agents (memory or I/O devices) must be controlled by
Содержание 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: ......