summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-15 23:19:23 -0700
committerGabe Black <gabeblack@google.com>2018-08-28 21:22:39 +0000
commit9dacb892a5e451c29e62917e0a41a4d06e99d2de (patch)
treec26fc30eab80b9506f390415c62e044cc2e0bd16 /src/systemc
parent6d9b0de3b5a6b46addfd97e57f68b1180e7afa39 (diff)
downloadgem5-9dacb892a5e451c29e62917e0a41a4d06e99d2de.tar.xz
systemc: Add the nonstandard sc_user exception type.
This type is not in the spec but is used in the tests. Change-Id: I4537a33b0b5dcb3c72a091276d601c244c4a3862 Reviewed-on: https://gem5-review.googlesource.com/11284 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/ext/utils/sc_exception.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systemc/ext/utils/sc_exception.hh b/src/systemc/ext/utils/sc_exception.hh
index 3bd8fb0f1..8e02ea913 100644
--- a/src/systemc/ext/utils/sc_exception.hh
+++ b/src/systemc/ext/utils/sc_exception.hh
@@ -37,6 +37,14 @@ namespace sc_core
typedef std::exception sc_exception;
+// Nonstandard
+class sc_user
+{
+ public:
+ sc_user() {}
+ sc_user(const sc_user &) {}
+};
+
} // namespace sc_core
#endif //__SYSTEMC_EXT_UTIL_SC_EXCEPTION_HH__