idle_event.cc (11793:ef606668d247) idle_event.cc (13614:52c5311db96b)
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;

--- 26 unchanged lines hidden (view full) ---

35#include "cpu/thread_context.hh"
36
37using namespace AlphaISA;
38
39void
40IdleStartEvent::process(ThreadContext *tc)
41{
42 if (tc->getKernelStats()) {
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;

--- 26 unchanged lines hidden (view full) ---

35#include "cpu/thread_context.hh"
36
37using namespace AlphaISA;
38
39void
40IdleStartEvent::process(ThreadContext *tc)
41{
42 if (tc->getKernelStats()) {
43 MiscReg val = tc->readMiscRegNoEffect(IPR_PALtemp23);
43 RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23);
44 tc->getKernelStats()->setIdleProcess(val, tc);
45 }
46 remove();
47}
44 tc->getKernelStats()->setIdleProcess(val, tc);
45 }
46 remove();
47}