Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/13201
Change subject: systemc: Clear the current process when done with the eval
phase.
......................................................................
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
---
M src/systemc/core/scheduler.cc
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/systemc/core/scheduler.cc b/src/systemc/core/scheduler.cc
index d575055..0071e2d 100644
--- a/src/systemc/core/scheduler.cc
+++ b/src/systemc/core/scheduler.cc
@@ -280,6 +280,7 @@
do {
yield();
} while (getNextReady());
+ _current = nullptr;
if (!empty) {
_numCycles++;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13201
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Idd44689e10fadf4a3e3ec07c60d107c80a44d39f
Gerrit-Change-Number: 13201
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev