arch,sim: Merge initCPU and startupCPU.
authorGabe Black <gabeblack@google.com>
Wed, 29 Jan 2020 23:41:59 +0000 (15:41 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 1 Feb 2020 12:31:40 +0000 (12:31 +0000)
commit6a7a5b30050d10a7d9cc9cd5614988871253298d
tree49f7d86b99e81b02e472e3c356366bce101415de
parentdc328d00ebe798f0b0ee8903aca4256bb128dc6f
arch,sim: Merge initCPU and startupCPU.

These two functions were called in exactly one place one right after
the other, and served similar purposes.

This change merges them together, and cleans them up slightly. It also
removes checks for FullSystem, since those functions are only called
in full system to begin with.

Change-Id: I214f7d2d3f88960dccb5895c1241f61cd78716a8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24904
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
16 files changed:
src/arch/alpha/ev5.cc
src/arch/alpha/utility.hh
src/arch/arm/utility.cc
src/arch/arm/utility.hh
src/arch/mips/utility.cc
src/arch/mips/utility.hh
src/arch/null/utility.hh
src/arch/power/utility.hh
src/arch/riscv/utility.cc
src/arch/riscv/utility.hh
src/arch/sparc/faults.hh
src/arch/sparc/utility.cc
src/arch/sparc/utility.hh
src/arch/x86/utility.cc
src/arch/x86/utility.hh
src/sim/system.cc