Claims
- 1. A method of storing information within a set of a cache memory, the set having a plurality of locations, at a location selected to satisfy one of the following conditions in decreasing order of preference, comprising:
- (a) said selected location is invalid;
- (b) each of the plurality of locations is valid, and said selected location is unmodified; or
- (c) each of the plurality of locations is valid and modified, and said selected location is least recently used among the plurality of locations.
- 2. The method of claim 1 wherein the cache memory is a data cache memory.
- 3. The method of claim 2 wherein said data cache memory is a set associative cache memory.
- 4. The method of claim 2 wherein said data cache memory is a fully associative cache memory.
- 5. The method of claim 1 and comprising receiving the information from a system memory.
- 6. A system for storing information within a set of a cache memory, the set having a plurality of locations, comprising:
- circuitry for storing the information at a selected location; and
- circuitry for selecting the location to satisfy one of the following conditions in decreasing order of preference;
- (a) said selected location is invalid;
- (b) each of the plurality of locations is valid, and said selected location is unmodified; or
- (c) each of the plurality of locations is valid and modified, and said selected location is least recently used among the plurality of locations.
- 7. The system of claim 6 wherein the cache memory is a data cache memory.
- 8. The system of claim 7 wherein said data cache memory is a set associative cache memory.
- 9. The system of claim 9 wherein said data cache memory is a fully associative cache memory.
- 10. The system of claim 7 wherein said circuitry is for receiving the information from a system memory.
CROSS-REFERENCE TO RELATED APPLICATION
This patent application is related to copending U.S. patent application Ser. No. 08/763,276 filed concurrently herewith.
US Referenced Citations (8)