[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 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
| 15 | namespace stage_1_ifetch { |
---|
| 16 | namespace predictor { |
---|
| 17 | namespace meta_predictor { |
---|
| 18 | namespace two_level_branch_predictor { |
---|
| 19 | namespace two_level_branch_predictor_glue { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | string Parameters::msg_error(void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin"); |
---|
| 25 | |
---|
| 26 | string msg = ""; |
---|
| 27 | |
---|
[44] | 28 | if ((_have_bht and _have_pht) and (_pht_size_address_share >= _pht_size_address)) |
---|
[2] | 29 | { |
---|
| 30 | msg += " - You can't have higher pht_size_address_share >= pht_size_address\n"; |
---|
| 31 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
| 32 | msg += " * pht_size_address_share : " + toString(_pht_size_address_share) + "\n"; |
---|
| 33 | } |
---|
[44] | 34 | if ((_have_bht and _have_pht) and (_bht_size_history > _pht_size_address)) |
---|
| 35 | { |
---|
| 36 | msg += " - You can't have higher bht_size_history > pht_size_address\n"; |
---|
| 37 | msg += " * bht_size_history : " + toString(_bht_size_history ) + "\n"; |
---|
| 38 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
| 39 | } |
---|
[2] | 40 | |
---|
| 41 | return msg; |
---|
| 42 | |
---|
| 43 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End"); |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | }; // end namespace two_level_branch_predictor_glue |
---|
| 47 | }; // end namespace two_level_branch_predictor |
---|
| 48 | }; // end namespace meta_predictor |
---|
| 49 | }; // end namespace predictor |
---|
| 50 | }; // end namespace stage_1_ifetch |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|