Table 2-4. Snoop Action; Internal Snooping - AMD K5 Technical Reference Manual

Table of Contents

Advertisement

AMD-K5 Processor Technical Reference Manual

Table 2-4. Snoop Action

Origin of
Type of Access
Snoop
External
Inquire Cycle
Instruction
Cache
Internal
Data
Cache
Notes:
1. The processor's response to a snoop hit depends on the state of the INV input signal and the state of the cache line as follows:
For instructions if INV is negated, the line remains invalid or shared, but if INV is asserted, the line is invalidated. For data if INV is
negated, valid lines remain in or transition to the shared state, a modified data cache line is written back before the line is marked
shared (with HITM asserted), invalid lines remain invalid.
For data if INV is asserted, the line is marked invalid. Modified lines are written back before invalidation.
2. If the snoop hits a line in the data cache, store buffer or writeback buffer, the line is written back (if modified) and invalidated.
Then the instruction-cache read is performed again. If the line is modified, a copy of the writeback data is passed directly to the
instruction cache, thus avoiding a line-fill bus cycle after the writeback bus cycle.
3. If the snoop hits a line in the instruction cache, prefetch cache, or line-fill buffer, the line stays valid and the data-cache read is
performed again, but as a single, non-cacheable read.
4. If the snoop hits a line in the instruction cache, prefetch cache, or line-fill buffer, the line is invalidated and the data-cache write is
performed.
— Not applicable.

Internal Snooping

2-22
Instructions
Instruction
Cache
1
yes
Read
Miss
Read
Hit
Read
3
yes
Miss
Read
no
Hit
Write
4
yes
Miss
Write
no
Hit
The processor automatically snoops its instruction cache dur-
ing read or write misses to its data cache, and it snoops its data
cache during read misses to its instruction cache. It does this to
detect the presence of self-modifying code. Table 2-4 summa-
rizes the actions taken during this internal snooping.
Snooping Action
Prefetch
Data
Cache
Cache
yes
1
yes
2
yes
no
3
yes
no
4
yes
no
18524C/0—Nov1996
Data
Store
Writeback
Buffer
Buffers
no
1
yes
2
2
yes
yes
no
no
Internal Architecture

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Amd-k5

Table of Contents