dyn_inst.hh revision 11877
12847Sksewell@umich.edu/* 27783SGiacomo.Gabrielli@arm.com * Copyright (c) 2010 ARM Limited 39913Ssteve.reinhardt@amd.com * Copyright (c) 2013 Advanced Micro Devices, Inc. 47783SGiacomo.Gabrielli@arm.com * All rights reserved 57783SGiacomo.Gabrielli@arm.com * 67783SGiacomo.Gabrielli@arm.com * The license below extends only to copyright in the software and shall 77783SGiacomo.Gabrielli@arm.com * not be construed as granting a license to any other intellectual 87783SGiacomo.Gabrielli@arm.com * property including but not limited to intellectual property relating 97783SGiacomo.Gabrielli@arm.com * to a hardware implementation of the functionality of the software 107783SGiacomo.Gabrielli@arm.com * licensed hereunder. You may use the software subject to the license 117783SGiacomo.Gabrielli@arm.com * terms below provided that you ensure that this notice is replicated 127783SGiacomo.Gabrielli@arm.com * unmodified and in its entirety in all distributions of the software, 137783SGiacomo.Gabrielli@arm.com * modified or unmodified, in source code or in binary form. 147783SGiacomo.Gabrielli@arm.com * 155596Sgblack@eecs.umich.edu * Copyright (c) 2004-2006 The Regents of The University of Michigan 162847Sksewell@umich.edu * All rights reserved. 172847Sksewell@umich.edu * 182847Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without 192847Sksewell@umich.edu * modification, are permitted provided that the following conditions are 202847Sksewell@umich.edu * met: redistributions of source code must retain the above copyright 212847Sksewell@umich.edu * notice, this list of conditions and the following disclaimer; 222847Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright 232847Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the 242847Sksewell@umich.edu * documentation and/or other materials provided with the distribution; 252847Sksewell@umich.edu * neither the name of the copyright holders nor the names of its 262847Sksewell@umich.edu * contributors may be used to endorse or promote products derived from 272847Sksewell@umich.edu * this software without specific prior written permission. 282847Sksewell@umich.edu * 292847Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302847Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 312847Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322847Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332847Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342847Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352847Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362847Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372847Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382847Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392847Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402847Sksewell@umich.edu * 415596Sgblack@eecs.umich.edu * Authors: Kevin Lim 422847Sksewell@umich.edu */ 432847Sksewell@umich.edu 442847Sksewell@umich.edu#ifndef __CPU_O3_DYN_INST_HH__ 452847Sksewell@umich.edu#define __CPU_O3_DYN_INST_HH__ 462847Sksewell@umich.edu 4710835Sandreas.hansson@arm.com#include <array> 4810835Sandreas.hansson@arm.com 495596Sgblack@eecs.umich.edu#include "arch/isa_traits.hh" 506658Snate@binkert.org#include "config/the_isa.hh" 518229Snate@binkert.org#include "cpu/o3/cpu.hh" 528229Snate@binkert.org#include "cpu/o3/isa_specific.hh" 535596Sgblack@eecs.umich.edu#include "cpu/base_dyn_inst.hh" 545596Sgblack@eecs.umich.edu#include "cpu/inst_seq.hh" 559913Ssteve.reinhardt@amd.com#include "cpu/reg_class.hh" 562847Sksewell@umich.edu 575596Sgblack@eecs.umich.educlass Packet; 585596Sgblack@eecs.umich.edu 595596Sgblack@eecs.umich.edutemplate <class Impl> 605596Sgblack@eecs.umich.educlass BaseO3DynInst : public BaseDynInst<Impl> 615596Sgblack@eecs.umich.edu{ 625596Sgblack@eecs.umich.edu public: 635596Sgblack@eecs.umich.edu /** Typedef for the CPU. */ 645596Sgblack@eecs.umich.edu typedef typename Impl::O3CPU O3CPU; 655596Sgblack@eecs.umich.edu 665596Sgblack@eecs.umich.edu /** Binary machine instruction type. */ 675596Sgblack@eecs.umich.edu typedef TheISA::MachInst MachInst; 685596Sgblack@eecs.umich.edu /** Extended machine instruction type. */ 695596Sgblack@eecs.umich.edu typedef TheISA::ExtMachInst ExtMachInst; 705596Sgblack@eecs.umich.edu /** Logical register index type. */ 715596Sgblack@eecs.umich.edu typedef TheISA::RegIndex RegIndex; 725596Sgblack@eecs.umich.edu /** Integer register index type. */ 735596Sgblack@eecs.umich.edu typedef TheISA::IntReg IntReg; 745596Sgblack@eecs.umich.edu typedef TheISA::FloatReg FloatReg; 755596Sgblack@eecs.umich.edu typedef TheISA::FloatRegBits FloatRegBits; 769920Syasuko.eckert@amd.com typedef TheISA::CCReg CCReg; 7710319SAndreas.Sandberg@ARM.com 785596Sgblack@eecs.umich.edu /** Misc register index type. */ 795596Sgblack@eecs.umich.edu typedef TheISA::MiscReg MiscReg; 805596Sgblack@eecs.umich.edu 815596Sgblack@eecs.umich.edu enum { 825596Sgblack@eecs.umich.edu MaxInstSrcRegs = TheISA::MaxInstSrcRegs, //< Max source regs 838902Sandreas.hansson@arm.com MaxInstDestRegs = TheISA::MaxInstDestRegs //< Max dest regs 845596Sgblack@eecs.umich.edu }; 855596Sgblack@eecs.umich.edu 865596Sgblack@eecs.umich.edu public: 875596Sgblack@eecs.umich.edu /** BaseDynInst constructor given a binary instruction. */ 8810417Sandreas.hansson@arm.com BaseO3DynInst(const StaticInstPtr &staticInst, const StaticInstPtr ¯oop, 897720Sgblack@eecs.umich.edu TheISA::PCState pc, TheISA::PCState predPC, 907720Sgblack@eecs.umich.edu InstSeqNum seq_num, O3CPU *cpu); 915596Sgblack@eecs.umich.edu 925596Sgblack@eecs.umich.edu /** BaseDynInst constructor given a static inst pointer. */ 9310417Sandreas.hansson@arm.com BaseO3DynInst(const StaticInstPtr &_staticInst, 9410417Sandreas.hansson@arm.com const StaticInstPtr &_macroop); 955596Sgblack@eecs.umich.edu 969252Sdjordje.kovacevic@arm.com ~BaseO3DynInst(); 979252Sdjordje.kovacevic@arm.com 985596Sgblack@eecs.umich.edu /** Executes the instruction.*/ 995596Sgblack@eecs.umich.edu Fault execute(); 1005596Sgblack@eecs.umich.edu 1015596Sgblack@eecs.umich.edu /** Initiates the access. Only valid for memory operations. */ 1025596Sgblack@eecs.umich.edu Fault initiateAcc(); 1035596Sgblack@eecs.umich.edu 1045596Sgblack@eecs.umich.edu /** Completes the access. Only valid for memory operations. */ 1055596Sgblack@eecs.umich.edu Fault completeAcc(PacketPtr pkt); 1065596Sgblack@eecs.umich.edu 1075596Sgblack@eecs.umich.edu private: 1085596Sgblack@eecs.umich.edu /** Initializes variables. */ 1095596Sgblack@eecs.umich.edu void initVars(); 1105596Sgblack@eecs.umich.edu 1117783SGiacomo.Gabrielli@arm.com protected: 1129046SAli.Saidi@ARM.com /** Values to be written to the destination misc. registers. */ 11310835Sandreas.hansson@arm.com std::array<MiscReg, TheISA::MaxMiscDestRegs> _destMiscRegVal; 1149046SAli.Saidi@ARM.com 1157783SGiacomo.Gabrielli@arm.com /** Indexes of the destination misc. registers. They are needed to defer 1167783SGiacomo.Gabrielli@arm.com * the write accesses to the misc. registers until the commit stage, when 1177783SGiacomo.Gabrielli@arm.com * the instruction is out of its speculative state. 1187783SGiacomo.Gabrielli@arm.com */ 11910835Sandreas.hansson@arm.com std::array<short, TheISA::MaxMiscDestRegs> _destMiscRegIdx; 1209046SAli.Saidi@ARM.com 1217783SGiacomo.Gabrielli@arm.com /** Number of destination misc. registers. */ 1229046SAli.Saidi@ARM.com uint8_t _numDestMiscRegs; 1239046SAli.Saidi@ARM.com 1247783SGiacomo.Gabrielli@arm.com 1255596Sgblack@eecs.umich.edu public: 1268471SGiacomo.Gabrielli@arm.com#if TRACING_ON 1278471SGiacomo.Gabrielli@arm.com /** Tick records used for the pipeline activity viewer. */ 1289252Sdjordje.kovacevic@arm.com Tick fetchTick; // instruction fetch is completed. 1299252Sdjordje.kovacevic@arm.com int32_t decodeTick; // instruction enters decode phase 1309252Sdjordje.kovacevic@arm.com int32_t renameTick; // instruction enters rename phase 1319252Sdjordje.kovacevic@arm.com int32_t dispatchTick; 1329252Sdjordje.kovacevic@arm.com int32_t issueTick; 1339252Sdjordje.kovacevic@arm.com int32_t completeTick; 1349252Sdjordje.kovacevic@arm.com int32_t commitTick; 1359527SMatt.Horsnell@arm.com int32_t storeTick; 1368471SGiacomo.Gabrielli@arm.com#endif 1378471SGiacomo.Gabrielli@arm.com 1385596Sgblack@eecs.umich.edu /** Reads a misc. register, including any side-effects the read 1395596Sgblack@eecs.umich.edu * might have as defined by the architecture. 1405596Sgblack@eecs.umich.edu */ 1415596Sgblack@eecs.umich.edu MiscReg readMiscReg(int misc_reg) 1425596Sgblack@eecs.umich.edu { 1435596Sgblack@eecs.umich.edu return this->cpu->readMiscReg(misc_reg, this->threadNumber); 1445596Sgblack@eecs.umich.edu } 1455596Sgblack@eecs.umich.edu 1465596Sgblack@eecs.umich.edu /** Sets a misc. register, including any side-effects the write 1475596Sgblack@eecs.umich.edu * might have as defined by the architecture. 1485596Sgblack@eecs.umich.edu */ 1495596Sgblack@eecs.umich.edu void setMiscReg(int misc_reg, const MiscReg &val) 1505596Sgblack@eecs.umich.edu { 1517783SGiacomo.Gabrielli@arm.com /** Writes to misc. registers are recorded and deferred until the 1529532Sgeoffrey.blake@arm.com * commit stage, when updateMiscRegs() is called. First, check if 1539532Sgeoffrey.blake@arm.com * the misc reg has been written before and update its value to be 1549532Sgeoffrey.blake@arm.com * committed instead of making a new entry. If not, make a new 1559532Sgeoffrey.blake@arm.com * entry and record the write. 1567783SGiacomo.Gabrielli@arm.com */ 1579532Sgeoffrey.blake@arm.com for (int idx = 0; idx < _numDestMiscRegs; idx++) { 1589532Sgeoffrey.blake@arm.com if (_destMiscRegIdx[idx] == misc_reg) { 1599532Sgeoffrey.blake@arm.com _destMiscRegVal[idx] = val; 1609532Sgeoffrey.blake@arm.com return; 1619532Sgeoffrey.blake@arm.com } 1629532Sgeoffrey.blake@arm.com } 1639532Sgeoffrey.blake@arm.com 1649046SAli.Saidi@ARM.com assert(_numDestMiscRegs < TheISA::MaxMiscDestRegs); 1657783SGiacomo.Gabrielli@arm.com _destMiscRegIdx[_numDestMiscRegs] = misc_reg; 1667783SGiacomo.Gabrielli@arm.com _destMiscRegVal[_numDestMiscRegs] = val; 1677783SGiacomo.Gabrielli@arm.com _numDestMiscRegs++; 1685596Sgblack@eecs.umich.edu } 1695596Sgblack@eecs.umich.edu 1705596Sgblack@eecs.umich.edu /** Reads a misc. register, including any side-effects the read 1715596Sgblack@eecs.umich.edu * might have as defined by the architecture. 1725596Sgblack@eecs.umich.edu */ 1735596Sgblack@eecs.umich.edu TheISA::MiscReg readMiscRegOperand(const StaticInst *si, int idx) 1745596Sgblack@eecs.umich.edu { 1755596Sgblack@eecs.umich.edu return this->cpu->readMiscReg( 1769918Ssteve.reinhardt@amd.com si->srcRegIdx(idx) - TheISA::Misc_Reg_Base, 1775596Sgblack@eecs.umich.edu this->threadNumber); 1785596Sgblack@eecs.umich.edu } 1795596Sgblack@eecs.umich.edu 1805596Sgblack@eecs.umich.edu /** Sets a misc. register, including any side-effects the write 1815596Sgblack@eecs.umich.edu * might have as defined by the architecture. 1825596Sgblack@eecs.umich.edu */ 1835596Sgblack@eecs.umich.edu void setMiscRegOperand(const StaticInst *si, int idx, 1845596Sgblack@eecs.umich.edu const MiscReg &val) 1855596Sgblack@eecs.umich.edu { 1869918Ssteve.reinhardt@amd.com int misc_reg = si->destRegIdx(idx) - TheISA::Misc_Reg_Base; 1877783SGiacomo.Gabrielli@arm.com setMiscReg(misc_reg, val); 1887783SGiacomo.Gabrielli@arm.com } 1897783SGiacomo.Gabrielli@arm.com 1907783SGiacomo.Gabrielli@arm.com /** Called at the commit stage to update the misc. registers. */ 1917783SGiacomo.Gabrielli@arm.com void updateMiscRegs() 1927783SGiacomo.Gabrielli@arm.com { 1937783SGiacomo.Gabrielli@arm.com // @todo: Pretty convoluted way to avoid squashing from happening when 1947783SGiacomo.Gabrielli@arm.com // using the TC during an instruction's execution (specifically for 1957783SGiacomo.Gabrielli@arm.com // instructions that have side-effects that use the TC). Fix this. 1967783SGiacomo.Gabrielli@arm.com // See cpu/o3/dyn_inst_impl.hh. 1979382SAli.Saidi@ARM.com bool no_squash_from_TC = this->thread->noSquashFromTC; 1989382SAli.Saidi@ARM.com this->thread->noSquashFromTC = true; 1997783SGiacomo.Gabrielli@arm.com 2007783SGiacomo.Gabrielli@arm.com for (int i = 0; i < _numDestMiscRegs; i++) 2017783SGiacomo.Gabrielli@arm.com this->cpu->setMiscReg( 2027783SGiacomo.Gabrielli@arm.com _destMiscRegIdx[i], _destMiscRegVal[i], this->threadNumber); 2037783SGiacomo.Gabrielli@arm.com 2049382SAli.Saidi@ARM.com this->thread->noSquashFromTC = no_squash_from_TC; 2055596Sgblack@eecs.umich.edu } 2065596Sgblack@eecs.umich.edu 2077848SAli.Saidi@ARM.com void forwardOldRegs() 2087848SAli.Saidi@ARM.com { 20910935Snilay@cs.wisc.edu 2107848SAli.Saidi@ARM.com for (int idx = 0; idx < this->numDestRegs(); idx++) { 2117848SAli.Saidi@ARM.com PhysRegIndex prev_phys_reg = this->prevDestRegIdx(idx); 2129913Ssteve.reinhardt@amd.com TheISA::RegIndex original_dest_reg = 2139913Ssteve.reinhardt@amd.com this->staticInst->destRegIdx(idx); 2149913Ssteve.reinhardt@amd.com switch (regIdxToClass(original_dest_reg)) { 2159913Ssteve.reinhardt@amd.com case IntRegClass: 2169913Ssteve.reinhardt@amd.com this->setIntRegOperand(this->staticInst.get(), idx, 2179913Ssteve.reinhardt@amd.com this->cpu->readIntReg(prev_phys_reg)); 2189913Ssteve.reinhardt@amd.com break; 2199913Ssteve.reinhardt@amd.com case FloatRegClass: 2209913Ssteve.reinhardt@amd.com this->setFloatRegOperandBits(this->staticInst.get(), idx, 2219913Ssteve.reinhardt@amd.com this->cpu->readFloatRegBits(prev_phys_reg)); 2229913Ssteve.reinhardt@amd.com break; 2239920Syasuko.eckert@amd.com case CCRegClass: 2249920Syasuko.eckert@amd.com this->setCCRegOperand(this->staticInst.get(), idx, 2259920Syasuko.eckert@amd.com this->cpu->readCCReg(prev_phys_reg)); 2269920Syasuko.eckert@amd.com break; 2279913Ssteve.reinhardt@amd.com case MiscRegClass: 2289913Ssteve.reinhardt@amd.com // no need to forward misc reg values 2299913Ssteve.reinhardt@amd.com break; 2309913Ssteve.reinhardt@amd.com } 2317848SAli.Saidi@ARM.com } 2327848SAli.Saidi@ARM.com } 2335702Ssaidi@eecs.umich.edu /** Calls hardware return from error interrupt. */ 2345702Ssaidi@eecs.umich.edu Fault hwrei(); 2355596Sgblack@eecs.umich.edu /** Traps to handle specified fault. */ 23610379Sandreas.hansson@arm.com void trap(const Fault &fault); 2375702Ssaidi@eecs.umich.edu bool simPalCheck(int palFunc); 2388557Sgblack@eecs.umich.edu 2398557Sgblack@eecs.umich.edu /** Emulates a syscall. */ 24011877Sbrandon.potter@amd.com void syscall(int64_t callnum, Fault *fault); 2412847Sksewell@umich.edu 2425596Sgblack@eecs.umich.edu public: 2435596Sgblack@eecs.umich.edu 2445596Sgblack@eecs.umich.edu // The register accessor methods provide the index of the 2455596Sgblack@eecs.umich.edu // instruction's operand (e.g., 0 or 1), not the architectural 2465596Sgblack@eecs.umich.edu // register index, to simplify the implementation of register 2475596Sgblack@eecs.umich.edu // renaming. We find the architectural register index by indexing 2485596Sgblack@eecs.umich.edu // into the instruction's own operand index table. Note that a 2495596Sgblack@eecs.umich.edu // raw pointer to the StaticInst is provided instead of a 2505596Sgblack@eecs.umich.edu // ref-counted StaticInstPtr to redice overhead. This is fine as 2515596Sgblack@eecs.umich.edu // long as these methods don't copy the pointer into any long-term 2525596Sgblack@eecs.umich.edu // storage (which is pretty hard to imagine they would have reason 2535596Sgblack@eecs.umich.edu // to do). 2545596Sgblack@eecs.umich.edu 25510319SAndreas.Sandberg@ARM.com IntReg readIntRegOperand(const StaticInst *si, int idx) 2565596Sgblack@eecs.umich.edu { 2575596Sgblack@eecs.umich.edu return this->cpu->readIntReg(this->_srcRegIdx[idx]); 2585596Sgblack@eecs.umich.edu } 2595596Sgblack@eecs.umich.edu 2605596Sgblack@eecs.umich.edu FloatReg readFloatRegOperand(const StaticInst *si, int idx) 2615596Sgblack@eecs.umich.edu { 2625596Sgblack@eecs.umich.edu return this->cpu->readFloatReg(this->_srcRegIdx[idx]); 2635596Sgblack@eecs.umich.edu } 2645596Sgblack@eecs.umich.edu 2655596Sgblack@eecs.umich.edu FloatRegBits readFloatRegOperandBits(const StaticInst *si, int idx) 2665596Sgblack@eecs.umich.edu { 2675596Sgblack@eecs.umich.edu return this->cpu->readFloatRegBits(this->_srcRegIdx[idx]); 2685596Sgblack@eecs.umich.edu } 2695596Sgblack@eecs.umich.edu 27010319SAndreas.Sandberg@ARM.com CCReg readCCRegOperand(const StaticInst *si, int idx) 2719920Syasuko.eckert@amd.com { 2729920Syasuko.eckert@amd.com return this->cpu->readCCReg(this->_srcRegIdx[idx]); 2739920Syasuko.eckert@amd.com } 2749920Syasuko.eckert@amd.com 2755596Sgblack@eecs.umich.edu /** @todo: Make results into arrays so they can handle multiple dest 2765596Sgblack@eecs.umich.edu * registers. 2775596Sgblack@eecs.umich.edu */ 27810319SAndreas.Sandberg@ARM.com void setIntRegOperand(const StaticInst *si, int idx, IntReg val) 2795596Sgblack@eecs.umich.edu { 2805596Sgblack@eecs.umich.edu this->cpu->setIntReg(this->_destRegIdx[idx], val); 2815596Sgblack@eecs.umich.edu BaseDynInst<Impl>::setIntRegOperand(si, idx, val); 2825596Sgblack@eecs.umich.edu } 2835596Sgblack@eecs.umich.edu 2845596Sgblack@eecs.umich.edu void setFloatRegOperand(const StaticInst *si, int idx, FloatReg val) 2855596Sgblack@eecs.umich.edu { 2865596Sgblack@eecs.umich.edu this->cpu->setFloatReg(this->_destRegIdx[idx], val); 2875596Sgblack@eecs.umich.edu BaseDynInst<Impl>::setFloatRegOperand(si, idx, val); 2885596Sgblack@eecs.umich.edu } 2895596Sgblack@eecs.umich.edu 2905596Sgblack@eecs.umich.edu void setFloatRegOperandBits(const StaticInst *si, int idx, 2915596Sgblack@eecs.umich.edu FloatRegBits val) 2925596Sgblack@eecs.umich.edu { 2935596Sgblack@eecs.umich.edu this->cpu->setFloatRegBits(this->_destRegIdx[idx], val); 2945596Sgblack@eecs.umich.edu BaseDynInst<Impl>::setFloatRegOperandBits(si, idx, val); 2955596Sgblack@eecs.umich.edu } 2965596Sgblack@eecs.umich.edu 29710319SAndreas.Sandberg@ARM.com void setCCRegOperand(const StaticInst *si, int idx, CCReg val) 2989920Syasuko.eckert@amd.com { 2999920Syasuko.eckert@amd.com this->cpu->setCCReg(this->_destRegIdx[idx], val); 3009920Syasuko.eckert@amd.com BaseDynInst<Impl>::setCCRegOperand(si, idx, val); 3019920Syasuko.eckert@amd.com } 3029920Syasuko.eckert@amd.com 3035596Sgblack@eecs.umich.edu#if THE_ISA == MIPS_ISA 30410319SAndreas.Sandberg@ARM.com MiscReg readRegOtherThread(int misc_reg, ThreadID tid) 3055596Sgblack@eecs.umich.edu { 3065596Sgblack@eecs.umich.edu panic("MIPS MT not defined for O3 CPU.\n"); 3075596Sgblack@eecs.umich.edu return 0; 3085596Sgblack@eecs.umich.edu } 3095596Sgblack@eecs.umich.edu 31010319SAndreas.Sandberg@ARM.com void setRegOtherThread(int misc_reg, MiscReg val, ThreadID tid) 3115596Sgblack@eecs.umich.edu { 3125596Sgblack@eecs.umich.edu panic("MIPS MT not defined for O3 CPU.\n"); 3135596Sgblack@eecs.umich.edu } 3145596Sgblack@eecs.umich.edu#endif 3155596Sgblack@eecs.umich.edu 3165596Sgblack@eecs.umich.edu public: 3175596Sgblack@eecs.umich.edu /** Calculates EA part of a memory instruction. Currently unused, 3185596Sgblack@eecs.umich.edu * though it may be useful in the future if we want to split 3195596Sgblack@eecs.umich.edu * memory operations into EA calculation and memory access parts. 3205596Sgblack@eecs.umich.edu */ 3215596Sgblack@eecs.umich.edu Fault calcEA() 3225596Sgblack@eecs.umich.edu { 3235596Sgblack@eecs.umich.edu return this->staticInst->eaCompInst()->execute(this, this->traceData); 3245596Sgblack@eecs.umich.edu } 3255596Sgblack@eecs.umich.edu 3265596Sgblack@eecs.umich.edu /** Does the memory access part of a memory instruction. Currently unused, 3275596Sgblack@eecs.umich.edu * though it may be useful in the future if we want to split 3285596Sgblack@eecs.umich.edu * memory operations into EA calculation and memory access parts. 3295596Sgblack@eecs.umich.edu */ 3305596Sgblack@eecs.umich.edu Fault memAccess() 3315596Sgblack@eecs.umich.edu { 3325596Sgblack@eecs.umich.edu return this->staticInst->memAccInst()->execute(this, this->traceData); 3335596Sgblack@eecs.umich.edu } 3345596Sgblack@eecs.umich.edu}; 3355596Sgblack@eecs.umich.edu 3365596Sgblack@eecs.umich.edu#endif // __CPU_O3_ALPHA_DYN_INST_HH__ 3375596Sgblack@eecs.umich.edu 338