diff options
Diffstat (limited to 'src/arch/alpha/idle_event.cc')
-rw-r--r-- | src/arch/alpha/idle_event.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/alpha/idle_event.cc b/src/arch/alpha/idle_event.cc index 080dcb22c..df8a0c661 100644 --- a/src/arch/alpha/idle_event.cc +++ b/src/arch/alpha/idle_event.cc @@ -41,7 +41,10 @@ IdleStartEvent::process(ThreadContext *tc) { if (tc->getKernelStats()) { RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23); - tc->getKernelStats()->setIdleProcess(val, tc); + auto *stats = dynamic_cast<AlphaISA::Kernel::Statistics *>( + tc->getKernelStats()); + assert(stats); + stats->setIdleProcess(val, tc); } remove(); } |