CACHE
4.2.5
CACHE_Invalidate
Function
Arguments
Return Value
Description
Example
4-6
Invalidates a region of cache
void CACHE_Invalidate(
CACHE_REGION Region,
UINT32 Addr,
UINT32 ByteCt
);
Specifies which cache region to invalidate; must be one
Region
of the following:
CACHE_L1P
CACHE_L1PALL
CACHE_L1DALL
Beginning address of range to invalidate; word aligned
Addr
Number of 4-byte words to invalidate
ByteCt
none
Invalidates a range from cache. All lines within the range defined by
Addr and WordCt are invalidated from Region. If CACHE_L1PALL is
specified, then all of L1P is invalidated; Addr and WordCt are ignored.
Likewise, if CACHE_L1DALL is specified, then all of L1D is invalidated;
Addr and WordCt are ignored. This routine waits until the operation
completes before returning.
Note: This function does nothing on devices without L2 cache.
If you want to invalidate a 4K-byte range that starts at 0x80000000
from L1P, use:
CACHE_Flush(CACHE_L1P,0x80000000,0x00000400);
If you want to invalidate all lines from L1D, use:
CACHE_Flush(CACHE_L1DALL,0x00000000,0x00000000);
Invalidate L1P
Invalidate all of L1P
Invalidate all of L1D
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?