diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-07 05:23:49 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:12:58 +0000 |
commit | e07f7efb75f0f7322d752608eb1cb1e1145b4a98 (patch) | |
tree | c70d86ba3130636fd8c6ff3c0d159727b81932c8 /src/systemc/core/sc_prim.cc | |
parent | 3420f0e223888bf70cd502efb5a534e651891b5c (diff) | |
download | gem5-e07f7efb75f0f7322d752608eb1cb1e1145b4a98.tar.xz |
systemc: Switch to using predefined messages for channels.
Create and use predefined messages for channels which match the ones
Accellera uses.
Change-Id: I179214838bbd83604e50225926cdc6b5b1b16923
Reviewed-on: https://gem5-review.googlesource.com/c/13330
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/sc_prim.cc')
-rw-r--r-- | src/systemc/core/sc_prim.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/systemc/core/sc_prim.cc b/src/systemc/core/sc_prim.cc index 099e5d8bf..5dacc7f2f 100644 --- a/src/systemc/core/sc_prim.cc +++ b/src/systemc/core/sc_prim.cc @@ -30,6 +30,7 @@ #include "base/logging.hh" #include "systemc/core/channel.hh" #include "systemc/core/scheduler.hh" +#include "systemc/ext/channel/messages.hh" #include "systemc/ext/core/sc_main.hh" #include "systemc/ext/core/sc_prim.hh" @@ -46,12 +47,10 @@ namespace sc_core sc_prim_channel::sc_prim_channel() : _gem5_channel(nullptr) { if (sc_is_running()) { - SC_REPORT_ERROR("(E113) insert primitive channel failed", - "simulation running"); + SC_REPORT_ERROR(SC_ID_INSERT_PRIM_CHANNEL_, "simulation running"); } if (::sc_gem5::scheduler.elaborationDone()) { - SC_REPORT_ERROR("(E113) insert primitive channel failed", - "elaboration done"); + SC_REPORT_ERROR(SC_ID_INSERT_PRIM_CHANNEL_, "elaboration done"); } _gem5_channel = new sc_gem5::Channel(this); } @@ -60,12 +59,10 @@ sc_prim_channel::sc_prim_channel(const char *_name) : sc_object(_name), _gem5_channel(nullptr) { if (sc_is_running()) { - SC_REPORT_ERROR("(E113) insert primitive channel failed", - "simulation running"); + SC_REPORT_ERROR(SC_ID_INSERT_PRIM_CHANNEL_, "simulation running"); } if (::sc_gem5::scheduler.elaborationDone()) { - SC_REPORT_ERROR("(E113) insert primitive channel failed", - "elaboration done"); + SC_REPORT_ERROR(SC_ID_INSERT_PRIM_CHANNEL_, "elaboration done"); } _gem5_channel = new sc_gem5::Channel(this); } |