diff options
Diffstat (limited to 'src/cpu/base.cc')
-rw-r--r-- | src/cpu/base.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc index 9ce458c64..fb6116fd4 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -35,6 +35,7 @@ #include "base/misc.hh" #include "base/output.hh" #include "cpu/base.hh" +#include "cpu/cpuevent.hh" #include "cpu/exec_context.hh" #include "cpu/profile.hh" #include "cpu/sampler/sampler.hh" @@ -259,6 +260,9 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU) ExecContext *oldXC = oldCPU->execContexts[i]; newXC->takeOverFrom(oldXC); + + CpuEvent::replaceExecContext(oldXC, newXC); + assert(newXC->readCpuId() == oldXC->readCpuId()); #if FULL_SYSTEM system->replaceExecContext(newXC, newXC->readCpuId()); |