[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace stage_1_ifetch { |
---|
| 13 | namespace predictor { |
---|
| 14 | namespace meta_predictor { |
---|
| 15 | namespace two_level_branch_predictor { |
---|
| 16 | namespace two_level_branch_predictor_glue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | Parameters::Parameters (bool have_bht , |
---|
| 20 | uint32_t bht_size_history , |
---|
| 21 | uint32_t bht_size_address , |
---|
| 22 | bool have_pht , |
---|
| 23 | uint32_t pht_size_address , |
---|
| 24 | uint32_t pht_size_address_share , |
---|
| 25 | uint32_t size_address , |
---|
| 26 | uint32_t nb_prediction , |
---|
| 27 | uint32_t nb_branch_complete ): |
---|
| 28 | _have_bht (have_bht ), |
---|
| 29 | _bht_size_history (bht_size_history ), |
---|
| 30 | _bht_size_address (bht_size_address ), |
---|
| 31 | _have_pht (have_pht ), |
---|
| 32 | _pht_size_address (pht_size_address ), |
---|
| 33 | _pht_size_address_share (pht_size_address_share ), |
---|
| 34 | _size_address (size_address ), |
---|
| 35 | _nb_prediction (nb_prediction ), |
---|
| 36 | _nb_branch_complete (nb_branch_complete ), |
---|
| 37 | _pht_size_address_shift (bht_size_history-pht_size_address_share) |
---|
| 38 | { |
---|
| 39 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","Begin"); |
---|
| 40 | test(); |
---|
| 41 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","End"); |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | Parameters::Parameters (Parameters & param): |
---|
| 45 | _have_bht (param._have_bht ), |
---|
| 46 | _bht_size_history (param._bht_size_history ), |
---|
| 47 | _bht_size_address (param._bht_size_address ), |
---|
| 48 | _have_pht (param._have_pht ), |
---|
| 49 | _pht_size_address (param._pht_size_address ), |
---|
| 50 | _pht_size_address_share (param._pht_size_address_share ), |
---|
| 51 | _size_address (param._size_address ), |
---|
| 52 | _nb_prediction (param._nb_prediction ), |
---|
| 53 | _nb_branch_complete (param._nb_branch_complete ), |
---|
| 54 | _pht_size_address_shift (param._pht_size_address_shift ) |
---|
| 55 | { |
---|
| 56 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","Begin"); |
---|
| 57 | test(); |
---|
| 58 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","End"); |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | Parameters::~Parameters () |
---|
| 62 | { |
---|
| 63 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"~Parameters","Begin"); |
---|
| 64 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"~Parameters","End"); |
---|
| 65 | }; |
---|
| 66 | |
---|
| 67 | }; // end namespace two_level_branch_predictor_glue |
---|
| 68 | }; // end namespace two_level_branch_predictor |
---|
| 69 | }; // end namespace meta_predictor |
---|
| 70 | }; // end namespace predictor |
---|
| 71 | }; // end namespace stage_1_ifetch |
---|
| 72 | }; // end namespace behavioural |
---|
| 73 | }; // end namespace morpheo |
---|