cpu: Delegate comInstEventQueue methods to the ThreadContexts.
authorGabe Black <gabeblack@google.com>
Mon, 14 Oct 2019 05:54:11 +0000 (22:54 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 25 Oct 2019 22:42:31 +0000 (22:42 +0000)
commitfd030fd9f5893e1ce198bf760ab4a7f2704d921b
tree066536de5ae0448f78e101d0aecb7745c422ae9b
parentc73c19effd8f7f9b6e2ec470f04b8f1f43ce7354
cpu: Delegate comInstEventQueue methods to the ThreadContexts.

These then just use the comInstEventQueue array from the CPU, but soon
they will actually be self contained and allow the thread context to
use whatever mechanism it wants.

Also, now that the thread contexts need to exist before instruction
count based events can be scheduled, setting up max instruction based
events needs to happen in init after the CPU subclasses have had a
chance to set up the threadContexts vector.

Change-Id: I34bb401633d277a60be74e30d5a478a149b972ea
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22108
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/base.cc
src/cpu/base.hh
src/cpu/thread_context.cc
src/cpu/thread_context.hh