Changeset 141 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_transition.cpp
- Timestamp:
- Aug 2, 2010, 8:56:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_transition.cpp
r139 r141 89 89 else 90 90 { 91 #ifdef STATISTICS 92 uint32_t stat_nb_inst_insert [_param->_nb_rename_unit]; 93 uint32_t stat_nb_inst_retire [_param->_nb_rename_unit]; 94 uint32_t stat_nb_inst_commit [_param->_nb_rename_unit]; 95 96 if (usage_is_set(_usage,USE_STATISTICS)) 97 for (uint32_t i=0; i<_param->_nb_rename_unit; ++i) 98 { 99 stat_nb_inst_insert [i] = 0; 100 stat_nb_inst_retire [i] = 0; 101 stat_nb_inst_commit [i] = 0; 102 } 103 #endif 104 91 105 // Increase number idle cycle 92 106 for (uint32_t i=0; i<_param->_nb_front_end; i++) … … 354 368 #ifdef STATISTICS 355 369 if (usage_is_set(_usage,USE_STATISTICS)) 356 (*_stat_nb_inst_insert [x])++;370 stat_nb_inst_insert [x] ++; 357 371 #endif 358 372 … … 433 447 { 434 448 log_printf(TRACE,Commit_unit,FUNCTION," * COMMIT [%d]",x); 449 log_printf(TRACE,Commit_unit,FUNCTION," * num_bank : %d",i); 450 451 // find the good entry !!! 452 entry_t * entry = internal_BANK_COMMIT_ENTRY [i][j]; 435 453 436 454 #ifdef STATISTICS 437 455 if (usage_is_set(_usage,USE_STATISTICS)) 438 (*_stat_nb_inst_commit)++;456 stat_nb_inst_commit [entry->rename_unit_id] ++; 439 457 #endif 440 441 log_printf(TRACE,Commit_unit,FUNCTION," * num_bank : %d",i);442 443 // find the good entry !!!444 entry_t * entry = internal_BANK_COMMIT_ENTRY [i][j];445 458 446 459 log_printf(TRACE,Commit_unit,FUNCTION," * ptr : %d",entry->ptr); … … 720 733 #ifdef STATISTICS 721 734 if (usage_is_set(_usage,USE_STATISTICS)) 722 (*_stat_nb_inst_retire [x])++;735 stat_nb_inst_retire [x] ++; 723 736 #endif 724 737 … … 1290 1303 } 1291 1304 } 1305 1306 for (uint32_t i=0; i<_param->_nb_rename_unit; ++i) 1307 { 1308 (*_stat_nb_inst_insert [i]) += stat_nb_inst_insert [i]; 1309 (*_stat_nb_inst_retire [i]) += stat_nb_inst_retire [i]; 1310 (*_stat_nb_inst_commit [i]) += stat_nb_inst_commit [i]; 1311 } 1292 1312 } 1293 1313 #endif
Note: See TracChangeset
for help on using the changeset viewer.