summaryrefslogtreecommitdiff
path: root/src/systemc/dt/int/sc_signed.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-07 03:02:56 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:11:44 +0000
commitb366cbcde953e2adddc10a2825e2803b5f8a9bdd (patch)
treee532fa49c762eb6b293f88f5a0583946d3a88227 /src/systemc/dt/int/sc_signed.cc
parent98f40c54a31457078de587b8a29fdd055b9db28b (diff)
downloadgem5-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_signed.cc')
-rw-r--r--src/systemc/dt/int/sc_signed.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/dt/int/sc_signed.cc b/src/systemc/dt/int/sc_signed.cc
index 74660b371..cbb688523 100644
--- a/src/systemc/dt/int/sc_signed.cc
+++ b/src/systemc/dt/int/sc_signed.cc
@@ -123,7 +123,7 @@ sc_signed::invalid_index(int i) const
std::stringstream msg;
msg << "sc_bigint bit selection: index = " << i << " violates "
"0 <= index <= " << (nbits - 1);
- 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
}
@@ -135,7 +135,7 @@ sc_signed::invalid_range(int l, int r) const
l << ", right = " << r << " \n"
" violates either (" << (nbits-1) << " >= left >= 0) or "
"(" << (nbits-1) << " >= 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
}