rename.hh revision 9444
11689SN/A/* 29444SAndreas.Sandberg@ARM.com * Copyright (c) 2012 ARM Limited 39444SAndreas.Sandberg@ARM.com * All rights reserved 49444SAndreas.Sandberg@ARM.com * 59444SAndreas.Sandberg@ARM.com * The license below extends only to copyright in the software and shall 69444SAndreas.Sandberg@ARM.com * not be construed as granting a license to any other intellectual 79444SAndreas.Sandberg@ARM.com * property including but not limited to intellectual property relating 89444SAndreas.Sandberg@ARM.com * to a hardware implementation of the functionality of the software 99444SAndreas.Sandberg@ARM.com * licensed hereunder. You may use the software subject to the license 109444SAndreas.Sandberg@ARM.com * terms below provided that you ensure that this notice is replicated 119444SAndreas.Sandberg@ARM.com * unmodified and in its entirety in all distributions of the software, 129444SAndreas.Sandberg@ARM.com * modified or unmodified, in source code or in binary form. 139444SAndreas.Sandberg@ARM.com * 142329SN/A * Copyright (c) 2004-2006 The Regents of The University of Michigan 151689SN/A * All rights reserved. 161689SN/A * 171689SN/A * Redistribution and use in source and binary forms, with or without 181689SN/A * modification, are permitted provided that the following conditions are 191689SN/A * met: redistributions of source code must retain the above copyright 201689SN/A * notice, this list of conditions and the following disclaimer; 211689SN/A * redistributions in binary form must reproduce the above copyright 221689SN/A * notice, this list of conditions and the following disclaimer in the 231689SN/A * documentation and/or other materials provided with the distribution; 241689SN/A * neither the name of the copyright holders nor the names of its 251689SN/A * contributors may be used to endorse or promote products derived from 261689SN/A * this software without specific prior written permission. 271689SN/A * 281689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 291689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 301689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 311689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 321689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 331689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 341689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 351689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 361689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 371689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 381689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 392665Ssaidi@eecs.umich.edu * 402665Ssaidi@eecs.umich.edu * Authors: Kevin Lim 411689SN/A */ 421689SN/A 432292SN/A#ifndef __CPU_O3_RENAME_HH__ 442292SN/A#define __CPU_O3_RENAME_HH__ 451060SN/A 461060SN/A#include <list> 471060SN/A 481461SN/A#include "base/statistics.hh" 498229Snate@binkert.org#include "config/the_isa.hh" 507813Ssteve.reinhardt@amd.com#include "cpu/timebuf.hh" 511060SN/A 528737Skoansin.tan@gmail.comstruct DerivO3CPUParams; 535529Snate@binkert.org 542292SN/A/** 552329SN/A * DefaultRename handles both single threaded and SMT rename. Its 562329SN/A * width is specified by the parameters; each cycle it tries to rename 572329SN/A * that many instructions. It holds onto the rename history of all 582329SN/A * instructions with destination registers, storing the 592329SN/A * arch. register, the new physical register, and the old physical 602329SN/A * register, to allow for undoing of mappings if squashing happens, or 612329SN/A * freeing up registers upon commit. Rename handles blocking if the 622329SN/A * ROB, IQ, or LSQ is going to be full. Rename also handles barriers, 632329SN/A * and does so by stalling on the instruction until the ROB is empty 642329SN/A * and there are no instructions in flight to the ROB. 652292SN/A */ 661060SN/Atemplate<class Impl> 672292SN/Aclass DefaultRename 681060SN/A{ 691060SN/A public: 701060SN/A // Typedefs from the Impl. 711060SN/A typedef typename Impl::CPUPol CPUPol; 721061SN/A typedef typename Impl::DynInstPtr DynInstPtr; 732733Sktlim@umich.edu typedef typename Impl::O3CPU O3CPU; 741060SN/A 752292SN/A // Typedefs from the CPUPol 761061SN/A typedef typename CPUPol::DecodeStruct DecodeStruct; 771061SN/A typedef typename CPUPol::RenameStruct RenameStruct; 781061SN/A typedef typename CPUPol::TimeStruct TimeStruct; 791060SN/A typedef typename CPUPol::FreeList FreeList; 801060SN/A typedef typename CPUPol::RenameMap RenameMap; 812292SN/A // These are used only for initialization. 822292SN/A typedef typename CPUPol::IEW IEW; 832292SN/A typedef typename CPUPol::Commit Commit; 841060SN/A 851060SN/A // Typedefs from the ISA. 862107SN/A typedef TheISA::RegIndex RegIndex; 871060SN/A 882329SN/A // A list is used to queue the instructions. Barrier insts must 892329SN/A // be added to the front of the list, which is the only reason for 902329SN/A // using a list instead of a queue. (Most other stages use a 912329SN/A // queue) 922292SN/A typedef std::list<DynInstPtr> InstQueue; 932935Sksewell@umich.edu typedef typename std::list<DynInstPtr>::iterator ListIt; 942292SN/A 951060SN/A public: 962329SN/A /** Overall rename status. Used to determine if the CPU can 972329SN/A * deschedule itself due to a lack of activity. 982292SN/A */ 992292SN/A enum RenameStatus { 1002292SN/A Active, 1012292SN/A Inactive 1022292SN/A }; 1032292SN/A 1042292SN/A /** Individual thread status. */ 1052292SN/A enum ThreadStatus { 1061060SN/A Running, 1071060SN/A Idle, 1082292SN/A StartSquash, 1091060SN/A Squashing, 1101060SN/A Blocked, 1111060SN/A Unblocking, 1122301SN/A SerializeStall 1131060SN/A }; 1141060SN/A 1151060SN/A private: 1162292SN/A /** Rename status. */ 1172292SN/A RenameStatus _status; 1182292SN/A 1192292SN/A /** Per-thread status. */ 1202292SN/A ThreadStatus renameStatus[Impl::MaxThreads]; 1211060SN/A 1221060SN/A public: 1232292SN/A /** DefaultRename constructor. */ 1245529Snate@binkert.org DefaultRename(O3CPU *_cpu, DerivO3CPUParams *params); 1251060SN/A 1262292SN/A /** Returns the name of rename. */ 1272292SN/A std::string name() const; 1282292SN/A 1292292SN/A /** Registers statistics. */ 1301062SN/A void regStats(); 1311062SN/A 1322292SN/A /** Sets the main backwards communication time buffer pointer. */ 1331060SN/A void setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr); 1341060SN/A 1352292SN/A /** Sets pointer to time buffer used to communicate to the next stage. */ 1361060SN/A void setRenameQueue(TimeBuffer<RenameStruct> *rq_ptr); 1371060SN/A 1382292SN/A /** Sets pointer to time buffer coming from decode. */ 1391060SN/A void setDecodeQueue(TimeBuffer<DecodeStruct> *dq_ptr); 1401060SN/A 1412292SN/A /** Sets pointer to IEW stage. Used only for initialization. */ 1422292SN/A void setIEWStage(IEW *iew_stage) 1432292SN/A { iew_ptr = iew_stage; } 1441060SN/A 1452292SN/A /** Sets pointer to commit stage. Used only for initialization. */ 1462292SN/A void setCommitStage(Commit *commit_stage) 1472292SN/A { commit_ptr = commit_stage; } 1482292SN/A 1492292SN/A private: 1502292SN/A /** Pointer to IEW stage. Used only for initialization. */ 1512292SN/A IEW *iew_ptr; 1522292SN/A 1532292SN/A /** Pointer to commit stage. Used only for initialization. */ 1542292SN/A Commit *commit_ptr; 1552292SN/A 1562292SN/A public: 1572292SN/A /** Initializes variables for the stage. */ 1589427SAndreas.Sandberg@ARM.com void startupStage(); 1592292SN/A 1602292SN/A /** Sets pointer to list of active threads. */ 1616221Snate@binkert.org void setActiveThreads(std::list<ThreadID> *at_ptr); 1622292SN/A 1632292SN/A /** Sets pointer to rename maps (per-thread structures). */ 1642292SN/A void setRenameMap(RenameMap rm_ptr[Impl::MaxThreads]); 1652292SN/A 1662292SN/A /** Sets pointer to the free list. */ 1671060SN/A void setFreeList(FreeList *fl_ptr); 1681060SN/A 1692292SN/A /** Sets pointer to the scoreboard. */ 1702292SN/A void setScoreboard(Scoreboard *_scoreboard); 1712292SN/A 1729444SAndreas.Sandberg@ARM.com /** Perform sanity checks after a drain. */ 1739444SAndreas.Sandberg@ARM.com void drainSanityCheck() const; 1742843Sktlim@umich.edu 1759444SAndreas.Sandberg@ARM.com /** Has the stage drained? */ 1769444SAndreas.Sandberg@ARM.com bool isDrained() const; 1772307SN/A 1782348SN/A /** Takes over from another CPU's thread. */ 1792307SN/A void takeOverFrom(); 1802307SN/A 1812292SN/A /** Squashes all instructions in a thread. */ 1826221Snate@binkert.org void squash(const InstSeqNum &squash_seq_num, ThreadID tid); 1832292SN/A 1842292SN/A /** Ticks rename, which processes all input signals and attempts to rename 1852292SN/A * as many instructions as possible. 1862292SN/A */ 1872292SN/A void tick(); 1882292SN/A 1892292SN/A /** Debugging function used to dump history buffer of renamings. */ 1901060SN/A void dumpHistory(); 1911060SN/A 1922292SN/A private: 1939444SAndreas.Sandberg@ARM.com /** Reset this pipeline stage */ 1949444SAndreas.Sandberg@ARM.com void resetStage(); 1959444SAndreas.Sandberg@ARM.com 1962292SN/A /** Determines what to do based on rename's current status. 1972292SN/A * @param status_change rename() sets this variable if there was a status 1982292SN/A * change (ie switching from blocking to unblocking). 1992292SN/A * @param tid Thread id to rename instructions from. 2002292SN/A */ 2016221Snate@binkert.org void rename(bool &status_change, ThreadID tid); 2021060SN/A 2032292SN/A /** Renames instructions for the given thread. Also handles serializing 2042292SN/A * instructions. 2052292SN/A */ 2066221Snate@binkert.org void renameInsts(ThreadID tid); 2071060SN/A 2082292SN/A /** Inserts unused instructions from a given thread into the skid buffer, 2092292SN/A * to be renamed once rename unblocks. 2102292SN/A */ 2116221Snate@binkert.org void skidInsert(ThreadID tid); 2121060SN/A 2132292SN/A /** Separates instructions from decode into individual lists of instructions 2142292SN/A * sorted by thread. 2152292SN/A */ 2162292SN/A void sortInsts(); 2171060SN/A 2182292SN/A /** Returns if all of the skid buffers are empty. */ 2192292SN/A bool skidsEmpty(); 2201060SN/A 2212292SN/A /** Updates overall rename status based on all of the threads' statuses. */ 2222292SN/A void updateStatus(); 2231060SN/A 2242292SN/A /** Switches rename to blocking, and signals back that rename has become 2252292SN/A * blocked. 2262292SN/A * @return Returns true if there is a status change. 2272292SN/A */ 2286221Snate@binkert.org bool block(ThreadID tid); 2291060SN/A 2302292SN/A /** Switches rename to unblocking if the skid buffer is empty, and signals 2312292SN/A * back that rename has unblocked. 2322292SN/A * @return Returns true if there is a status change. 2332292SN/A */ 2346221Snate@binkert.org bool unblock(ThreadID tid); 2351061SN/A 2362292SN/A /** Executes actual squash, removing squashed instructions. */ 2376221Snate@binkert.org void doSquash(const InstSeqNum &squash_seq_num, ThreadID tid); 2381061SN/A 2392292SN/A /** Removes a committed instruction's rename history. */ 2406221Snate@binkert.org void removeFromHistory(InstSeqNum inst_seq_num, ThreadID tid); 2411061SN/A 2422292SN/A /** Renames the source registers of an instruction. */ 2436221Snate@binkert.org inline void renameSrcRegs(DynInstPtr &inst, ThreadID tid); 2441061SN/A 2452292SN/A /** Renames the destination registers of an instruction. */ 2466221Snate@binkert.org inline void renameDestRegs(DynInstPtr &inst, ThreadID tid); 2472292SN/A 2482292SN/A /** Calculates the number of free ROB entries for a specific thread. */ 2496221Snate@binkert.org inline int calcFreeROBEntries(ThreadID tid); 2502292SN/A 2512292SN/A /** Calculates the number of free IQ entries for a specific thread. */ 2526221Snate@binkert.org inline int calcFreeIQEntries(ThreadID tid); 2532292SN/A 2542292SN/A /** Calculates the number of free LSQ entries for a specific thread. */ 2556221Snate@binkert.org inline int calcFreeLSQEntries(ThreadID tid); 2562292SN/A 2572292SN/A /** Returns the number of valid instructions coming from decode. */ 2582292SN/A unsigned validInsts(); 2592292SN/A 2602292SN/A /** Reads signals telling rename to block/unblock. */ 2616221Snate@binkert.org void readStallSignals(ThreadID tid); 2622292SN/A 2632292SN/A /** Checks if any stages are telling rename to block. */ 2646221Snate@binkert.org bool checkStall(ThreadID tid); 2652292SN/A 2662348SN/A /** Gets the number of free entries for a specific thread. */ 2676221Snate@binkert.org void readFreeEntries(ThreadID tid); 2682292SN/A 2692348SN/A /** Checks the signals and updates the status. */ 2706221Snate@binkert.org bool checkSignalsAndUpdate(ThreadID tid); 2712292SN/A 2722292SN/A /** Either serializes on the next instruction available in the InstQueue, 2732292SN/A * or records that it must serialize on the next instruction to enter 2742292SN/A * rename. 2752292SN/A * @param inst_list The list of younger, unprocessed instructions for the 2762292SN/A * thread that has the serializeAfter instruction. 2772292SN/A * @param tid The thread id. 2782292SN/A */ 2796221Snate@binkert.org void serializeAfter(InstQueue &inst_list, ThreadID tid); 2802292SN/A 2812292SN/A /** Holds the information for each destination register rename. It holds 2822292SN/A * the instruction's sequence number, the arch register, the old physical 2832292SN/A * register for that arch. register, and the new physical register. 2841060SN/A */ 2851060SN/A struct RenameHistory { 2861060SN/A RenameHistory(InstSeqNum _instSeqNum, RegIndex _archReg, 2871060SN/A PhysRegIndex _newPhysReg, PhysRegIndex _prevPhysReg) 2881060SN/A : instSeqNum(_instSeqNum), archReg(_archReg), 2892292SN/A newPhysReg(_newPhysReg), prevPhysReg(_prevPhysReg) 2901060SN/A { 2911060SN/A } 2921060SN/A 2932292SN/A /** The sequence number of the instruction that renamed. */ 2941060SN/A InstSeqNum instSeqNum; 2952292SN/A /** The architectural register index that was renamed. */ 2961060SN/A RegIndex archReg; 2972292SN/A /** The new physical register that the arch. register is renamed to. */ 2981060SN/A PhysRegIndex newPhysReg; 2992292SN/A /** The old physical register that the arch. register was renamed to. */ 3001060SN/A PhysRegIndex prevPhysReg; 3011060SN/A }; 3021060SN/A 3032292SN/A /** A per-thread list of all destination register renames, used to either 3042292SN/A * undo rename mappings or free old physical registers. 3052292SN/A */ 3062292SN/A std::list<RenameHistory> historyBuffer[Impl::MaxThreads]; 3071060SN/A 3082292SN/A /** Pointer to CPU. */ 3092733Sktlim@umich.edu O3CPU *cpu; 3101060SN/A 3112292SN/A /** Pointer to main time buffer used for backwards communication. */ 3121060SN/A TimeBuffer<TimeStruct> *timeBuffer; 3131060SN/A 3141060SN/A /** Wire to get IEW's output from backwards time buffer. */ 3151060SN/A typename TimeBuffer<TimeStruct>::wire fromIEW; 3161060SN/A 3171060SN/A /** Wire to get commit's output from backwards time buffer. */ 3181060SN/A typename TimeBuffer<TimeStruct>::wire fromCommit; 3191060SN/A 3201060SN/A /** Wire to write infromation heading to previous stages. */ 3211060SN/A typename TimeBuffer<TimeStruct>::wire toDecode; 3221060SN/A 3231060SN/A /** Rename instruction queue. */ 3241060SN/A TimeBuffer<RenameStruct> *renameQueue; 3251060SN/A 3261060SN/A /** Wire to write any information heading to IEW. */ 3271060SN/A typename TimeBuffer<RenameStruct>::wire toIEW; 3281060SN/A 3291060SN/A /** Decode instruction queue interface. */ 3301060SN/A TimeBuffer<DecodeStruct> *decodeQueue; 3311060SN/A 3321060SN/A /** Wire to get decode's output from decode queue. */ 3331060SN/A typename TimeBuffer<DecodeStruct>::wire fromDecode; 3341060SN/A 3352292SN/A /** Queue of all instructions coming from decode this cycle. */ 3362292SN/A InstQueue insts[Impl::MaxThreads]; 3372292SN/A 3381060SN/A /** Skid buffer between rename and decode. */ 3392292SN/A InstQueue skidBuffer[Impl::MaxThreads]; 3401060SN/A 3411060SN/A /** Rename map interface. */ 3422292SN/A RenameMap *renameMap[Impl::MaxThreads]; 3431060SN/A 3441060SN/A /** Free list interface. */ 3451060SN/A FreeList *freeList; 3461060SN/A 3472292SN/A /** Pointer to the list of active threads. */ 3486221Snate@binkert.org std::list<ThreadID> *activeThreads; 3492292SN/A 3502292SN/A /** Pointer to the scoreboard. */ 3512292SN/A Scoreboard *scoreboard; 3522292SN/A 3532292SN/A /** Count of instructions in progress that have been sent off to the IQ 3542292SN/A * and ROB, but are not yet included in their occupancy counts. 3552292SN/A */ 3562292SN/A int instsInProgress[Impl::MaxThreads]; 3572292SN/A 3582292SN/A /** Variable that tracks if decode has written to the time buffer this 3592292SN/A * cycle. Used to tell CPU if there is activity this cycle. 3602292SN/A */ 3612292SN/A bool wroteToTimeBuffer; 3622292SN/A 3632292SN/A /** Structures whose free entries impact the amount of instructions that 3642292SN/A * can be renamed. 3652292SN/A */ 3662292SN/A struct FreeEntries { 3672292SN/A unsigned iqEntries; 3682292SN/A unsigned lsqEntries; 3692292SN/A unsigned robEntries; 3702292SN/A }; 3712292SN/A 3722292SN/A /** Per-thread tracking of the number of free entries of back-end 3732292SN/A * structures. 3742292SN/A */ 3752292SN/A FreeEntries freeEntries[Impl::MaxThreads]; 3762292SN/A 3772292SN/A /** Records if the ROB is empty. In SMT mode the ROB may be dynamically 3782292SN/A * partitioned between threads, so the ROB must tell rename when it is 3792292SN/A * empty. 3802292SN/A */ 3812292SN/A bool emptyROB[Impl::MaxThreads]; 3822292SN/A 3832292SN/A /** Source of possible stalls. */ 3842292SN/A struct Stalls { 3852292SN/A bool iew; 3862292SN/A bool commit; 3872292SN/A }; 3882292SN/A 3892292SN/A /** Tracks which stages are telling decode to stall. */ 3902292SN/A Stalls stalls[Impl::MaxThreads]; 3912292SN/A 3922301SN/A /** The serialize instruction that rename has stalled on. */ 3932301SN/A DynInstPtr serializeInst[Impl::MaxThreads]; 3942292SN/A 3952292SN/A /** Records if rename needs to serialize on the next instruction for any 3962292SN/A * thread. 3972292SN/A */ 3982292SN/A bool serializeOnNextInst[Impl::MaxThreads]; 3992292SN/A 4001060SN/A /** Delay between iew and rename, in ticks. */ 4011060SN/A int iewToRenameDelay; 4021060SN/A 4031060SN/A /** Delay between decode and rename, in ticks. */ 4041060SN/A int decodeToRenameDelay; 4051060SN/A 4061060SN/A /** Delay between commit and rename, in ticks. */ 4071060SN/A unsigned commitToRenameDelay; 4081060SN/A 4091060SN/A /** Rename width, in instructions. */ 4101060SN/A unsigned renameWidth; 4111060SN/A 4121060SN/A /** Commit width, in instructions. Used so rename knows how many 4131060SN/A * instructions might have freed registers in the previous cycle. 4141060SN/A */ 4151060SN/A unsigned commitWidth; 4161061SN/A 4172292SN/A /** The index of the instruction in the time buffer to IEW that rename is 4182292SN/A * currently using. 4191061SN/A */ 4202292SN/A unsigned toIEWIndex; 4211062SN/A 4222292SN/A /** Whether or not rename needs to block this cycle. */ 4232292SN/A bool blockThisCycle; 4242292SN/A 4253788Sgblack@eecs.umich.edu /** Whether or not rename needs to resume a serialize instruction 4263788Sgblack@eecs.umich.edu * after squashing. */ 4273788Sgblack@eecs.umich.edu bool resumeSerialize; 4283788Sgblack@eecs.umich.edu 4293798Sgblack@eecs.umich.edu /** Whether or not rename needs to resume clearing out the skidbuffer 4303798Sgblack@eecs.umich.edu * after squashing. */ 4313798Sgblack@eecs.umich.edu bool resumeUnblocking; 4323798Sgblack@eecs.umich.edu 4332292SN/A /** The number of threads active in rename. */ 4346221Snate@binkert.org ThreadID numThreads; 4352292SN/A 4362292SN/A /** The maximum skid buffer size. */ 4372292SN/A unsigned skidBufferMax; 4382292SN/A 4392361SN/A PhysRegIndex maxPhysicalRegs; 4402361SN/A 4412292SN/A /** Enum to record the source of a structure full stall. Can come from 4422292SN/A * either ROB, IQ, LSQ, and it is priortized in that order. 4432292SN/A */ 4442292SN/A enum FullSource { 4452292SN/A ROB, 4462292SN/A IQ, 4472292SN/A LSQ, 4482292SN/A NONE 4492292SN/A }; 4502292SN/A 4512292SN/A /** Function used to increment the stat that corresponds to the source of 4522292SN/A * the stall. 4532292SN/A */ 4542292SN/A inline void incrFullStat(const FullSource &source); 4552292SN/A 4562292SN/A /** Stat for total number of cycles spent squashing. */ 4575999Snate@binkert.org Stats::Scalar renameSquashCycles; 4582292SN/A /** Stat for total number of cycles spent idle. */ 4595999Snate@binkert.org Stats::Scalar renameIdleCycles; 4602292SN/A /** Stat for total number of cycles spent blocking. */ 4615999Snate@binkert.org Stats::Scalar renameBlockCycles; 4622301SN/A /** Stat for total number of cycles spent stalling for a serializing inst. */ 4635999Snate@binkert.org Stats::Scalar renameSerializeStallCycles; 4642292SN/A /** Stat for total number of cycles spent running normally. */ 4655999Snate@binkert.org Stats::Scalar renameRunCycles; 4662292SN/A /** Stat for total number of cycles spent unblocking. */ 4675999Snate@binkert.org Stats::Scalar renameUnblockCycles; 4682292SN/A /** Stat for total number of renamed instructions. */ 4695999Snate@binkert.org Stats::Scalar renameRenamedInsts; 4702292SN/A /** Stat for total number of squashed instructions that rename discards. */ 4715999Snate@binkert.org Stats::Scalar renameSquashedInsts; 4722292SN/A /** Stat for total number of times that the ROB starts a stall in rename. */ 4735999Snate@binkert.org Stats::Scalar renameROBFullEvents; 4742292SN/A /** Stat for total number of times that the IQ starts a stall in rename. */ 4755999Snate@binkert.org Stats::Scalar renameIQFullEvents; 4762292SN/A /** Stat for total number of times that the LSQ starts a stall in rename. */ 4775999Snate@binkert.org Stats::Scalar renameLSQFullEvents; 4782292SN/A /** Stat for total number of times that rename runs out of free registers 4792292SN/A * to use to rename. */ 4805999Snate@binkert.org Stats::Scalar renameFullRegistersEvents; 4812292SN/A /** Stat for total number of renamed destination registers. */ 4825999Snate@binkert.org Stats::Scalar renameRenamedOperands; 4832292SN/A /** Stat for total number of source register rename lookups. */ 4845999Snate@binkert.org Stats::Scalar renameRenameLookups; 4857897Shestness@cs.utexas.edu Stats::Scalar intRenameLookups; 4867897Shestness@cs.utexas.edu Stats::Scalar fpRenameLookups; 4872292SN/A /** Stat for total number of committed renaming mappings. */ 4885999Snate@binkert.org Stats::Scalar renameCommittedMaps; 4892292SN/A /** Stat for total number of mappings that were undone due to a squash. */ 4905999Snate@binkert.org Stats::Scalar renameUndoneMaps; 4912348SN/A /** Number of serialize instructions handled. */ 4925999Snate@binkert.org Stats::Scalar renamedSerializing; 4932348SN/A /** Number of instructions marked as temporarily serializing. */ 4945999Snate@binkert.org Stats::Scalar renamedTempSerializing; 4952348SN/A /** Number of instructions inserted into skid buffers. */ 4965999Snate@binkert.org Stats::Scalar renameSkidInsts; 4971060SN/A}; 4981060SN/A 4992292SN/A#endif // __CPU_O3_RENAME_HH__ 500