Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2222#undef  FUNCTION
    2323#define FUNCTION "Free_List_unit::msg_error"
    24   std::string Parameters::msg_error(void)
     24  Parameters_test Parameters::msg_error(void)
    2525  {
    2626    log_printf(FUNC,Free_List_unit,FUNCTION,"Begin");
    2727
    28     std::string msg = "";
     28    Parameters_test test ("Free_List_unit");
    2929
    3030    if (_nb_general_register <= _nb_thread*_nb_general_register_logic)
    31       msg += "  - The number of physical general register is insufficient.\n";
     31      test.error(_("The number of physical general register is insufficient.\n"));
    3232    if (_nb_special_register <= _nb_thread*_nb_special_register_logic)
    33       msg += "  - The number of physical special register is insufficient.\n";
     33      test.error(_("The number of physical special register is insufficient.\n"));
    3434    if (not is_multiple (_nb_bank, _nb_pop))
    35       msg += "  - Number of pop must be a multiple of number of bank.\n";
     35      test.error(_("Number of pop must be a multiple of number of bank.\n"));
    3636    if (not is_power2 (_nb_bank))
    37       msg += "  - Number of bank must be a power of 2.\n";
     37      test.error(_("Number of bank must be a power of 2.\n"));
    3838
    3939    if ((_priority != PRIORITY_STATIC) and
    4040        (_priority != PRIORITY_ROUND_ROBIN))
    41       msg += "  - Unsupported priority scheme. Supported scheme are "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n";
     41      test.error(toString(_("Unsupported priority scheme. Supported scheme are %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str()));
    4242
    43     return msg;
     43    return test;
    4444
    4545    log_printf(FUNC,Free_List_unit,FUNCTION,"End");
Note: See TracChangeset for help on using the changeset viewer.