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/dt/fx/sc_fxval.cc | 4 +++- src/systemc/dt/fx/scfx_rep.cc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/systemc/dt/fx') diff --git a/src/systemc/dt/fx/sc_fxval.cc b/src/systemc/dt/fx/sc_fxval.cc index 45d7d5735..3b3b1e031 100644 --- a/src/systemc/dt/fx/sc_fxval.cc +++ b/src/systemc/dt/fx/sc_fxval.cc @@ -51,6 +51,7 @@ #include #include "systemc/ext/dt/fx/sc_fxval.hh" +#include "systemc/ext/utils/messages.hh" namespace sc_dt { @@ -383,7 +384,8 @@ print_other(scfx_string &s, const scfx_ieee_double &id, sc_numrep numrep, step = 4; break; default: - SC_REPORT_FATAL("assertion failed", "unexpected sc_numrep"); + SC_REPORT_FATAL(sc_core::SC_ID_ASSERTION_FAILED_, + "unexpected sc_numrep"); sc_core::sc_abort(); } diff --git a/src/systemc/dt/fx/scfx_rep.cc b/src/systemc/dt/fx/scfx_rep.cc index ae19fabe0..f94c5eae0 100644 --- a/src/systemc/dt/fx/scfx_rep.cc +++ b/src/systemc/dt/fx/scfx_rep.cc @@ -71,6 +71,7 @@ #include "systemc/ext/dt/fx/scfx_rep.hh" #include "systemc/ext/dt/fx/scfx_utils.hh" #include "systemc/ext/utils/endian.hh" +#include "systemc/ext/utils/messages.hh" namespace sc_dt { @@ -1078,7 +1079,8 @@ print_other(scfx_string &s, const scfx_rep &a, sc_numrep numrep, int w_prefix, step = 4; break; default: - SC_REPORT_FATAL("assertion failed", "unexpected sc_numrep"); + SC_REPORT_FATAL(sc_core::SC_ID_ASSERTION_FAILED_, + "unexpected sc_numrep"); sc_core::sc_abort(); } -- cgit v1.2.3