Revert "systemc: Fix clang9 linker error"
authorGabe Black <gabeblack@google.com>
Sat, 23 May 2020 07:07:03 +0000 (00:07 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 25 May 2020 23:17:14 +0000 (23:17 +0000)
This reverts commit 80a263698323852b1951d8d71ca0d599dff7ef3c.

Change-Id: I24c69d1a5a54ac8b8d5713314f6e91e5a6263c26
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29395
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/systemc/core/scheduler.cc
src/systemc/core/scheduler.hh

index f94c2049941e12cc05cf625e30fa8201f7b185ee..179bd5523dc033f889af3f0c91e6cbc2c864eaee 100644 (file)
@@ -479,13 +479,6 @@ Scheduler::scheduleStop(bool finish_delta)
     schedule(&stopEvent);
 }
 
-void
-Scheduler::scheduleTimeAdvancesEvent()
-{
-    if (!traceFiles.empty() && !timeAdvancesEvent.scheduled())
-        schedule(&timeAdvancesEvent);
-}
-
 void
 Scheduler::trace(bool delta)
 {
index e7c7290e30999c37671ebcb79c2b658bc340b941..c9ca161cf17fe5a44f145f49fbbefdec17127ace 100644 (file)
@@ -459,7 +459,12 @@ class Scheduler
 
     void timeAdvances() { trace(false); }
     EventWrapper<Scheduler, &Scheduler::timeAdvances> timeAdvancesEvent;
-    void scheduleTimeAdvancesEvent();
+    void
+    scheduleTimeAdvancesEvent()
+    {
+        if (!traceFiles.empty() && !timeAdvancesEvent.scheduled())
+            schedule(&timeAdvancesEvent);
+    }
 
     uint64_t _numCycles;
     uint64_t _changeStamp;