cpu: move initCPU calls from initState to init
authorAyaz Akram <yazakram@ucdavis.edu>
Wed, 29 Jan 2020 00:22:03 +0000 (16:22 -0800)
committerAyaz Akram <yazakram@ucdavis.edu>
Wed, 29 Jan 2020 05:39:07 +0000 (05:39 +0000)
commite1219b26f446d12cb3eca59af37fb9a5fa74f299
treea4a647887f27a87648f62fbfef4681c6abc4a240
parenteacc7c7e98cd563cc5bc90735867d5a0e86c2947
cpu: move initCPU calls from initState to init

This commit moves the initCPU calls from initState to init
of base cpu (which were added in commit 0b8d02dec492215aa).
This is a temporary fix to solve the problem of X86System
initState getting called before initState of base cpu.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-292

Change-Id: I7434cd811536175562cfa2646f4326907fadad8c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24884
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/base.cc
src/cpu/base.hh