idle_event.cc (5569:baeee670d4ce) idle_event.cc (11793:ef606668d247)
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;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Lisa Hsu
29 * Nathan Binkert
30 */
31
32#include "arch/alpha/idle_event.hh"
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;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Lisa Hsu
29 * Nathan Binkert
30 */
31
32#include "arch/alpha/idle_event.hh"
33
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 MiscReg val = tc->readMiscRegNoEffect(IPR_PALtemp23);
43 tc->getKernelStats()->setIdleProcess(val, tc);
44 }
45 remove();
46}
34#include "arch/alpha/kernel_stats.hh"
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);
44 tc->getKernelStats()->setIdleProcess(val, tc);
45 }
46 remove();
47}