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:
@@ -36,6 +36,7 @@
|
||||
#include "systemc/core/event.hh"
|
||||
#include "systemc/core/module.hh"
|
||||
#include "systemc/core/scheduler.hh"
|
||||
#include "systemc/ext/core/messages.hh"
|
||||
#include "systemc/ext/core/sc_module.hh"
|
||||
|
||||
namespace sc_gem5
|
||||
@@ -121,7 +122,7 @@ Object::Object(sc_core::sc_object *_sc_obj, const char *obj_name) :
|
||||
std::string message = path + original_name +
|
||||
". Latter declaration will be renamed to " +
|
||||
path + _basename;
|
||||
SC_REPORT_WARNING("(W505) object already exists", message.c_str());
|
||||
SC_REPORT_WARNING(sc_core::SC_ID_INSTANCE_EXISTS_, message.c_str());
|
||||
}
|
||||
_name = path + _basename;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user