Example #1
0
 /**
  * Method used to clear cache, or cache and memory, into their pre-entry state.
  **/
 private void Clear(bool isDeepClear)
 {
     keys       = new TKey[keys.Length];
     values     = new TValue[values.Length];
     isModified = new bool[isModified.Length];
     accessList.Clear();
     for (int i = 0; i < nWay; i++)
     {
         accessList.Add(new List <int>());
     }
     if (isDeepClear)
     {
         memoryAccess.Clear();
     }
 }