Ignore:
Timestamp:
May 25, 2009, 7:40:26 PM (15 years ago)
Author:
rosiere
Message:

1) Prediction unit : static prediction not blocking

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  
    88
    99#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>
    1011
    1112namespace morpheo                    {
     
    5354                        log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION,"  * bht_num_reg      : %d",bht_num_reg);
    5455
     56// #ifdef DEBUG_TEST
     57//                         assert(bht_num_reg < _param->_bht_nb_shifter);
     58// #endif
     59
    5560                        Thistory_t bht_history = reg_BHT[bht_num_reg];
    5661                        log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION,"  * bht_history (old): %x",bht_history);
     
    135140                      pht_bht_history = bht_history;
    136141                      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
    137147                      reg_BHT [bht_num_reg]               = bht_history;
    138148                    }
     
    170180
    171181#if defined(DEBUG) and DEBUG_Two_Level_Branch_Predictor and (DEBUG >= DEBUG_TRACE)
    172     if (1)
     182
     183# if 0
    173184    {
    174185      log_printf(TRACE,Two_Level_Branch_Predictor,FUNCTION,"  * Dump Two_Level_Branch_Predictor");
     
    190201                    break;
    191202                  else
    192                     str+=toString("[%.4d] %.4x ",index,reg_BHT[index]);
     203                    {
     204                      str+=toString("[%.4d] %.4x ",index,reg_BHT[index]);
     205                    }
    193206                }
    194207             
     
    232245        }
    233246    }
     247# endif
    234248#endif
    235249
Note: See TracChangeset for help on using the changeset viewer.