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/dt/int/sc_unsigned.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/dt/int/sc_unsigned.cc')
-rw-r--r-- | src/systemc/dt/int/sc_unsigned.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemc/dt/int/sc_unsigned.cc b/src/systemc/dt/int/sc_unsigned.cc index ffea95a68..b358c5cd3 100644 --- a/src/systemc/dt/int/sc_unsigned.cc +++ b/src/systemc/dt/int/sc_unsigned.cc @@ -89,6 +89,7 @@ #include "systemc/ext/dt/int/sc_uint_base.hh" #include "systemc/ext/dt/int/sc_unsigned.hh" #include "systemc/ext/dt/misc/sc_concatref.hh" +#include "systemc/ext/utils/messages.hh" // explicit template instantiations namespace sc_core @@ -131,7 +132,7 @@ sc_unsigned::invalid_index(int i) const std::stringstream msg; msg << "sc_biguint bit selection: index = " << i << " violates " "0 <= index <= " << (nbits-2); - SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); + SC_REPORT_ERROR(sc_core::SC_ID_OUT_OF_BOUNDS_, msg.str().c_str()); sc_core::sc_abort(); // can't recover from here } @@ -143,7 +144,7 @@ sc_unsigned::invalid_range(int l, int r) const l << ", right = " << r << " \n" " violates either (" << (nbits - 2) << " >= left >= 0) or " "(" << (nbits-2) << " >= right >= 0)"; - SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); + SC_REPORT_ERROR(sc_core::SC_ID_OUT_OF_BOUNDS_, msg.str().c_str()); sc_core::sc_abort(); // can't recover from here } |