From b366cbcde953e2adddc10a2825e2803b5f8a9bdd Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 7 Oct 2018 03:02:56 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/utils/sc_vector.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/systemc/utils/sc_vector.cc') 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 -- cgit v1.2.3