Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/12264
Change subject: systemc: When a thread completes, yield to the scheduler.
......................................................................
systemc: When a thread completes, yield to the scheduler.
Don't just fall off the end of the fiber and return to gem5. By
calling yield, we ensure that remaining Processes are run and that
bookkeeping is maintained correctly.
Change-Id: Ifbe104e155cad29e40a89767a7c1f986399f784d
---
M src/systemc/core/process_types.hh
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/systemc/core/process_types.hh
b/src/systemc/core/process_types.hh
index 7617d41..2dde467 100644
--- a/src/systemc/core/process_types.hh
+++ b/src/systemc/core/process_types.hh
@@ -94,6 +94,7 @@
thread->_needsStart = false;
thread->run();
thread->terminate();
+ scheduler.yield();
}
};
friend class Context;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12264
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: Ifbe104e155cad29e40a89767a7c1f986399f784d
Gerrit-Change-Number: 12264
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