Changeset 334
- Timestamp:
- Mar 26, 2013, 11:12:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/generic_llsc_global_table/include/generic_llsc_global_table.h
r291 r334 279 279 } 280 280 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 281 297 public: 282 298 … … 300 316 301 317 //////////////////////////////////////////////////////////////////////////// 318 // This function initializes the table (all slots empty) 302 319 inline void init() 303 // This function initializes the table (all slots empty)304 320 { 305 321 // making all slots available by reseting all valid bits … … 311 327 r_write_ptr = 0; 312 328 r_last_empty = 0; 313 314 // init stat counters315 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;321 329 } 322 330
Note: See TracChangeset
for help on using the changeset viewer.