Changeset 334 for trunk/lib


Ignore:
Timestamp:
Mar 26, 2013, 11:12:17 AM (11 years ago)
Author:
joannou
Message:

Separated stat counters resets from internal registers resets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/generic_llsc_global_table/include/generic_llsc_global_table.h

    r291 r334  
    279279    }
    280280
     281    ////////////////////////////////////////////////////////////////////////////
     282    inline void reset()
     283    {
     284        // init the table
     285        init();
     286
     287        // init stat counters
     288        m_cpt_evic          = 0;
     289        m_cpt_ll            = 0;
     290        m_cpt_ll_update     = 0;
     291        m_cpt_sc            = 0;
     292        m_cpt_sc_success    = 0;
     293        m_cpt_sw            = 0;
     294    }
     295
     296
    281297    public:
    282298
     
    300316
    301317    ////////////////////////////////////////////////////////////////////////////
     318    //  This function initializes the table (all slots empty)
    302319    inline void init()
    303     //  This function initializes the table (all slots empty)
    304320    {
    305321        // making all slots available by reseting all valid bits
     
    311327        r_write_ptr         = 0;
    312328        r_last_empty        = 0;
    313 
    314         // init stat counters
    315         m_cpt_evic          = 0;
    316         m_cpt_ll            = 0;
    317         m_cpt_ll_update     = 0;
    318         m_cpt_sc            = 0;
    319         m_cpt_sc_success    = 0;
    320         m_cpt_sw            = 0;
    321329    }
    322330
Note: See TracChangeset for help on using the changeset viewer.