L1 Instruction Memory
6-18
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
• Execute the code of interest. Any cacheable exceptions, such as exit
code, traversed by this code execution are also locked into the
instruction cache.
• Upon exit of the critical code, clear
ILOC[3:1]
and set
ILOC[0]
.
The critical code (and the instructions which set
ILOC[0]
) is now
locked into Way0.
• Re-enable interrupts, if required.
If all four Ways of the cache are locked, then further allocation into the
cache is prevented.
Instruction Cache Invalidation
The instruction cache can be invalidated by address, cache line, or com-
plete cache. The
IFLUSH
instruction can explicitly invalidate cache lines
based on their line addresses. The target address of the instruction is gen-
erated from the P-registers. Because the instruction cache should not
contain modified (dirty) data, the cache line is simply invalidated, and not
“flushed.”
In the following example, the
P2
register contains the address of a valid
memory location. If this address has been brought into cache, the corre-
sponding cache line is invalidated after the execution of this instruction.
Example of
ICACHE
instruction:
iflush [ p2 ] ; /* Invalidate cache line containing address
that P2 points to */
Because the
IFLUSH
instruction is used to invalidate a specific address in
the memory map and its corresponding cache-line, it is most useful when
the buffer being invalidated is less than the cache size. For more informa-
tion about the
IFLUSH
instruction, see
Chapter 17, “Cache Control.”
A
second technique can be used to invalidate larger portions of the cache
directly. This second technique directly invalidates Valid bits by setting
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...