systemc: Switch to using predefined messages for core.
Create and use predefined messages for core which match the ones Accellera uses. Change-Id: I05b1398933f753946d5917f39d0f39c7cb45ed9f Reviewed-on: https://gem5-review.googlesource.com/c/13323 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -72,7 +72,7 @@ SC_MODULE(X)
|
||||
{
|
||||
SC_CTOR(X)
|
||||
{
|
||||
SC_REPORT_ERROR("set time resolution failed","");
|
||||
SC_REPORT_ERROR(SC_ID_SET_TIME_RESOLUTION_,"");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -59,8 +59,8 @@ void check_time( const sc_time& t, sc_time_unit tu, const std::string & str )
|
||||
|
||||
int sc_main( int, char*[] )
|
||||
{
|
||||
sc_report_handler::set_actions( "set time resolution failed", SC_DO_NOTHING );
|
||||
sc_report_handler::set_actions( "sc_time conversion failed", SC_DISPLAY );
|
||||
sc_report_handler::set_actions( SC_ID_SET_TIME_RESOLUTION_, SC_DO_NOTHING );
|
||||
sc_report_handler::set_actions( SC_ID_TIME_CONVERSION_FAILED_, SC_DISPLAY );
|
||||
|
||||
unsigned resolutions[] = { 100, 10, 1 };
|
||||
sc_time_unit resunit = SC_FS;
|
||||
|
||||
Reference in New Issue
Block a user