Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src
- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Parameters_msg_error.cpp
r81 r82 21 21 #undef FUNCTION 22 22 #define FUNCTION "Decod::msg_error" 23 std::stringParameters::msg_error(void)23 Parameters_test Parameters::msg_error(void) 24 24 { 25 25 log_printf(FUNC,Decod,FUNCTION,"Begin"); 26 27 std::string msg = "";26 27 Parameters_test test("Decod"); 28 28 29 29 if (_nb_inst_decod == 0) 30 msg += " - nb_inst_decod must be > 0.\n";30 test.error(_("nb_inst_decod must be > 0.\n")); 31 31 32 32 if ((_size_general_data != 32) and 33 33 (_size_general_data != 64)) 34 msg += " - size_general_data must be equal at 32 or 64 bits.\n";34 test.error(_("size_general_data must be equal at 32 or 64 bits.\n")); 35 35 36 36 if ((_nb_branch_speculated == 0) or 37 37 (_nb_branch_speculated > _nb_context)) 38 msg += " - nb_branch_speculated must be in [1:nb_context].\n";38 test.error(_("nb_branch_speculated must be in [1:nb_context].\n")); 39 39 40 40 if ((_nb_context_select == 0) or 41 41 (_nb_context_select > _nb_context)) 42 msg += " - nb_context_select must be in [1:nb_context].\n";42 test.error(_("nb_context_select must be in [1:nb_context].\n")); 43 43 44 44 if ((_priority != PRIORITY_ROUND_ROBIN)) 45 msg += " - Unsupported priority scheme. Supported scheme are : "+toString(PRIORITY_ROUND_ROBIN)+".\n";45 test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s.\n"),toString(PRIORITY_ROUND_ROBIN).c_str())); 46 46 47 47 if ((_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)) 48 msg += " - Unsupported load_balancing scheme. Supported scheme are : "+toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)+".\n";48 test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s.\n"),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str())); 49 49 50 return msg;50 return test; 51 51 52 52 log_printf(FUNC,Decod,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.