idle_event.cc (13614:52c5311db96b) idle_event.cc (13905:5cf30883255c)
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;

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

36
37using namespace AlphaISA;
38
39void
40IdleStartEvent::process(ThreadContext *tc)
41{
42 if (tc->getKernelStats()) {
43 RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23);
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;

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

36
37using namespace AlphaISA;
38
39void
40IdleStartEvent::process(ThreadContext *tc)
41{
42 if (tc->getKernelStats()) {
43 RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23);
44 tc->getKernelStats()->setIdleProcess(val, tc);
44 auto *stats = dynamic_cast<AlphaISA::Kernel::Statistics *>(
45 tc->getKernelStats());
46 assert(stats);
47 stats->setIdleProcess(val, tc);
45 }
46 remove();
47}
48 }
49 remove();
50}