systemc: Implement sc_get_curr_process_handle().
authorGabe Black <gabeblack@google.com>
Sat, 22 Sep 2018 14:36:36 +0000 (07:36 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:31:33 +0000 (00:31 +0000)
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>

src/systemc/core/sc_process_handle.cc

index c7701a684cfa1d41b200eac52edf8986f571a1dc..8bf939801db99f094ff1841708e6bb4b3a4216d1 100644 (file)
@@ -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();
 }