diff options
author | Gabe Black <gabeblack@google.com> | 2018-09-22 07:36:36 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 00:31:33 +0000 |
commit | 7fa683ada5cb84ac9f5c20e82e642b14161ffedb (patch) | |
tree | 0aff735f8c61bf8af07cc13e74de7fbe8a980cef | |
parent | dc599a0176f12b6fe17084258a1ec8adef6774d8 (diff) | |
download | gem5-7fa683ada5cb84ac9f5c20e82e642b14161ffedb.tar.xz |
systemc: Implement sc_get_curr_process_handle().
The implementation is fairly trivial, but the pieces it relies on
weren't always available.
Change-Id: Ie77168ff336febd3ebe22c400f2b1f133e43aca7
Reviewed-on: https://gem5-review.googlesource.com/c/12973
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r-- | src/systemc/core/sc_process_handle.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemc/core/sc_process_handle.cc b/src/systemc/core/sc_process_handle.cc index c7701a684..8bf939801 100644 --- a/src/systemc/core/sc_process_handle.cc +++ b/src/systemc/core/sc_process_handle.cc @@ -70,8 +70,7 @@ sc_set_location(const char *file, int lineno) sc_process_b * sc_get_curr_process_handle() { - warn("%s not implemented.\n", __PRETTY_FUNCTION__); - return nullptr; + return ::sc_gem5::scheduler.current(); } |