ADSP-BF53x/BF56x Blackfin Processor Programming Reference
6-17
Memory
cacheable line is fetched. This bit indicates that a line is of either “low” or
“high” importance. In a modified LRU policy, a high can replace a low,
but a low cannot replace a high. If all Ways are occupied by highs, an oth-
erwise cacheable low will still be fetched for the core, but will not be
cached. Fetched highs seek to replace unoccupied Ways first, then least
recently used lows next, and finally other highs using the LRU policy.
Lows can only replace unoccupied Ways or other lows, and do so using
the LRU policy. If all previously cached highs ever become less important,
they may be simultaneously transformed into lows by writing to the
LRU-
PRIRST
bit in the
IMEM_CONTROL
register (see
page 6-5
).
Instruction Cache Locking by Way
The instruction cache has four independent lock bits (
ILOC[3:0
]) that
control each of the four Ways of the instruction cache. When the cache is
enabled, L1 Instruction Memory has four Ways available. Setting the lock
bit for a specific Way prevents that Way from participating in the LRU
replacement policy. Thus, a cached instruction with its Way locked can
only be removed using an
IFLUSH
instruction, or a “back door” MMR
assisted manipulation of the tag array.
An example sequence is provided below to demonstrate how to lock down
Way0:
• If the code of interest may already reside in the instruction cache,
invalidate the entire cache first (for an example, see
“Instruction
Cache Invalidation” on page 6-18
).
• Disable interrupts, if required, to prevent interrupt service routines
(ISRs) from potentially corrupting the locked cache.
• Set the locks for the other Ways of the cache by setting
ILOC[3:1]
.
Only Way0 of the instruction cache can now be replaced by new
code.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...