systemc: Add the nonstandard sc_user exception type.
authorGabe Black <gabeblack@google.com>
Sat, 16 Jun 2018 06:19:23 +0000 (23:19 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 28 Aug 2018 21:22:39 +0000 (21:22 +0000)
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>

src/systemc/ext/utils/sc_exception.hh

index 3bd8fb0f15bf31ee4f54bdb30fcfbb9145f8aa19..8e02ea9139550f5914bd8e14a0937dc6369ec04e 100644 (file)
@@ -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__