idle_event.cc (5568:d14250d688d2) | idle_event.cc (5569:baeee670d4ce) |
---|---|
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; --- 24 unchanged lines hidden (view full) --- 33#include "arch/alpha/kernel_stats.hh" 34#include "cpu/thread_context.hh" 35 36using namespace AlphaISA; 37 38void 39IdleStartEvent::process(ThreadContext *tc) 40{ | 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; --- 24 unchanged lines hidden (view full) --- 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(IPR_PALtemp23), tc); | 41 if (tc->getKernelStats()) { 42 MiscReg val = tc->readMiscRegNoEffect(IPR_PALtemp23); 43 tc->getKernelStats()->setIdleProcess(val, tc); 44 } |
44 remove(); 45} | 45 remove(); 46} |