[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[48] | 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h" |
---|
[2] | 10 | #include <sstream> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
[48] | 15 | namespace core { |
---|
| 16 | namespace multi_front_end { |
---|
| 17 | namespace front_end { |
---|
| 18 | namespace prediction_unit { |
---|
| 19 | namespace direction { |
---|
| 20 | |
---|
[2] | 21 | namespace meta_predictor { |
---|
| 22 | namespace two_level_branch_predictor { |
---|
| 23 | namespace two_level_branch_predictor_glue { |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | string Parameters::msg_error(void) |
---|
| 27 | { |
---|
| 28 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin"); |
---|
| 29 | |
---|
| 30 | string msg = ""; |
---|
| 31 | |
---|
[44] | 32 | if ((_have_bht and _have_pht) and (_pht_size_address_share >= _pht_size_address)) |
---|
[2] | 33 | { |
---|
| 34 | msg += " - You can't have higher pht_size_address_share >= pht_size_address\n"; |
---|
| 35 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
| 36 | msg += " * pht_size_address_share : " + toString(_pht_size_address_share) + "\n"; |
---|
| 37 | } |
---|
[44] | 38 | if ((_have_bht and _have_pht) and (_bht_size_history > _pht_size_address)) |
---|
| 39 | { |
---|
| 40 | msg += " - You can't have higher bht_size_history > pht_size_address\n"; |
---|
| 41 | msg += " * bht_size_history : " + toString(_bht_size_history ) + "\n"; |
---|
| 42 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
| 43 | } |
---|
[2] | 44 | |
---|
| 45 | return msg; |
---|
| 46 | |
---|
| 47 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End"); |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace two_level_branch_predictor_glue |
---|
| 51 | }; // end namespace two_level_branch_predictor |
---|
| 52 | }; // end namespace meta_predictor |
---|
[48] | 53 | |
---|
| 54 | }; // end namespace core |
---|
| 55 | }; // end namespace multi_front_end |
---|
| 56 | }; // end namespace front_end |
---|
| 57 | }; // end namespace prediction_unit |
---|
| 58 | }; // end namespace direction |
---|
| 59 | |
---|
[2] | 60 | }; // end namespace behavioural |
---|
| 61 | }; // end namespace morpheo |
---|