inst_queue.hh revision 2733
11689SN/A/* 22326SN/A * Copyright (c) 2004-2006 The Regents of The University of Michigan 31689SN/A * All rights reserved. 41689SN/A * 51689SN/A * Redistribution and use in source and binary forms, with or without 61689SN/A * modification, are permitted provided that the following conditions are 71689SN/A * met: redistributions of source code must retain the above copyright 81689SN/A * notice, this list of conditions and the following disclaimer; 91689SN/A * redistributions in binary form must reproduce the above copyright 101689SN/A * notice, this list of conditions and the following disclaimer in the 111689SN/A * documentation and/or other materials provided with the distribution; 121689SN/A * neither the name of the copyright holders nor the names of its 131689SN/A * contributors may be used to endorse or promote products derived from 141689SN/A * this software without specific prior written permission. 151689SN/A * 161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Kevin Lim 291689SN/A */ 301689SN/A 312292SN/A#ifndef __CPU_O3_INST_QUEUE_HH__ 322292SN/A#define __CPU_O3_INST_QUEUE_HH__ 331060SN/A 341060SN/A#include <list> 351061SN/A#include <map> 361060SN/A#include <queue> 371061SN/A#include <vector> 381060SN/A 391062SN/A#include "base/statistics.hh" 401060SN/A#include "base/timebuf.hh" 411061SN/A#include "cpu/inst_seq.hh" 422326SN/A#include "cpu/o3/dep_graph.hh" 432669Sktlim@umich.edu#include "cpu/op_class.hh" 441710SN/A#include "sim/host.hh" 451060SN/A 462292SN/Aclass FUPool; 472292SN/Aclass MemInterface; 482292SN/A 491060SN/A/** 501689SN/A * A standard instruction queue class. It holds ready instructions, in 511689SN/A * order, in seperate priority queues to facilitate the scheduling of 521689SN/A * instructions. The IQ uses a separate linked list to track dependencies. 531689SN/A * Similar to the rename map and the free list, it expects that 541060SN/A * floating point registers have their indices start after the integer 551060SN/A * registers (ie with 96 int and 96 fp registers, regs 0-95 are integer 561060SN/A * and 96-191 are fp). This remains true even for both logical and 572292SN/A * physical register indices. The IQ depends on the memory dependence unit to 582292SN/A * track when memory operations are ready in terms of ordering; register 592292SN/A * dependencies are tracked normally. Right now the IQ also handles the 602292SN/A * execution timing; this is mainly to allow back-to-back scheduling without 612292SN/A * requiring IEW to be able to peek into the IQ. At the end of the execution 622292SN/A * latency, the instruction is put into the queue to execute, where it will 632292SN/A * have the execute() function called on it. 642292SN/A * @todo: Make IQ able to handle multiple FU pools. 651060SN/A */ 661061SN/Atemplate <class Impl> 671060SN/Aclass InstructionQueue 681060SN/A{ 691060SN/A public: 701060SN/A //Typedefs from the Impl. 712733Sktlim@umich.edu typedef typename Impl::O3CPU O3CPU; 721061SN/A typedef typename Impl::DynInstPtr DynInstPtr; 731060SN/A typedef typename Impl::Params Params; 741060SN/A 752292SN/A typedef typename Impl::CPUPol::IEW IEW; 761061SN/A typedef typename Impl::CPUPol::MemDepUnit MemDepUnit; 771061SN/A typedef typename Impl::CPUPol::IssueStruct IssueStruct; 781061SN/A typedef typename Impl::CPUPol::TimeStruct TimeStruct; 791060SN/A 802292SN/A // Typedef of iterator through the list of instructions. 811061SN/A typedef typename std::list<DynInstPtr>::iterator ListIt; 821060SN/A 832733Sktlim@umich.edu friend class Impl::O3CPU; 842292SN/A 852292SN/A /** FU completion event class. */ 862292SN/A class FUCompletion : public Event { 872292SN/A private: 882292SN/A /** Executing instruction. */ 892292SN/A DynInstPtr inst; 902292SN/A 912292SN/A /** Index of the FU used for executing. */ 922292SN/A int fuIdx; 932292SN/A 942292SN/A /** Pointer back to the instruction queue. */ 952292SN/A InstructionQueue<Impl> *iqPtr; 962292SN/A 972348SN/A /** Should the FU be added to the list to be freed upon 982348SN/A * completing this event. 992348SN/A */ 1002326SN/A bool freeFU; 1012326SN/A 1022292SN/A public: 1032292SN/A /** Construct a FU completion event. */ 1042292SN/A FUCompletion(DynInstPtr &_inst, int fu_idx, 1052292SN/A InstructionQueue<Impl> *iq_ptr); 1062292SN/A 1072292SN/A virtual void process(); 1082292SN/A virtual const char *description(); 1092326SN/A void setFreeFU() { freeFU = true; } 1101060SN/A }; 1111060SN/A 1122292SN/A /** Constructs an IQ. */ 1132292SN/A InstructionQueue(Params *params); 1141061SN/A 1152292SN/A /** Destructs the IQ. */ 1162292SN/A ~InstructionQueue(); 1171061SN/A 1182292SN/A /** Returns the name of the IQ. */ 1192292SN/A std::string name() const; 1201060SN/A 1212292SN/A /** Registers statistics. */ 1221062SN/A void regStats(); 1231062SN/A 1242348SN/A /** Resets all instruction queue state. */ 1252307SN/A void resetState(); 1261060SN/A 1272292SN/A /** Sets CPU pointer. */ 1282733Sktlim@umich.edu void setCPU(O3CPU *_cpu) { cpu = _cpu; } 1291755SN/A 1302292SN/A /** Sets active threads list. */ 1312292SN/A void setActiveThreads(std::list<unsigned> *at_ptr); 1322292SN/A 1332292SN/A /** Sets the IEW pointer. */ 1342292SN/A void setIEW(IEW *iew_ptr) { iewStage = iew_ptr; } 1352292SN/A 1362292SN/A /** Sets the timer buffer between issue and execute. */ 1371060SN/A void setIssueToExecuteQueue(TimeBuffer<IssueStruct> *i2eQueue); 1381060SN/A 1392292SN/A /** Sets the global time buffer. */ 1401060SN/A void setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr); 1411060SN/A 1422348SN/A /** Switches out the instruction queue. */ 1432307SN/A void switchOut(); 1442307SN/A 1452348SN/A /** Takes over execution from another CPU's thread. */ 1462307SN/A void takeOverFrom(); 1472307SN/A 1482348SN/A /** Returns if the IQ is switched out. */ 1492307SN/A bool isSwitchedOut() { return switchedOut; } 1502307SN/A 1512292SN/A /** Number of entries needed for given amount of threads. */ 1522292SN/A int entryAmount(int num_threads); 1532292SN/A 1542292SN/A /** Resets max entries for all threads. */ 1552292SN/A void resetEntries(); 1562292SN/A 1572292SN/A /** Returns total number of free entries. */ 1581060SN/A unsigned numFreeEntries(); 1591060SN/A 1602292SN/A /** Returns number of free entries for a thread. */ 1612292SN/A unsigned numFreeEntries(unsigned tid); 1622292SN/A 1632292SN/A /** Returns whether or not the IQ is full. */ 1641060SN/A bool isFull(); 1651060SN/A 1662292SN/A /** Returns whether or not the IQ is full for a specific thread. */ 1672292SN/A bool isFull(unsigned tid); 1682292SN/A 1692292SN/A /** Returns if there are any ready instructions in the IQ. */ 1702292SN/A bool hasReadyInsts(); 1712292SN/A 1722292SN/A /** Inserts a new instruction into the IQ. */ 1731061SN/A void insert(DynInstPtr &new_inst); 1741060SN/A 1752292SN/A /** Inserts a new, non-speculative instruction into the IQ. */ 1761061SN/A void insertNonSpec(DynInstPtr &new_inst); 1771061SN/A 1782292SN/A /** Inserts a memory or write barrier into the IQ to make sure 1792292SN/A * loads and stores are ordered properly. 1802292SN/A */ 1812292SN/A void insertBarrier(DynInstPtr &barr_inst); 1821060SN/A 1832348SN/A /** Returns the oldest scheduled instruction, and removes it from 1842348SN/A * the list of instructions waiting to execute. 1852348SN/A */ 1862333SN/A DynInstPtr getInstToExecute(); 1872333SN/A 1882292SN/A /** 1892326SN/A * Records the instruction as the producer of a register without 1902326SN/A * adding it to the rest of the IQ. 1912292SN/A */ 1922326SN/A void recordProducer(DynInstPtr &inst) 1932326SN/A { addToProducers(inst); } 1941755SN/A 1952292SN/A /** Process FU completion event. */ 1962292SN/A void processFUCompletion(DynInstPtr &inst, int fu_idx); 1972292SN/A 1982292SN/A /** 1992292SN/A * Schedules ready instructions, adding the ready ones (oldest first) to 2002292SN/A * the queue to execute. 2012292SN/A */ 2021060SN/A void scheduleReadyInsts(); 2031060SN/A 2042292SN/A /** Schedules a single specific non-speculative instruction. */ 2051061SN/A void scheduleNonSpec(const InstSeqNum &inst); 2061061SN/A 2072292SN/A /** 2082292SN/A * Commits all instructions up to and including the given sequence number, 2092292SN/A * for a specific thread. 2102292SN/A */ 2112292SN/A void commit(const InstSeqNum &inst, unsigned tid = 0); 2121061SN/A 2132292SN/A /** Wakes all dependents of a completed instruction. */ 2142301SN/A int wakeDependents(DynInstPtr &completed_inst); 2151755SN/A 2162292SN/A /** Adds a ready memory instruction to the ready list. */ 2172292SN/A void addReadyMemInst(DynInstPtr &ready_inst); 2182292SN/A 2192292SN/A /** 2202292SN/A * Reschedules a memory instruction. It will be ready to issue once 2212292SN/A * replayMemInst() is called. 2222292SN/A */ 2232292SN/A void rescheduleMemInst(DynInstPtr &resched_inst); 2242292SN/A 2252292SN/A /** Replays a memory instruction. It must be rescheduled first. */ 2262292SN/A void replayMemInst(DynInstPtr &replay_inst); 2272292SN/A 2282292SN/A /** Completes a memory operation. */ 2292292SN/A void completeMemInst(DynInstPtr &completed_inst); 2302292SN/A 2312292SN/A /** Indicates an ordering violation between a store and a load. */ 2321061SN/A void violation(DynInstPtr &store, DynInstPtr &faulting_load); 2331061SN/A 2342292SN/A /** 2352292SN/A * Squashes instructions for a thread. Squashing information is obtained 2362292SN/A * from the time buffer. 2372292SN/A */ 2382292SN/A void squash(unsigned tid); 2391060SN/A 2402292SN/A /** Returns the number of used entries for a thread. */ 2412292SN/A unsigned getCount(unsigned tid) { return count[tid]; }; 2421060SN/A 2432292SN/A /** Debug function to print all instructions. */ 2442292SN/A void printInsts(); 2451060SN/A 2461060SN/A private: 2472292SN/A /** Does the actual squashing. */ 2482292SN/A void doSquash(unsigned tid); 2492292SN/A 2502292SN/A ///////////////////////// 2512292SN/A // Various pointers 2522292SN/A ///////////////////////// 2532292SN/A 2541060SN/A /** Pointer to the CPU. */ 2552733Sktlim@umich.edu O3CPU *cpu; 2561060SN/A 2572292SN/A /** Cache interface. */ 2582292SN/A MemInterface *dcacheInterface; 2592292SN/A 2602292SN/A /** Pointer to IEW stage. */ 2612292SN/A IEW *iewStage; 2622292SN/A 2631061SN/A /** The memory dependence unit, which tracks/predicts memory dependences 2641061SN/A * between instructions. 2651061SN/A */ 2662292SN/A MemDepUnit memDepUnit[Impl::MaxThreads]; 2671061SN/A 2681060SN/A /** The queue to the execute stage. Issued instructions will be written 2691060SN/A * into it. 2701060SN/A */ 2711060SN/A TimeBuffer<IssueStruct> *issueToExecuteQueue; 2721060SN/A 2731060SN/A /** The backwards time buffer. */ 2741060SN/A TimeBuffer<TimeStruct> *timeBuffer; 2751060SN/A 2761060SN/A /** Wire to read information from timebuffer. */ 2771060SN/A typename TimeBuffer<TimeStruct>::wire fromCommit; 2781060SN/A 2792292SN/A /** Function unit pool. */ 2802292SN/A FUPool *fuPool; 2812292SN/A 2822292SN/A ////////////////////////////////////// 2832292SN/A // Instruction lists, ready queues, and ordering 2842292SN/A ////////////////////////////////////// 2852292SN/A 2862292SN/A /** List of all the instructions in the IQ (some of which may be issued). */ 2872292SN/A std::list<DynInstPtr> instList[Impl::MaxThreads]; 2882292SN/A 2892348SN/A /** List of instructions that are ready to be executed. */ 2902333SN/A std::list<DynInstPtr> instsToExecute; 2912333SN/A 2922292SN/A /** 2932348SN/A * Struct for comparing entries to be added to the priority queue. 2942348SN/A * This gives reverse ordering to the instructions in terms of 2952348SN/A * sequence numbers: the instructions with smaller sequence 2962348SN/A * numbers (and hence are older) will be at the top of the 2972348SN/A * priority queue. 2982292SN/A */ 2992292SN/A struct pqCompare { 3002292SN/A bool operator() (const DynInstPtr &lhs, const DynInstPtr &rhs) const 3012292SN/A { 3022292SN/A return lhs->seqNum > rhs->seqNum; 3032292SN/A } 3041060SN/A }; 3051060SN/A 3062292SN/A typedef std::priority_queue<DynInstPtr, std::vector<DynInstPtr>, pqCompare> 3072292SN/A ReadyInstQueue; 3081755SN/A 3092292SN/A /** List of ready instructions, per op class. They are separated by op 3102292SN/A * class to allow for easy mapping to FUs. 3111061SN/A */ 3122292SN/A ReadyInstQueue readyInsts[Num_OpClasses]; 3131061SN/A 3141061SN/A /** List of non-speculative instructions that will be scheduled 3151061SN/A * once the IQ gets a signal from commit. While it's redundant to 3161061SN/A * have the key be a part of the value (the sequence number is stored 3171061SN/A * inside of DynInst), when these instructions are woken up only 3181681SN/A * the sequence number will be available. Thus it is most efficient to be 3191061SN/A * able to search by the sequence number alone. 3201061SN/A */ 3211061SN/A std::map<InstSeqNum, DynInstPtr> nonSpecInsts; 3221061SN/A 3232292SN/A typedef typename std::map<InstSeqNum, DynInstPtr>::iterator NonSpecMapIt; 3242292SN/A 3252292SN/A /** Entry for the list age ordering by op class. */ 3262292SN/A struct ListOrderEntry { 3272292SN/A OpClass queueType; 3282292SN/A InstSeqNum oldestInst; 3292292SN/A }; 3302292SN/A 3312292SN/A /** List that contains the age order of the oldest instruction of each 3322292SN/A * ready queue. Used to select the oldest instruction available 3332292SN/A * among op classes. 3342326SN/A * @todo: Might be better to just move these entries around instead 3352326SN/A * of creating new ones every time the position changes due to an 3362326SN/A * instruction issuing. Not sure std::list supports this. 3372292SN/A */ 3382292SN/A std::list<ListOrderEntry> listOrder; 3392292SN/A 3402292SN/A typedef typename std::list<ListOrderEntry>::iterator ListOrderIt; 3412292SN/A 3422292SN/A /** Tracks if each ready queue is on the age order list. */ 3432292SN/A bool queueOnList[Num_OpClasses]; 3442292SN/A 3452292SN/A /** Iterators of each ready queue. Points to their spot in the age order 3462292SN/A * list. 3472292SN/A */ 3482292SN/A ListOrderIt readyIt[Num_OpClasses]; 3492292SN/A 3502292SN/A /** Add an op class to the age order list. */ 3512292SN/A void addToOrderList(OpClass op_class); 3522292SN/A 3532292SN/A /** 3542292SN/A * Called when the oldest instruction has been removed from a ready queue; 3552292SN/A * this places that ready queue into the proper spot in the age order list. 3562292SN/A */ 3572292SN/A void moveToYoungerInst(ListOrderIt age_order_it); 3582292SN/A 3592326SN/A DependencyGraph<DynInstPtr> dependGraph; 3602326SN/A 3612292SN/A ////////////////////////////////////// 3622292SN/A // Various parameters 3632292SN/A ////////////////////////////////////// 3642292SN/A 3652292SN/A /** IQ Resource Sharing Policy */ 3662292SN/A enum IQPolicy { 3672292SN/A Dynamic, 3682292SN/A Partitioned, 3692292SN/A Threshold 3702292SN/A }; 3712292SN/A 3722292SN/A /** IQ sharing policy for SMT. */ 3732292SN/A IQPolicy iqPolicy; 3742292SN/A 3752292SN/A /** Number of Total Threads*/ 3762292SN/A unsigned numThreads; 3772292SN/A 3782292SN/A /** Pointer to list of active threads. */ 3792292SN/A std::list<unsigned> *activeThreads; 3802292SN/A 3812292SN/A /** Per Thread IQ count */ 3822292SN/A unsigned count[Impl::MaxThreads]; 3832292SN/A 3842292SN/A /** Max IQ Entries Per Thread */ 3852292SN/A unsigned maxEntries[Impl::MaxThreads]; 3861060SN/A 3871060SN/A /** Number of free IQ entries left. */ 3881060SN/A unsigned freeEntries; 3891060SN/A 3901060SN/A /** The number of entries in the instruction queue. */ 3911060SN/A unsigned numEntries; 3921060SN/A 3931060SN/A /** The total number of instructions that can be issued in one cycle. */ 3941060SN/A unsigned totalWidth; 3951060SN/A 3962292SN/A /** The number of physical registers in the CPU. */ 3971060SN/A unsigned numPhysRegs; 3981060SN/A 3991060SN/A /** The number of physical integer registers in the CPU. */ 4001060SN/A unsigned numPhysIntRegs; 4011060SN/A 4021060SN/A /** The number of floating point registers in the CPU. */ 4031060SN/A unsigned numPhysFloatRegs; 4041060SN/A 4051060SN/A /** Delay between commit stage and the IQ. 4061060SN/A * @todo: Make there be a distinction between the delays within IEW. 4071060SN/A */ 4081060SN/A unsigned commitToIEWDelay; 4091060SN/A 4102348SN/A /** Is the IQ switched out. */ 4112307SN/A bool switchedOut; 4121060SN/A 4131060SN/A /** The sequence number of the squashed instruction. */ 4142292SN/A InstSeqNum squashedSeqNum[Impl::MaxThreads]; 4151060SN/A 4161060SN/A /** A cache of the recently woken registers. It is 1 if the register 4171060SN/A * has been woken up recently, and 0 if the register has been added 4181060SN/A * to the dependency graph and has not yet received its value. It 4191060SN/A * is basically a secondary scoreboard, and should pretty much mirror 4201060SN/A * the scoreboard that exists in the rename map. 4211060SN/A */ 4222292SN/A std::vector<bool> regScoreboard; 4231060SN/A 4242326SN/A /** Adds an instruction to the dependency graph, as a consumer. */ 4251061SN/A bool addToDependents(DynInstPtr &new_inst); 4261684SN/A 4272326SN/A /** Adds an instruction to the dependency graph, as a producer. */ 4282326SN/A void addToProducers(DynInstPtr &new_inst); 4291755SN/A 4302292SN/A /** Moves an instruction to the ready queue if it is ready. */ 4311684SN/A void addIfReady(DynInstPtr &inst); 4321684SN/A 4331684SN/A /** Debugging function to count how many entries are in the IQ. It does 4341684SN/A * a linear walk through the instructions, so do not call this function 4351684SN/A * during normal execution. 4361684SN/A */ 4371684SN/A int countInsts(); 4381684SN/A 4391684SN/A /** Debugging function to dump all the list sizes, as well as print 4401684SN/A * out the list of nonspeculative instructions. Should not be used 4411684SN/A * in any other capacity, but it has no harmful sideaffects. 4421684SN/A */ 4431684SN/A void dumpLists(); 4441062SN/A 4452292SN/A /** Debugging function to dump out all instructions that are in the 4462292SN/A * IQ. 4472292SN/A */ 4482292SN/A void dumpInsts(); 4492292SN/A 4502292SN/A /** Stat for number of instructions added. */ 4511062SN/A Stats::Scalar<> iqInstsAdded; 4522292SN/A /** Stat for number of non-speculative instructions added. */ 4531062SN/A Stats::Scalar<> iqNonSpecInstsAdded; 4542326SN/A 4552301SN/A Stats::Scalar<> iqInstsIssued; 4562292SN/A /** Stat for number of integer instructions issued. */ 4571062SN/A Stats::Scalar<> iqIntInstsIssued; 4582292SN/A /** Stat for number of floating point instructions issued. */ 4591062SN/A Stats::Scalar<> iqFloatInstsIssued; 4602292SN/A /** Stat for number of branch instructions issued. */ 4611062SN/A Stats::Scalar<> iqBranchInstsIssued; 4622292SN/A /** Stat for number of memory instructions issued. */ 4631062SN/A Stats::Scalar<> iqMemInstsIssued; 4642292SN/A /** Stat for number of miscellaneous instructions issued. */ 4651062SN/A Stats::Scalar<> iqMiscInstsIssued; 4662292SN/A /** Stat for number of squashed instructions that were ready to issue. */ 4671062SN/A Stats::Scalar<> iqSquashedInstsIssued; 4682292SN/A /** Stat for number of squashed instructions examined when squashing. */ 4691062SN/A Stats::Scalar<> iqSquashedInstsExamined; 4702292SN/A /** Stat for number of squashed instruction operands examined when 4712292SN/A * squashing. 4722292SN/A */ 4731062SN/A Stats::Scalar<> iqSquashedOperandsExamined; 4742292SN/A /** Stat for number of non-speculative instructions removed due to a squash. 4752292SN/A */ 4761062SN/A Stats::Scalar<> iqSquashedNonSpecRemoved; 4772727Sktlim@umich.edu // Also include number of instructions rescheduled and replayed. 4781062SN/A 4792727Sktlim@umich.edu /** Distribution of number of instructions in the queue. 4802727Sktlim@umich.edu * @todo: Need to create struct to track the entry time for each 4812727Sktlim@umich.edu * instruction. */ 4822326SN/A Stats::VectorDistribution<> queueResDist; 4832348SN/A /** Distribution of the number of instructions issued. */ 4842326SN/A Stats::Distribution<> numIssuedDist; 4852727Sktlim@umich.edu /** Distribution of the cycles it takes to issue an instruction. 4862727Sktlim@umich.edu * @todo: Need to create struct to track the ready time for each 4872727Sktlim@umich.edu * instruction. */ 4882326SN/A Stats::VectorDistribution<> issueDelayDist; 4892301SN/A 4902348SN/A /** Number of times an instruction could not be issued because a 4912348SN/A * FU was busy. 4922348SN/A */ 4932326SN/A Stats::Vector<> statFuBusy; 4942301SN/A// Stats::Vector<> dist_unissued; 4952348SN/A /** Stat for total number issued for each instruction type. */ 4962326SN/A Stats::Vector2d<> statIssuedInstType; 4972301SN/A 4982348SN/A /** Number of instructions issued per cycle. */ 4992326SN/A Stats::Formula issueRate; 5002727Sktlim@umich.edu 5012348SN/A /** Number of times the FU was busy. */ 5022348SN/A Stats::Vector<> fuBusy; 5032348SN/A /** Number of times the FU was busy per instruction issued. */ 5042326SN/A Stats::Formula fuBusyRate; 5051060SN/A}; 5061060SN/A 5072292SN/A#endif //__CPU_O3_INST_QUEUE_HH__ 508