From 7bfb7f3a43f382eb49853f47b140bfd6caad0fb8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 16 Aug 2018 14:42:24 -0700 Subject: systemc: When sc_start is told to run zero time, do one delta cycle. This is a special case which is mentioned in the spec but hadn't yet been given any special handling in this implementation. Change-Id: I500d046f09d916a08e22821f8d3e2f490f8ba5bb Reviewed-on: https://gem5-review.googlesource.com/12212 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/core/scheduler.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/systemc/core/scheduler.hh') diff --git a/src/systemc/core/scheduler.hh b/src/systemc/core/scheduler.hh index 983c53fde..661a36b78 100644 --- a/src/systemc/core/scheduler.hh +++ b/src/systemc/core/scheduler.hh @@ -269,6 +269,7 @@ class Scheduler void setScMainFiber(Fiber *sc_main) { scMain = sc_main; } void start(Tick max_tick, bool run_to_time); + void oneCycle(); void schedulePause(); void scheduleStop(bool finish_delta); @@ -323,6 +324,7 @@ class Scheduler bool initReady; bool runToTime; + bool runOnce; ProcessList initList; ProcessList toFinalize; -- cgit v1.2.3