1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28 * Authors: Lisa Hsu 29 * Nathan Binkert 30 */ 31 32#include "arch/alpha/idle_event.hh" 33#include "arch/alpha/kernel_stats.hh" 34#include "cpu/thread_context.hh" 35 |
36using namespace AlphaISA; |
37 38void 39IdleStartEvent::process(ThreadContext *tc) 40{ 41 if (tc->getKernelStats()) 42 tc->getKernelStats()->setIdleProcess( 43 tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp23), tc); 44 remove(); 45} |