fastmodel: Add a gem5Cpu attribute to the CortexA76x1.
authorGabe Black <gabeblack@google.com>
Wed, 28 Aug 2019 09:53:31 +0000 (02:53 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 1 Oct 2019 22:09:06 +0000 (22:09 +0000)
commit6c9f86e7e3dc1983e556d4f0db135118a91afa34
tree9a063fe93c7f235a655e92db49ba06469acecc04
parent0c6afe0d0ab22221911619cd5eef3589e0e04e08
fastmodel: Add a gem5Cpu attribute to the CortexA76x1.

This attribute is to let the fast model EVS CPU find and talk to the
gem5 CPU in case it needs a pointer to one of its ThreadContexts for
instance.

Also move the code that finds the clock period attribute/event to the
constructor. gem5 guarantees that the EVS is constructed before its
pointer is passed to the iris CPU wrapper, and so the EVS will have
had a chance to install those controls if it's going to.

Change-Id: I389ef0ba0f9d528140f40444baa5091a9ec338cd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21045
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/CortexA76x1/cortex_a76x1.cc
src/arch/arm/fastmodel/CortexA76x1/cortex_a76x1.hh
src/arch/arm/fastmodel/iris/cpu.cc
src/arch/arm/fastmodel/iris/cpu.hh