Ignore:
Timestamp:
Oct 4, 2013, 2:34:03 PM (11 years ago)
Author:
haoliu
Message:

ODCCP merge the components with the version 543 in trunk.

Location:
branches/ODCCP/modules/vci_mem_cache/caba/source/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ODCCP/modules/vci_mem_cache/caba/source/include

  • branches/ODCCP/modules/vci_mem_cache/caba/source/include/mem_cache_directory.h

    r494 r544  
    235235
    236236      bool hit       = false;
    237       for ( size_t i=0 ; i<m_ways ; i++ ) {
     237        for ( size_t i=0 ; i<m_ways ; i++ )
     238        {
    238239        bool equal = ( m_dir_tab[set][i].tag == tag );
    239240        bool valid = m_dir_tab[set][i].valid;
    240241        hit = equal && valid;
    241         if ( hit ) {                   
     242            if ( hit )
     243            {                   
    242244          way = i;
    243245          break;
    244246        }
    245247      }
    246       if ( hit ) {
     248        if ( hit )
     249        {
    247250        m_lru_tab[set][way].recent = true;
    248251        return DirectoryEntry(m_dir_tab[set][way]);
    249       } else {
     252        }
     253        else
     254        {
    250255        return DirectoryEntry();
    251256      }
Note: See TracChangeset for help on using the changeset viewer.