Ignore:
Timestamp:
May 9, 2008, 8:00:21 PM (16 years ago)
Author:
rosiere
Message:

Add component : Context_State (manage miss prediction, exception , decod_enable, synchronisation instruction ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/main.cpp

    r82 r83  
    1414  err (_("<Usage> %s name_instance list_params.\n"),argv[0]);
    1515  err (_("list_params is :\n"));
    16   err (_(" * ()\n"));
     16  err (_(" *  ()\n"));
    1717
    1818  exit (1);
     
    3131
    3232  string name = argv[x++];
    33 //const uint32_t size_data = atoi(argv[x++]);
    34 //const uint32_t nb_port   = atoi(argv[x++]);
    3533
    3634  int _return = EXIT_SUCCESS;
     
    3836    {
    3937      morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters
    40         (//size_data,
    41          //nb_port 
     38        (
    4239        );
    4340     
     
    5148      _return = EXIT_FAILURE;
    5249    }
    53   catch (...)
     50
     51  try
    5452    {
    55       err (_("<%s> : This test must generate a error.\n"),name.c_str());
     53      if (_return == EXIT_SUCCESS)
     54        TEST_OK("@COMPONENT : no error");
     55      else
     56        TEST_KO("@COMPONENT : a lot of error");
     57    }
     58  catch (morpheo::ErrorMorpheo & error)
     59    {
     60      msg (_("<%s> :\n%s"),name.c_str(), error.what ());
    5661      _return = EXIT_FAILURE;
    5762    }
Note: See TracChangeset for help on using the changeset viewer.