base.cc (3120:e49afeaf79e9) | base.cc (3125:febd811bccc6) |
---|---|
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; --- 156 unchanged lines hidden (view full) --- 165 ; 166 167 idleFraction = constant(1.0) - notIdleFraction; 168} 169 170void 171BaseSimpleCPU::resetStats() 172{ | 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; --- 156 unchanged lines hidden (view full) --- 165 ; 166 167 idleFraction = constant(1.0) - notIdleFraction; 168} 169 170void 171BaseSimpleCPU::resetStats() 172{ |
173 startNumInst = numInst; | 173// startNumInst = numInst; |
174 // notIdleFraction = (_status != Idle); 175} 176 177void 178BaseSimpleCPU::serialize(ostream &os) 179{ 180 BaseCPU::serialize(os); 181// SERIALIZE_SCALAR(inst); --- 209 unchanged lines hidden (view full) --- 391 392 thread->funcExeInst++; 393 394 // check for instruction-count-based events 395 comInstEventQueue[0]->serviceEvents(numInst); 396 397 // decode the instruction 398 inst = gtoh(inst); | 174 // notIdleFraction = (_status != Idle); 175} 176 177void 178BaseSimpleCPU::serialize(ostream &os) 179{ 180 BaseCPU::serialize(os); 181// SERIALIZE_SCALAR(inst); --- 209 unchanged lines hidden (view full) --- 391 392 thread->funcExeInst++; 393 394 // check for instruction-count-based events 395 comInstEventQueue[0]->serviceEvents(numInst); 396 397 // decode the instruction 398 inst = gtoh(inst); |
399 curStaticInst = StaticInst::decode(makeExtMI(inst, thread->getTC())); | 399 curStaticInst = StaticInst::decode(makeExtMI(inst, thread->readPC())); |
400 401 traceData = Trace::getInstRecord(curTick, tc, curStaticInst, 402 thread->readPC()); 403 404 DPRINTF(Decode,"Decode: Decoded %s instruction (opcode: 0x%x): 0x%x\n", 405 curStaticInst->getName(), curStaticInst->getOpcode(), 406 curStaticInst->machInst); 407 --- 64 unchanged lines hidden --- | 400 401 traceData = Trace::getInstRecord(curTick, tc, curStaticInst, 402 thread->readPC()); 403 404 DPRINTF(Decode,"Decode: Decoded %s instruction (opcode: 0x%x): 0x%x\n", 405 curStaticInst->getName(), curStaticInst->getOpcode(), 406 curStaticInst->machInst); 407 --- 64 unchanged lines hidden --- |