From 9dacb892a5e451c29e62917e0a41a4d06e99d2de Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 15 Jun 2018 23:19:23 -0700 Subject: [PATCH] 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 Maintainer: Gabe Black --- src/systemc/ext/utils/sc_exception.hh | 8 ++++++++ 1 file changed, 8 insertions(+) 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__ -- 2.30.2