Digi NS9750 Computer Hardware User Manual


 
www.digiembedded.com
65
Working with the CPU
Function Description
Invalidate cache Invalidates all cache data, including any dirty data.
Invalidate single entry using either index or
modified virtual address
Invalidates a single cache line, discarding any dirty data.
Clean single data entry using either index or
modified virtual address
Writes the specified DCache line to main memory if the
line is marked valid and dirty. The line is marked as not
dirty, and the valid bit is unchanged.
Clean and invalidate single data entry using
wither index or modified virtual address.
Writes the specified DCache line to main memory if the
line is marked valid and dirty. The line is marked not valid.
Test and clean DCache Tests a number of cache lines, and cleans one of them if any
are dirty. Returns the overall dirty state of the cache in bit
30. (See "Test and clean operations" on page 67).
Test, clean, and invalidate DCache Tests a number of cache lines, and cleans one of them if any
are dirty. When the entire cache has been tested and
cleaned, it is invalidated. (See "Test and clean operations"
on page 67).
Prefetch ICache line Performs an ICache lookup of the specified modified
virtual address. If the cache misses and the region is
cachable, a linefill is performed.
Drain write buffer Acts as an explicit memory barrier. This instruction drains
the contents of the write buffers of all memory stores
occurring in program order before the instruction is
completed. No instructions occurring in program order
after this instruction are executed until the instruction
completes.
Use this instruction when timing of specific stores to the
level two memory system has to be controlled (for
example, when a store to an interrupt acknowledge location
has to complete before interrupts are enabled).
Table 26: Cache Operations register function descriptions