diff options
author | Gabe Black <gabeblack@google.com> | 2018-08-16 20:59:29 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-25 23:51:06 +0000 |
commit | dd30c7ef763e01e52db5d6a9f9b0c9309fab9d4f (patch) | |
tree | 85304f719e05c83eae91fc2c6e4699349da71bd1 /src/systemc/core/kernel.cc | |
parent | 0150b6fc88abd38bc8f485b0bb47a6a4ef7d3373 (diff) | |
download | gem5-dd30c7ef763e01e52db5d6a9f9b0c9309fab9d4f.tar.xz |
systemc: Rework the init phase for the new way delta notes are handled.
The initialization phase had been done in a somewhat adhoc way,
partially because delta notifications were being handled as top level
gem5 events which were ordered based on their priorities. This change
makes the initialization phase happen more explicitly, and more in the
order in the spec.
Change-Id: I91d56b63fefcb81c845c52c97826a976a7559fad
Reviewed-on: https://gem5-review.googlesource.com/12217
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/kernel.cc')
-rw-r--r-- | src/systemc/core/kernel.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/systemc/core/kernel.cc b/src/systemc/core/kernel.cc index 84bdfd13f..2594bcc64 100644 --- a/src/systemc/core/kernel.cc +++ b/src/systemc/core/kernel.cc @@ -163,14 +163,7 @@ Kernel::stopWork() void Kernel::t0Handler() { - // Now that the event queue has started, mark all the processes that - // need to be initialized as ready to run. - // - // This event has greater priority than delta notifications and so will - // happen before them, honoring the ordering for the initialization phase - // in the spec. The delta phase will happen at normal priority, and then - // the event which runs the processes which is at a lower priority. - ::sc_gem5::scheduler.prepareForInit(); + ::sc_gem5::scheduler.initPhase(); status(::sc_core::SC_RUNNING); } |