kernel_stats.cc (3565:6ad587fb7dfd) kernel_stats.cc (4172:141705d83494)
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;

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

145
146 lastModeTick = curTick;
147 themode = newmode;
148}
149
150void
151Statistics::mode(cpu_mode newmode, ThreadContext *tc)
152{
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;

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

145
146 lastModeTick = curTick;
147 themode = newmode;
148}
149
150void
151Statistics::mode(cpu_mode newmode, ThreadContext *tc)
152{
153 Addr pcbb = tc->readMiscReg(AlphaISA::IPR_PALtemp23);
153 Addr pcbb = tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp23);
154
155 if (newmode == kernel && pcbb == idleProcess)
156 newmode = idle;
157
158 changeMode(newmode, tc);
159}
160
161void

--- 50 unchanged lines hidden ---
154
155 if (newmode == kernel && pcbb == idleProcess)
156 newmode = idle;
157
158 changeMode(newmode, tc);
159}
160
161void

--- 50 unchanged lines hidden ---