diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-08 19:01:38 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:13:23 +0000 |
commit | c9f83ec94ba1d7de0cfc46a9a23af2f9e04450e8 (patch) | |
tree | 4993ca5a6892b108ae1bc040a23366ef326f190b /src/systemc/ext/dt/fx/scfx_params.hh | |
parent | e07f7efb75f0f7322d752608eb1cb1e1145b4a98 (diff) | |
download | gem5-c9f83ec94ba1d7de0cfc46a9a23af2f9e04450e8.tar.xz |
systemc: Switch to using predefined messages for datatypes.
Create and use predefined messages for datatypes which match the ones
Accellera uses.
Change-Id: I92dd52f62462b864264217bb81f3ff1dcec020bf
Reviewed-on: https://gem5-review.googlesource.com/c/13331
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/dt/fx/scfx_params.hh')
-rw-r--r-- | src/systemc/ext/dt/fx/scfx_params.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemc/ext/dt/fx/scfx_params.hh b/src/systemc/ext/dt/fx/scfx_params.hh index dd5c9b695..eabc9a05d 100644 --- a/src/systemc/ext/dt/fx/scfx_params.hh +++ b/src/systemc/ext/dt/fx/scfx_params.hh @@ -47,6 +47,7 @@ #ifndef __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ #define __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ +#include "messages.hh" #include "sc_fxcast_switch.hh" #include "sc_fxtype_params.hh" @@ -101,8 +102,8 @@ inline scfx_params::scfx_params(const sc_fxtype_params &type_params_, m_type_params(type_params_), m_enc(enc_), m_cast_switch(cast_sw) { if (m_enc == SC_US_ && m_type_params.o_mode() == SC_WRAP_SM) { - SC_REPORT_ERROR("invalid overflow mode", - "SC_WRAP_SM not defined for unsigned numbers"); + SC_REPORT_ERROR(sc_core::SC_ID_INVALID_O_MODE_, + sc_core::SC_ID_WRAP_SM_NOT_DEFINED_); // may continue, if suppressed } } |