CPC G06F 12/0811 (2013.01) | 10 Claims |
1. An alias processing method based on first-level data (L1D)-second level (L2) caches, comprising the following steps of:
establishing a tag copy random access memory used for copying a tag random access memory in the L1D cache, wherein the tag random access memory and the tag copy random access memory are both composed of a plurality of data sets;
establishing a valid array, and marking a data validity of each data set in the tag copy random access memory with the valid array;
acquiring a check request sent by the L1D cache, wherein the check request is sent in response to the L1D cache requests data from the L2 cache; and
checking in the tag copy random access memory based on the valid array, and determining whether the check request hits the data set in the tag copy random access memory, in response to the check request hits the data set;
invalidating the check request in the L2 cache, and saving the check request; and
sending a flush request with a physical address corresponding to the check request to the LID cache, wherein the flush request is used for deleting a data set corresponding to the physical address in the L1D cache.
|