kernel_stats.cc (5191:bebbfea0baf3) | kernel_stats.cc (5568:d14250d688d2) |
---|---|
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; --- 138 unchanged lines hidden (view full) --- 147 148 lastModeTick = curTick; 149 themode = newmode; 150} 151 152void 153Statistics::mode(cpu_mode newmode, ThreadContext *tc) 154{ | 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; --- 138 unchanged lines hidden (view full) --- 147 148 lastModeTick = curTick; 149 themode = newmode; 150} 151 152void 153Statistics::mode(cpu_mode newmode, ThreadContext *tc) 154{ |
155 Addr pcbb = tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp23); | 155 Addr pcbb = tc->readMiscRegNoEffect(IPR_PALtemp23); |
156 157 if (newmode == kernel && pcbb == idleProcess) 158 newmode = idle; 159 160 changeMode(newmode, tc); 161} 162 163void --- 44 unchanged lines hidden (view full) --- 208 ::Kernel::Statistics::unserialize(cp, section); 209 int exemode; 210 UNSERIALIZE_SCALAR(exemode); 211 UNSERIALIZE_SCALAR(idleProcess); 212 UNSERIALIZE_SCALAR(lastModeTick); 213 themode = (cpu_mode)exemode; 214} 215 | 156 157 if (newmode == kernel && pcbb == idleProcess) 158 newmode = idle; 159 160 changeMode(newmode, tc); 161} 162 163void --- 44 unchanged lines hidden (view full) --- 208 ::Kernel::Statistics::unserialize(cp, section); 209 int exemode; 210 UNSERIALIZE_SCALAR(exemode); 211 UNSERIALIZE_SCALAR(idleProcess); 212 UNSERIALIZE_SCALAR(lastModeTick); 213 themode = (cpu_mode)exemode; 214} 215 |
216} /* end namespace AlphaISA::Kernel */ 217} /* end namespace AlphaISA */ | 216} // namespace Kernel 217} // namespace AlphaISA |