[88] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Front_end_Glue/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 front_end_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Front_end_Glue::msg_error" |
---|
| 22 | Parameters_test Parameters::msg_error(void) |
---|
| 23 | { |
---|
| 24 | log_begin(Front_end_Glue,FUNCTION); |
---|
| 25 | |
---|
| 26 | Parameters_test test ("Front_end_Glue"); |
---|
| 27 | |
---|
| 28 | std::vector<uint32_t> translate_context_from_decod_unit [_nb_decod_unit]; |
---|
| 29 | for (uint32_t i=0; i<_nb_context; ++i) |
---|
| 30 | { |
---|
| 31 | uint32_t x = _link_context_to_decod_unit[i]; |
---|
| 32 | if (x < _nb_decod_unit) |
---|
| 33 | translate_context_from_decod_unit [x].push_back(i); |
---|
| 34 | else |
---|
| 35 | test.error(toString(_("context[%d] is linked with an invalid decod_unit.\n"),i)); |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | for (uint32_t i=0; i<_nb_decod_unit; ++i) |
---|
| 39 | if (translate_context_from_decod_unit [i].size() == 0) |
---|
| 40 | test.error(toString(_("decod_unit[%d] is not linked with a ifetch_unit.\n"),i)); |
---|
| 41 | |
---|
| 42 | log_end(Front_end_Glue,FUNCTION); |
---|
| 43 | |
---|
| 44 | return test; |
---|
| 45 | }; |
---|
| 46 | |
---|
| 47 | }; // end namespace front_end_glue |
---|
| 48 | }; // end namespace front_end |
---|
| 49 | }; // end namespace multi_front_end |
---|
| 50 | }; // end namespace core |
---|
| 51 | |
---|
| 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|