Changeset 119 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_transition.cpp
- Timestamp:
- May 25, 2009, 7:40:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_transition.cpp
r115 r119 8 8 9 9 #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h" 10 // #include <assert.h> 10 11 11 12 namespace morpheo { … … 53 54 log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION," * bht_num_reg : %d",bht_num_reg); 54 55 56 // #ifdef DEBUG_TEST 57 // assert(bht_num_reg < _param->_bht_nb_shifter); 58 // #endif 59 55 60 Thistory_t bht_history = reg_BHT[bht_num_reg]; 56 61 log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION," * bht_history (old): %x",bht_history); … … 135 140 pht_bht_history = bht_history; 136 141 log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION," * bht_history (new): %x",bht_history); 142 143 // #ifdef DEBUG_TEST 144 // assert(bht_num_reg < _param->_bht_nb_shifter); 145 // #endif 146 137 147 reg_BHT [bht_num_reg] = bht_history; 138 148 } … … 170 180 171 181 #if defined(DEBUG) and DEBUG_Two_Level_Branch_Predictor and (DEBUG >= DEBUG_TRACE) 172 if (1) 182 183 # if 0 173 184 { 174 185 log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION," * Dump Two_Level_Branch_Predictor"); … … 190 201 break; 191 202 else 192 str+=toString("[%.4d] %.4x ",index,reg_BHT[index]); 203 { 204 str+=toString("[%.4d] %.4x ",index,reg_BHT[index]); 205 } 193 206 } 194 207 … … 232 245 } 233 246 } 247 # endif 234 248 #endif 235 249
Note: See TracChangeset
for help on using the changeset viewer.