configs: Fix FastmodelCluster cpu initialization
authorYu-hsin Wang <yuhsingw@google.com>
Wed, 21 Oct 2020 10:23:00 +0000 (18:23 +0800)
committerYu-hsin Wang <yuhsingw@google.com>
Thu, 22 Oct 2020 00:49:06 +0000 (00:49 +0000)
We should create the thread and the interrupt controller of fastmodel by
calling the create function explicitly.

Change-Id: I269440e144e83fa0a31d8cdf285fed31642f4f73
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36380
Reviewed-by: Earl Ou <shunhsingou@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/example/arm/devices.py

index 8c50f7e0f8725155bfb02f1036672ebfacdbb43c..971782d76e0326b3a59e4098d4118f66fd716add 100644 (file)
@@ -258,6 +258,8 @@ class FastmodelCluster(SubSystem):
             core.semihosting_enable = False
             core.RVBARADDR = 0x10
             core.redistributor = gic.redistributor
+            core.createThreads()
+            core.createInterruptController()
         self.cpus = [ cpu ]
 
         a2t = AmbaToTlmBridge64(amba=cpu.amba)