From: Gabe Black Date: Tue, 2 Oct 2018 04:58:50 +0000 (-0700) Subject: systemc: Clear the current process when done with the eval phase. X-Git-Tag: v19.0.0.0~1544 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f93e27666f2ddc85afd618df6f2c3874ac967715;p=gem5.git systemc: Clear the current process when done with the eval phase. The current process will still be set sometimes when exiting from the yield loop in the top of runReady in the scheduler. Clear it to ensure that we don't think a process is running when it isn't. Change-Id: Idd44689e10fadf4a3e3ec07c60d107c80a44d39f Reviewed-on: https://gem5-review.googlesource.com/c/13201 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/core/scheduler.cc b/src/systemc/core/scheduler.cc index d57505517..0071e2dd4 100644 --- a/src/systemc/core/scheduler.cc +++ b/src/systemc/core/scheduler.cc @@ -280,6 +280,7 @@ Scheduler::runReady() do { yield(); } while (getNextReady()); + _current = nullptr; if (!empty) { _numCycles++;