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/channel/sc_signal.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/channel/sc_signal.cc')
-rw-r--r-- | src/systemc/channel/sc_signal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/channel/sc_signal.cc b/src/systemc/channel/sc_signal.cc index 14ee8a6e4..e3a3cf575 100644 --- a/src/systemc/channel/sc_signal.cc +++ b/src/systemc/channel/sc_signal.cc @@ -30,6 +30,7 @@ #include <sstream> #include "systemc/core/scheduler.hh" +#include "systemc/ext/channel/messages.hh" #include "systemc/ext/channel/sc_signal.hh" #include "systemc/ext/core/sc_main.hh" @@ -85,8 +86,7 @@ reportSignalError(ScSignalBase *sig, sc_core::sc_object *first, ss << "\n conflicting write in delta cycle " << sc_core::sc_delta_count(); } - SC_REPORT_ERROR( - "(E115) sc_signal<T> cannot have more than one driver", + SC_REPORT_ERROR(sc_core::SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, ss.str().c_str()); } |