User’s Manual
IBM PowerPC 750GX and 750GL RISC Microprocessor
9.3 L2 Cache Control Register (L2CR)
The L2 Cache Control Register is used to configure and enable the L2 cache. The L2CR is a
9.4 L2 Cache Initialization
The L2 cache is initially disabled following a
The sequence for initializing the L2 cache is as follows.
1.
2.Disable interrupts and dynamic power management (DPM).
3.Disable L2 cache by clearing L2CR[L2E].
4.Perform an L2 global invalidate as described in Section 9.5.
5.After the L2 global invalidate has been performed, and the other L2 configuration bits have been set, enable the L2 cache for normal operation by setting the L2CR[L2E] bit to 1.
9.5 L2 Cache Global Invalidation
The L2 cache supports a global invalidation function in which all bits of the L2 tags (tag data bits, tag status bits, and LRU bit) are cleared. It is performed by an
The sequence for performing a global invalidation of the L2 cache is as follows:
1.Flush the L2 to save any modified data.
2.Execute a sync instruction to finish any pending store operations in the load/store unit, disable the L2 cache by clearing L2CR[L2E], and execute an additional sync instruction after disabling the L2 cache to ensure that any pending operations in the L2 cache unit have completed.
3.Initiate the global invalidation operation by setting the L2CR[GI] bit to 1.
4.Monitor the L2CR[IP] bit to determine when the global invalidation operation is complete (indicated by the clearing of L2CR[IP]). The global invalidation requires approximately 32 K core clock cycles to complete.
5.After detecting the clearing of L2CR[IP], clear L2CR[GI] and
Never perform a global invalidation of the L2 cache while in dynamic
gx_09.fm.(1.2) | L2 Cache |
March 27, 2006 | Page 329 of 377 |