summaryrefslogtreecommitdiff
path: root/src/cpu/kvm/base.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2020-01-09 02:10:15 -0800
committerGabe Black <gabeblack@google.com>2020-01-23 00:51:57 +0000
commit0b8d02dec492215aa286138404d9fc1f0b7a9074 (patch)
tree272153d238c25958e48e09a3511f249dcc1e8605 /src/cpu/kvm/base.cc
parentae7dd927e2978cee89d6828b31ab991aa6de40e2 (diff)
downloadgem5-0b8d02dec492215aa286138404d9fc1f0b7a9074.tar.xz
cpu: Consolidate and move the CPU's calls to TheISA::initCPU.
TheISA::initCPU is basically an ISA specific implementation of reset logic on architectural state. As such, it only needs to be called if we're not going to load a checkpoint, ie in initState. Also, since the implementation was the same across all CPUs, this change collapses all the individual implementations down into the base CPU class. Change-Id: Id68133fd7f31619c90bf7b3aad35ae20871acaa4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24189 Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/kvm/base.cc')
-rw-r--r--src/cpu/kvm/base.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc
index 83cb04f47..cda98b4a5 100644
--- a/src/cpu/kvm/base.cc
+++ b/src/cpu/kvm/base.cc
@@ -114,10 +114,6 @@ BaseKvmCPU::init()
fatal("KVM: Multithreading not supported");
tc->initMemProxies(tc);
-
- // initialize CPU, including PC
- if (FullSystem && !switchedOut())
- TheISA::initCPU(tc, tc->contextId());
}
void