[5] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[48] | 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/include/Parameters.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/include/Types.h" |
---|
[5] | 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 | |
---|
[5] | 21 | namespace meta_predictor { |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | string Parameters::msg_error(void) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Meta_Predictor,"msg_error","Begin"); |
---|
| 27 | |
---|
| 28 | string msg = ""; |
---|
| 29 | |
---|
| 30 | // note : size_shifter and size_counter is set at 0 if not need |
---|
| 31 | if ((8*sizeof(Thistory_t)) < _size_history) |
---|
| 32 | { |
---|
| 33 | msg += " - type \"Thistory_t\" is too little to the total size of history (shifter's size and counter's size)\n"; |
---|
| 34 | msg += " * predictor_0_bht_size_shifter : " + toString(_predictor_0_bht_size_shifter) + "\n"; |
---|
| 35 | msg += " * predictor_0_pht_size_counter : " + toString(_predictor_0_pht_size_counter) + "\n"; |
---|
| 36 | msg += " * predictor_1_bht_size_shifter : " + toString(_predictor_1_bht_size_shifter) + "\n"; |
---|
| 37 | msg += " * predictor_1_pht_size_counter : " + toString(_predictor_1_pht_size_counter) + "\n"; |
---|
| 38 | msg += " * predictor_2_bht_size_shifter : " + toString(_predictor_2_bht_size_shifter) + "\n"; |
---|
| 39 | msg += " * predictor_2_pht_size_counter : " + toString(_predictor_2_pht_size_counter) + "\n"; |
---|
| 40 | msg += " * Thistory_t (bits): " + toString(8*(sizeof(Thistory_t))) + "\n"; |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | return msg; |
---|
| 44 | |
---|
| 45 | log_printf(FUNC,Meta_Predictor,"msg_error","End"); |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace meta_predictor |
---|
| 49 | |
---|
[48] | 50 | }; // end namespace core |
---|
| 51 | }; // end namespace multi_front_end |
---|
| 52 | }; // end namespace front_end |
---|
| 53 | }; // end namespace prediction_unit |
---|
| 54 | }; // end namespace direction |
---|
| 55 | |
---|
| 56 | |
---|
[5] | 57 | }; // end namespace behavioural |
---|
| 58 | }; // end namespace morpheo |
---|