[78] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace prediction_unit { |
---|
| 18 | namespace direction { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Direction::msg_error" |
---|
| 23 | Parameters_test Parameters::msg_error(void) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Direction,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | Parameters_test test ("Direction"); |
---|
| 28 | |
---|
| 29 | if (_nb_inst_predict == 0) |
---|
| 30 | test.error("nb_inst_predict must be > 0."); |
---|
| 31 | |
---|
| 32 | if (_nb_inst_update == 0) |
---|
| 33 | test.error("nb_inst_update must be > 0."); |
---|
| 34 | |
---|
| 35 | switch (_predictor_scheme) |
---|
| 36 | { |
---|
| 37 | case PREDICTOR_NEVER_TAKE : |
---|
| 38 | case PREDICTOR_ALWAYS_TAKE : |
---|
| 39 | case PREDICTOR_STATIC : |
---|
| 40 | case PREDICTOR_LAST_TAKE : |
---|
| 41 | { |
---|
| 42 | break; |
---|
| 43 | } |
---|
| 44 | case PREDICTOR_COUNTER : |
---|
| 45 | case PREDICTOR_LOCAL : |
---|
| 46 | case PREDICTOR_GLOBAL : |
---|
| 47 | case PREDICTOR_META : |
---|
| 48 | case PREDICTOR_CUSTOM : |
---|
| 49 | { |
---|
| 50 | test.error("Unimplemented predictor_scheme : \""+toString(_predictor_scheme)+"\". (Coming Soon)"); |
---|
| 51 | break; |
---|
| 52 | } |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | log_printf(FUNC,Direction,FUNCTION,"End"); |
---|
| 56 | |
---|
| 57 | return test; |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | }; // end namespace direction |
---|
| 61 | }; // end namespace prediction_unit |
---|
| 62 | }; // end namespace front_end |
---|
| 63 | }; // end namespace multi_front_end |
---|
| 64 | }; // end namespace core |
---|
| 65 | |
---|
| 66 | }; // end namespace behavioural |
---|
| 67 | }; // end namespace morpheo |
---|