base.cc (4518:8380fb0a275a) base.cc (4522:3043823ff963)
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;

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

408 curStaticInst = instPtr;
409 }
410 } else {
411 //Read the next micro op from the macro op
412 curStaticInst = curMacroStaticInst->
413 fetchMicroOp(thread->readMicroPC());
414 }
415
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;

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

408 curStaticInst = instPtr;
409 }
410 } else {
411 //Read the next micro op from the macro op
412 curStaticInst = curMacroStaticInst->
413 fetchMicroOp(thread->readMicroPC());
414 }
415
416#if TRACING_ON
417 //If we decoded an instruction this "tick", record information about it.
418 if(curStaticInst)
419 {
416 //If we decoded an instruction this "tick", record information about it.
417 if(curStaticInst)
418 {
419#if TRACING_ON
420 traceData = Trace::getInstRecord(curTick, tc, curStaticInst,
421 thread->readPC());
422
423 DPRINTF(Decode,"Decode: Decoded %s instruction: 0x%x\n",
424 curStaticInst->getName(), curStaticInst->machInst);
420 traceData = Trace::getInstRecord(curTick, tc, curStaticInst,
421 thread->readPC());
422
423 DPRINTF(Decode,"Decode: Decoded %s instruction: 0x%x\n",
424 curStaticInst->getName(), curStaticInst->machInst);
425#endif // TRACING_ON
425
426#if FULL_SYSTEM
427 thread->setInst(inst);
428#endif // FULL_SYSTEM
429 }
426
427#if FULL_SYSTEM
428 thread->setInst(inst);
429#endif // FULL_SYSTEM
430 }
430#endif // TRACING_ON
431}
432
433void
434BaseSimpleCPU::postExecute()
435{
436#if FULL_SYSTEM
437 if (thread->profile) {
438 bool usermode = TheISA::inUserMode(tc);

--- 73 unchanged lines hidden ---
431}
432
433void
434BaseSimpleCPU::postExecute()
435{
436#if FULL_SYSTEM
437 if (thread->profile) {
438 bool usermode = TheISA::inUserMode(tc);

--- 73 unchanged lines hidden ---