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/ext/utils/sc_vector.hh | |
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/ext/utils/sc_vector.hh')
-rw-r--r-- | src/systemc/ext/utils/sc_vector.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systemc/ext/utils/sc_vector.hh b/src/systemc/ext/utils/sc_vector.hh index f005751d5..f5a8f9ccb 100644 --- a/src/systemc/ext/utils/sc_vector.hh +++ b/src/systemc/ext/utils/sc_vector.hh @@ -57,6 +57,7 @@ #include "../core/sc_module.hh" #include "../core/sc_object.hh" +#include "messages.hh" namespace sc_gem5 { @@ -182,9 +183,7 @@ class sc_vector_base : public sc_object sc_object *implicitCast(sc_object *p) const { return p; } sc_object *implicitCast(...) const { - SC_REPORT_ERROR( - "(E808) sc_vector::get_elements called for element type " - "not derived from sc_object", name()); + SC_REPORT_ERROR(SC_ID_VECTOR_NONOBJECT_ELEMENTS_, name()); return nullptr; } virtual sc_object *objectCast(void *) const = 0; |