摘要 |
PROBLEM TO BE SOLVED: To improve a cache hit rate by deciding to be replaced with which cache data based on the count result of the number of cache mishits at the time of a cache mishit. SOLUTION: An address comparator 105 compares the address of data stored in an address storing part 103 with an address transmitted from an instruction issuing part 104 and performs hit/mishit decision. A miscounter part 106-1 counts the number of times when mishit takes place in the comparator 105 and stores the number of misses in every cache line in a mistake storing part 106-2. The parts 106-1 and 106-2 are provided in these ways and are used to decide which block to be rewritten when a cache miss takes place in a load instruction. That is, when a cache mishit occurs, the number of cache mishit of each way is compared, the cache line data of a way that has many mishit are rewritten.
|