base.cc (5034:6186ef720dd4) | base.cc (5100:7a0180040755) |
---|---|
1/* 2 * Copyright (c) 2002-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; --- 60 unchanged lines hidden (view full) --- 69 schedule(curTick + interval); 70} 71 72void 73CPUProgressEvent::process() 74{ 75 Counter temp = cpu->totalInstructions(); 76#ifndef NDEBUG | 1/* 2 * Copyright (c) 2002-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; --- 60 unchanged lines hidden (view full) --- 69 schedule(curTick + interval); 70} 71 72void 73CPUProgressEvent::process() 74{ 75 Counter temp = cpu->totalInstructions(); 76#ifndef NDEBUG |
77 double ipc = double(temp - lastNumInst) / (interval / cpu->cycles(1)); | 77 double ipc = double(temp - lastNumInst) / (interval / cpu->ticks(1)); |
78 79 DPRINTFN("%s progress event, instructions committed: %lli, IPC: %0.8d\n", 80 cpu->name(), temp - lastNumInst, ipc); 81 ipc = 0.0; 82#else 83 cprintf("%lli: %s progress event, instructions committed: %lli\n", 84 curTick, cpu->name(), temp - lastNumInst); 85#endif --- 132 unchanged lines hidden (view full) --- 218{ 219#if FULL_SYSTEM 220 if (!params->deferRegistration && profileEvent) 221 profileEvent->schedule(curTick); 222#endif 223 224 if (params->progress_interval) { 225 new CPUProgressEvent(&mainEventQueue, | 78 79 DPRINTFN("%s progress event, instructions committed: %lli, IPC: %0.8d\n", 80 cpu->name(), temp - lastNumInst, ipc); 81 ipc = 0.0; 82#else 83 cprintf("%lli: %s progress event, instructions committed: %lli\n", 84 curTick, cpu->name(), temp - lastNumInst); 85#endif --- 132 unchanged lines hidden (view full) --- 218{ 219#if FULL_SYSTEM 220 if (!params->deferRegistration && profileEvent) 221 profileEvent->schedule(curTick); 222#endif 223 224 if (params->progress_interval) { 225 new CPUProgressEvent(&mainEventQueue, |
226 cycles(params->progress_interval), | 226 ticks(params->progress_interval), |
227 this); 228 } 229} 230 231 232void 233BaseCPU::regStats() 234{ --- 219 unchanged lines hidden --- | 227 this); 228 } 229} 230 231 232void 233BaseCPU::regStats() 234{ --- 219 unchanged lines hidden --- |