Ignore:
Timestamp:
Apr 22, 2010, 2:55:29 PM (15 years ago)
Author:
guthmull
Message:

Fix an issue in the select function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache_v1/caba/source/include/mem_cache_directory_v1.h

    r2 r31  
    194194      }
    195195      if ( hit ) {
    196         m_lru_tab[set][way].recent = true;
    197196        return DirectoryEntry(m_dir_tab[set][way]);
    198197      } else {
     
    255254
    256255      for(size_t i=0; i<m_ways; i++){
    257         if(!m_dir_tab[set][way].valid){
     256        if(!m_dir_tab[set][i].valid){
    258257          way=i;
    259258          return DirectoryEntry(m_dir_tab[set][way]);
Note: See TracChangeset for help on using the changeset viewer.