diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-07 03:02:56 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:11:44 +0000 |
commit | b366cbcde953e2adddc10a2825e2803b5f8a9bdd (patch) | |
tree | e532fa49c762eb6b293f88f5a0583946d3a88227 /src/systemc/utils/sc_vector.cc | |
parent | 98f40c54a31457078de587b8a29fdd055b9db28b (diff) | |
download | gem5-b366cbcde953e2adddc10a2825e2803b5f8a9bdd.tar.xz |
systemc: Switch to using predefined messages for utils.
Create and use predefined messages for utils which match the ones
Accellera uses.
Change-Id: I932b7206fc16181d01a0d5b7441ce617b30e5365
Reviewed-on: https://gem5-review.googlesource.com/c/13328
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/utils/sc_vector.cc')
-rw-r--r-- | src/systemc/utils/sc_vector.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemc/utils/sc_vector.cc b/src/systemc/utils/sc_vector.cc index 985253995..9d086105f 100644 --- a/src/systemc/utils/sc_vector.cc +++ b/src/systemc/utils/sc_vector.cc @@ -50,6 +50,7 @@ #include "base/cprintf.hh" #include "systemc/core/object.hh" +#include "systemc/ext/utils/messages.hh" #include "systemc/ext/utils/sc_report_handler.hh" #include "systemc/ext/utils/sc_vector.hh" @@ -76,7 +77,7 @@ sc_vector_base::checkIndex(size_type index) const if (index >= size()) { std::ostringstream ss; ccprintf(ss, "%s[%d] >= size() = %d", name(), index, size()); - SC_REPORT_ERROR("(E5) out of bounds", ss.str().c_str()); + SC_REPORT_ERROR(sc_core::SC_ID_OUT_OF_BOUNDS_, ss.str().c_str()); sc_abort(); } } @@ -107,8 +108,7 @@ sc_vector_base::reportEmpty(const char *kind_, bool empty_dest) const else ss << "empty destination range given"; - SC_REPORT_WARNING("(W807) sc_vector::bind called with empty range", - ss.str().c_str()); + SC_REPORT_WARNING(SC_ID_VECTOR_BIND_EMPTY_, ss.str().c_str()); } } // namespace sc_core |