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; --- 387 unchanged lines hidden (view full) --- 396 397 // decode the instruction 398 inst = gtoh(inst); 399 //If we're not in the middle of a macro instruction 400 if (!curMacroStaticInst) { 401 StaticInstPtr instPtr = StaticInst::decode(makeExtMI(inst, thread->getTC())); 402 if (instPtr->isMacroOp()) { 403 curMacroStaticInst = instPtr; |
404 curStaticInst = curMacroStaticInst-> 405 fetchMicroOp(thread->readMicroPC()); |
406 } else { 407 curStaticInst = instPtr; 408 } 409 } else { 410 //Read the next micro op from the macro op |
411 curStaticInst = curMacroStaticInst-> 412 fetchMicroOp(thread->readMicroPC()); |
413 } 414 415 416 traceData = Trace::getInstRecord(curTick, tc, curStaticInst, 417 thread->readPC()); 418 419 DPRINTF(Decode,"Decode: Decoded %s instruction (opcode: 0x%x): 0x%x\n", 420 curStaticInst->getName(), curStaticInst->getOpcode(), --- 83 unchanged lines hidden --- |