summaryrefslogtreecommitdiff
path: root/src/systemc/core/sc_module.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-05 16:08:24 -0700
committerGabe Black <gabeblack@google.com>2018-10-09 21:36:27 +0000
commit930386c114eda9e0f57d407d2ef61740fd75fc88 (patch)
treec1bee81ffe3cf56891bb278b092cb15d8eceddb1 /src/systemc/core/sc_module.cc
parent38086692c4103f1373c06d79b09a0943935a8b2a (diff)
downloadgem5-930386c114eda9e0f57d407d2ef61740fd75fc88.tar.xz
systemc: Implement the nonstandard halt function.
Change-Id: Ie9bd9db92a63169980230bc9a15e153d5609dd0b Reviewed-on: https://gem5-review.googlesource.com/c/12594 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/sc_module.cc')
-rw-r--r--src/systemc/core/sc_module.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index 8418a3136..2ba0fa221 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -670,7 +670,8 @@ wait(double d, sc_time_unit u, const sc_event_and_list &eal)
void
halt()
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ ::sc_core::wait();
+ throw ::sc_gem5::ScHalt();
}
void