rename.hh revision 6658
11689SN/A/*
22329SN/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_RENAME_HH__
322292SN/A#define __CPU_O3_RENAME_HH__
331060SN/A
341060SN/A#include <list>
351060SN/A
361461SN/A#include "base/statistics.hh"
371060SN/A#include "base/timebuf.hh"
386658Snate@binkert.org#include "config/the_isa.hh"
391060SN/A
405529Snate@binkert.orgclass DerivO3CPUParams;
415529Snate@binkert.org
422292SN/A/**
432329SN/A * DefaultRename handles both single threaded and SMT rename. Its
442329SN/A * width is specified by the parameters; each cycle it tries to rename
452329SN/A * that many instructions. It holds onto the rename history of all
462329SN/A * instructions with destination registers, storing the
472329SN/A * arch. register, the new physical register, and the old physical
482329SN/A * register, to allow for undoing of mappings if squashing happens, or
492329SN/A * freeing up registers upon commit. Rename handles blocking if the
502329SN/A * ROB, IQ, or LSQ is going to be full. Rename also handles barriers,
512329SN/A * and does so by stalling on the instruction until the ROB is empty
522329SN/A * and there are no instructions in flight to the ROB.
532292SN/A */
541060SN/Atemplate<class Impl>
552292SN/Aclass DefaultRename
561060SN/A{
571060SN/A  public:
581060SN/A    // Typedefs from the Impl.
591060SN/A    typedef typename Impl::CPUPol CPUPol;
601061SN/A    typedef typename Impl::DynInstPtr DynInstPtr;
612733Sktlim@umich.edu    typedef typename Impl::O3CPU O3CPU;
621060SN/A
632292SN/A    // Typedefs from the CPUPol
641061SN/A    typedef typename CPUPol::DecodeStruct DecodeStruct;
651061SN/A    typedef typename CPUPol::RenameStruct RenameStruct;
661061SN/A    typedef typename CPUPol::TimeStruct TimeStruct;
671060SN/A    typedef typename CPUPol::FreeList FreeList;
681060SN/A    typedef typename CPUPol::RenameMap RenameMap;
692292SN/A    // These are used only for initialization.
702292SN/A    typedef typename CPUPol::IEW IEW;
712292SN/A    typedef typename CPUPol::Commit Commit;
721060SN/A
731060SN/A    // Typedefs from the ISA.
742107SN/A    typedef TheISA::RegIndex RegIndex;
751060SN/A
762329SN/A    // A list is used to queue the instructions.  Barrier insts must
772329SN/A    // be added to the front of the list, which is the only reason for
782329SN/A    // using a list instead of a queue. (Most other stages use a
792329SN/A    // queue)
802292SN/A    typedef std::list<DynInstPtr> InstQueue;
812935Sksewell@umich.edu    typedef typename std::list<DynInstPtr>::iterator ListIt;
822292SN/A
831060SN/A  public:
842329SN/A    /** Overall rename status. Used to determine if the CPU can
852329SN/A     * deschedule itself due to a lack of activity.
862292SN/A     */
872292SN/A    enum RenameStatus {
882292SN/A        Active,
892292SN/A        Inactive
902292SN/A    };
912292SN/A
922292SN/A    /** Individual thread status. */
932292SN/A    enum ThreadStatus {
941060SN/A        Running,
951060SN/A        Idle,
962292SN/A        StartSquash,
971060SN/A        Squashing,
981060SN/A        Blocked,
991060SN/A        Unblocking,
1002301SN/A        SerializeStall
1011060SN/A    };
1021060SN/A
1031060SN/A  private:
1042292SN/A    /** Rename status. */
1052292SN/A    RenameStatus _status;
1062292SN/A
1072292SN/A    /** Per-thread status. */
1082292SN/A    ThreadStatus renameStatus[Impl::MaxThreads];
1091060SN/A
1101060SN/A  public:
1112292SN/A    /** DefaultRename constructor. */
1125529Snate@binkert.org    DefaultRename(O3CPU *_cpu, DerivO3CPUParams *params);
1131060SN/A
1142292SN/A    /** Returns the name of rename. */
1152292SN/A    std::string name() const;
1162292SN/A
1172292SN/A    /** Registers statistics. */
1181062SN/A    void regStats();
1191062SN/A
1202292SN/A    /** Sets the main backwards communication time buffer pointer. */
1211060SN/A    void setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr);
1221060SN/A
1232292SN/A    /** Sets pointer to time buffer used to communicate to the next stage. */
1241060SN/A    void setRenameQueue(TimeBuffer<RenameStruct> *rq_ptr);
1251060SN/A
1262292SN/A    /** Sets pointer to time buffer coming from decode. */
1271060SN/A    void setDecodeQueue(TimeBuffer<DecodeStruct> *dq_ptr);
1281060SN/A
1292292SN/A    /** Sets pointer to IEW stage. Used only for initialization. */
1302292SN/A    void setIEWStage(IEW *iew_stage)
1312292SN/A    { iew_ptr = iew_stage; }
1321060SN/A
1332292SN/A    /** Sets pointer to commit stage. Used only for initialization. */
1342292SN/A    void setCommitStage(Commit *commit_stage)
1352292SN/A    { commit_ptr = commit_stage; }
1362292SN/A
1372292SN/A  private:
1382292SN/A    /** Pointer to IEW stage. Used only for initialization. */
1392292SN/A    IEW *iew_ptr;
1402292SN/A
1412292SN/A    /** Pointer to commit stage. Used only for initialization. */
1422292SN/A    Commit *commit_ptr;
1432292SN/A
1442292SN/A  public:
1452292SN/A    /** Initializes variables for the stage. */
1462292SN/A    void initStage();
1472292SN/A
1482292SN/A    /** Sets pointer to list of active threads. */
1496221Snate@binkert.org    void setActiveThreads(std::list<ThreadID> *at_ptr);
1502292SN/A
1512292SN/A    /** Sets pointer to rename maps (per-thread structures). */
1522292SN/A    void setRenameMap(RenameMap rm_ptr[Impl::MaxThreads]);
1532292SN/A
1542292SN/A    /** Sets pointer to the free list. */
1551060SN/A    void setFreeList(FreeList *fl_ptr);
1561060SN/A
1572292SN/A    /** Sets pointer to the scoreboard. */
1582292SN/A    void setScoreboard(Scoreboard *_scoreboard);
1592292SN/A
1602843Sktlim@umich.edu    /** Drains the rename stage. */
1612863Sktlim@umich.edu    bool drain();
1622843Sktlim@umich.edu
1632843Sktlim@umich.edu    /** Resumes execution after a drain. */
1642843Sktlim@umich.edu    void resume() { }
1652843Sktlim@umich.edu
1662348SN/A    /** Switches out the rename stage. */
1672307SN/A    void switchOut();
1682307SN/A
1692348SN/A    /** Takes over from another CPU's thread. */
1702307SN/A    void takeOverFrom();
1712307SN/A
1722292SN/A    /** Squashes all instructions in a thread. */
1736221Snate@binkert.org    void squash(const InstSeqNum &squash_seq_num, ThreadID tid);
1742292SN/A
1752292SN/A    /** Ticks rename, which processes all input signals and attempts to rename
1762292SN/A     * as many instructions as possible.
1772292SN/A     */
1782292SN/A    void tick();
1792292SN/A
1802292SN/A    /** Debugging function used to dump history buffer of renamings. */
1811060SN/A    void dumpHistory();
1821060SN/A
1832292SN/A  private:
1842292SN/A    /** Determines what to do based on rename's current status.
1852292SN/A     * @param status_change rename() sets this variable if there was a status
1862292SN/A     * change (ie switching from blocking to unblocking).
1872292SN/A     * @param tid Thread id to rename instructions from.
1882292SN/A     */
1896221Snate@binkert.org    void rename(bool &status_change, ThreadID tid);
1901060SN/A
1912292SN/A    /** Renames instructions for the given thread. Also handles serializing
1922292SN/A     * instructions.
1932292SN/A     */
1946221Snate@binkert.org    void renameInsts(ThreadID tid);
1951060SN/A
1962292SN/A    /** Inserts unused instructions from a given thread into the skid buffer,
1972292SN/A     * to be renamed once rename unblocks.
1982292SN/A     */
1996221Snate@binkert.org    void skidInsert(ThreadID tid);
2001060SN/A
2012292SN/A    /** Separates instructions from decode into individual lists of instructions
2022292SN/A     * sorted by thread.
2032292SN/A     */
2042292SN/A    void sortInsts();
2051060SN/A
2062292SN/A    /** Returns if all of the skid buffers are empty. */
2072292SN/A    bool skidsEmpty();
2081060SN/A
2092292SN/A    /** Updates overall rename status based on all of the threads' statuses. */
2102292SN/A    void updateStatus();
2111060SN/A
2122292SN/A    /** Switches rename to blocking, and signals back that rename has become
2132292SN/A     * blocked.
2142292SN/A     * @return Returns true if there is a status change.
2152292SN/A     */
2166221Snate@binkert.org    bool block(ThreadID tid);
2171060SN/A
2182292SN/A    /** Switches rename to unblocking if the skid buffer is empty, and signals
2192292SN/A     * back that rename has unblocked.
2202292SN/A     * @return Returns true if there is a status change.
2212292SN/A     */
2226221Snate@binkert.org    bool unblock(ThreadID tid);
2231061SN/A
2242292SN/A    /** Executes actual squash, removing squashed instructions. */
2256221Snate@binkert.org    void doSquash(const InstSeqNum &squash_seq_num, ThreadID tid);
2261061SN/A
2272292SN/A    /** Removes a committed instruction's rename history. */
2286221Snate@binkert.org    void removeFromHistory(InstSeqNum inst_seq_num, ThreadID tid);
2291061SN/A
2302292SN/A    /** Renames the source registers of an instruction. */
2316221Snate@binkert.org    inline void renameSrcRegs(DynInstPtr &inst, ThreadID tid);
2321061SN/A
2332292SN/A    /** Renames the destination registers of an instruction. */
2346221Snate@binkert.org    inline void renameDestRegs(DynInstPtr &inst, ThreadID tid);
2352292SN/A
2362292SN/A    /** Calculates the number of free ROB entries for a specific thread. */
2376221Snate@binkert.org    inline int calcFreeROBEntries(ThreadID tid);
2382292SN/A
2392292SN/A    /** Calculates the number of free IQ entries for a specific thread. */
2406221Snate@binkert.org    inline int calcFreeIQEntries(ThreadID tid);
2412292SN/A
2422292SN/A    /** Calculates the number of free LSQ entries for a specific thread. */
2436221Snate@binkert.org    inline int calcFreeLSQEntries(ThreadID tid);
2442292SN/A
2452292SN/A    /** Returns the number of valid instructions coming from decode. */
2462292SN/A    unsigned validInsts();
2472292SN/A
2482292SN/A    /** Reads signals telling rename to block/unblock. */
2496221Snate@binkert.org    void readStallSignals(ThreadID tid);
2502292SN/A
2512292SN/A    /** Checks if any stages are telling rename to block. */
2526221Snate@binkert.org    bool checkStall(ThreadID tid);
2532292SN/A
2542348SN/A    /** Gets the number of free entries for a specific thread. */
2556221Snate@binkert.org    void readFreeEntries(ThreadID tid);
2562292SN/A
2572348SN/A    /** Checks the signals and updates the status. */
2586221Snate@binkert.org    bool checkSignalsAndUpdate(ThreadID tid);
2592292SN/A
2602292SN/A    /** Either serializes on the next instruction available in the InstQueue,
2612292SN/A     * or records that it must serialize on the next instruction to enter
2622292SN/A     * rename.
2632292SN/A     * @param inst_list The list of younger, unprocessed instructions for the
2642292SN/A     * thread that has the serializeAfter instruction.
2652292SN/A     * @param tid The thread id.
2662292SN/A     */
2676221Snate@binkert.org    void serializeAfter(InstQueue &inst_list, ThreadID tid);
2682292SN/A
2692292SN/A    /** Holds the information for each destination register rename. It holds
2702292SN/A     * the instruction's sequence number, the arch register, the old physical
2712292SN/A     * register for that arch. register, and the new physical register.
2721060SN/A     */
2731060SN/A    struct RenameHistory {
2741060SN/A        RenameHistory(InstSeqNum _instSeqNum, RegIndex _archReg,
2751060SN/A                      PhysRegIndex _newPhysReg, PhysRegIndex _prevPhysReg)
2761060SN/A            : instSeqNum(_instSeqNum), archReg(_archReg),
2772292SN/A              newPhysReg(_newPhysReg), prevPhysReg(_prevPhysReg)
2781060SN/A        {
2791060SN/A        }
2801060SN/A
2812292SN/A        /** The sequence number of the instruction that renamed. */
2821060SN/A        InstSeqNum instSeqNum;
2832292SN/A        /** The architectural register index that was renamed. */
2841060SN/A        RegIndex archReg;
2852292SN/A        /** The new physical register that the arch. register is renamed to. */
2861060SN/A        PhysRegIndex newPhysReg;
2872292SN/A        /** The old physical register that the arch. register was renamed to. */
2881060SN/A        PhysRegIndex prevPhysReg;
2891060SN/A    };
2901060SN/A
2912292SN/A    /** A per-thread list of all destination register renames, used to either
2922292SN/A     * undo rename mappings or free old physical registers.
2932292SN/A     */
2942292SN/A    std::list<RenameHistory> historyBuffer[Impl::MaxThreads];
2951060SN/A
2962292SN/A    /** Pointer to CPU. */
2972733Sktlim@umich.edu    O3CPU *cpu;
2981060SN/A
2992292SN/A    /** Pointer to main time buffer used for backwards communication. */
3001060SN/A    TimeBuffer<TimeStruct> *timeBuffer;
3011060SN/A
3021060SN/A    /** Wire to get IEW's output from backwards time buffer. */
3031060SN/A    typename TimeBuffer<TimeStruct>::wire fromIEW;
3041060SN/A
3051060SN/A    /** Wire to get commit's output from backwards time buffer. */
3061060SN/A    typename TimeBuffer<TimeStruct>::wire fromCommit;
3071060SN/A
3081060SN/A    /** Wire to write infromation heading to previous stages. */
3091060SN/A    typename TimeBuffer<TimeStruct>::wire toDecode;
3101060SN/A
3111060SN/A    /** Rename instruction queue. */
3121060SN/A    TimeBuffer<RenameStruct> *renameQueue;
3131060SN/A
3141060SN/A    /** Wire to write any information heading to IEW. */
3151060SN/A    typename TimeBuffer<RenameStruct>::wire toIEW;
3161060SN/A
3171060SN/A    /** Decode instruction queue interface. */
3181060SN/A    TimeBuffer<DecodeStruct> *decodeQueue;
3191060SN/A
3201060SN/A    /** Wire to get decode's output from decode queue. */
3211060SN/A    typename TimeBuffer<DecodeStruct>::wire fromDecode;
3221060SN/A
3232292SN/A    /** Queue of all instructions coming from decode this cycle. */
3242292SN/A    InstQueue insts[Impl::MaxThreads];
3252292SN/A
3261060SN/A    /** Skid buffer between rename and decode. */
3272292SN/A    InstQueue skidBuffer[Impl::MaxThreads];
3281060SN/A
3291060SN/A    /** Rename map interface. */
3302292SN/A    RenameMap *renameMap[Impl::MaxThreads];
3311060SN/A
3321060SN/A    /** Free list interface. */
3331060SN/A    FreeList *freeList;
3341060SN/A
3352292SN/A    /** Pointer to the list of active threads. */
3366221Snate@binkert.org    std::list<ThreadID> *activeThreads;
3372292SN/A
3382292SN/A    /** Pointer to the scoreboard. */
3392292SN/A    Scoreboard *scoreboard;
3402292SN/A
3412292SN/A    /** Count of instructions in progress that have been sent off to the IQ
3422292SN/A     * and ROB, but are not yet included in their occupancy counts.
3432292SN/A     */
3442292SN/A    int instsInProgress[Impl::MaxThreads];
3452292SN/A
3462292SN/A    /** Variable that tracks if decode has written to the time buffer this
3472292SN/A     * cycle. Used to tell CPU if there is activity this cycle.
3482292SN/A     */
3492292SN/A    bool wroteToTimeBuffer;
3502292SN/A
3512292SN/A    /** Structures whose free entries impact the amount of instructions that
3522292SN/A     * can be renamed.
3532292SN/A     */
3542292SN/A    struct FreeEntries {
3552292SN/A        unsigned iqEntries;
3562292SN/A        unsigned lsqEntries;
3572292SN/A        unsigned robEntries;
3582292SN/A    };
3592292SN/A
3602292SN/A    /** Per-thread tracking of the number of free entries of back-end
3612292SN/A     * structures.
3622292SN/A     */
3632292SN/A    FreeEntries freeEntries[Impl::MaxThreads];
3642292SN/A
3652292SN/A    /** Records if the ROB is empty. In SMT mode the ROB may be dynamically
3662292SN/A     * partitioned between threads, so the ROB must tell rename when it is
3672292SN/A     * empty.
3682292SN/A     */
3692292SN/A    bool emptyROB[Impl::MaxThreads];
3702292SN/A
3712292SN/A    /** Source of possible stalls. */
3722292SN/A    struct Stalls {
3732292SN/A        bool iew;
3742292SN/A        bool commit;
3752292SN/A    };
3762292SN/A
3772292SN/A    /** Tracks which stages are telling decode to stall. */
3782292SN/A    Stalls stalls[Impl::MaxThreads];
3792292SN/A
3802301SN/A    /** The serialize instruction that rename has stalled on. */
3812301SN/A    DynInstPtr serializeInst[Impl::MaxThreads];
3822292SN/A
3832292SN/A    /** Records if rename needs to serialize on the next instruction for any
3842292SN/A     * thread.
3852292SN/A     */
3862292SN/A    bool serializeOnNextInst[Impl::MaxThreads];
3872292SN/A
3881060SN/A    /** Delay between iew and rename, in ticks. */
3891060SN/A    int iewToRenameDelay;
3901060SN/A
3911060SN/A    /** Delay between decode and rename, in ticks. */
3921060SN/A    int decodeToRenameDelay;
3931060SN/A
3941060SN/A    /** Delay between commit and rename, in ticks. */
3951060SN/A    unsigned commitToRenameDelay;
3961060SN/A
3971060SN/A    /** Rename width, in instructions. */
3981060SN/A    unsigned renameWidth;
3991060SN/A
4001060SN/A    /** Commit width, in instructions.  Used so rename knows how many
4011060SN/A     *  instructions might have freed registers in the previous cycle.
4021060SN/A     */
4031060SN/A    unsigned commitWidth;
4041061SN/A
4052292SN/A    /** The index of the instruction in the time buffer to IEW that rename is
4062292SN/A     * currently using.
4071061SN/A     */
4082292SN/A    unsigned toIEWIndex;
4091062SN/A
4102292SN/A    /** Whether or not rename needs to block this cycle. */
4112292SN/A    bool blockThisCycle;
4122292SN/A
4133788Sgblack@eecs.umich.edu    /** Whether or not rename needs to resume a serialize instruction
4143788Sgblack@eecs.umich.edu     * after squashing. */
4153788Sgblack@eecs.umich.edu    bool resumeSerialize;
4163788Sgblack@eecs.umich.edu
4173798Sgblack@eecs.umich.edu    /** Whether or not rename needs to resume clearing out the skidbuffer
4183798Sgblack@eecs.umich.edu     * after squashing. */
4193798Sgblack@eecs.umich.edu    bool resumeUnblocking;
4203798Sgblack@eecs.umich.edu
4212292SN/A    /** The number of threads active in rename. */
4226221Snate@binkert.org    ThreadID numThreads;
4232292SN/A
4242292SN/A    /** The maximum skid buffer size. */
4252292SN/A    unsigned skidBufferMax;
4262292SN/A
4272361SN/A    PhysRegIndex maxPhysicalRegs;
4282361SN/A
4292292SN/A    /** Enum to record the source of a structure full stall.  Can come from
4302292SN/A     * either ROB, IQ, LSQ, and it is priortized in that order.
4312292SN/A     */
4322292SN/A    enum FullSource {
4332292SN/A        ROB,
4342292SN/A        IQ,
4352292SN/A        LSQ,
4362292SN/A        NONE
4372292SN/A    };
4382292SN/A
4392292SN/A    /** Function used to increment the stat that corresponds to the source of
4402292SN/A     * the stall.
4412292SN/A     */
4422292SN/A    inline void incrFullStat(const FullSource &source);
4432292SN/A
4442292SN/A    /** Stat for total number of cycles spent squashing. */
4455999Snate@binkert.org    Stats::Scalar renameSquashCycles;
4462292SN/A    /** Stat for total number of cycles spent idle. */
4475999Snate@binkert.org    Stats::Scalar renameIdleCycles;
4482292SN/A    /** Stat for total number of cycles spent blocking. */
4495999Snate@binkert.org    Stats::Scalar renameBlockCycles;
4502301SN/A    /** Stat for total number of cycles spent stalling for a serializing inst. */
4515999Snate@binkert.org    Stats::Scalar renameSerializeStallCycles;
4522292SN/A    /** Stat for total number of cycles spent running normally. */
4535999Snate@binkert.org    Stats::Scalar renameRunCycles;
4542292SN/A    /** Stat for total number of cycles spent unblocking. */
4555999Snate@binkert.org    Stats::Scalar renameUnblockCycles;
4562292SN/A    /** Stat for total number of renamed instructions. */
4575999Snate@binkert.org    Stats::Scalar renameRenamedInsts;
4582292SN/A    /** Stat for total number of squashed instructions that rename discards. */
4595999Snate@binkert.org    Stats::Scalar renameSquashedInsts;
4602292SN/A    /** Stat for total number of times that the ROB starts a stall in rename. */
4615999Snate@binkert.org    Stats::Scalar renameROBFullEvents;
4622292SN/A    /** Stat for total number of times that the IQ starts a stall in rename. */
4635999Snate@binkert.org    Stats::Scalar renameIQFullEvents;
4642292SN/A    /** Stat for total number of times that the LSQ starts a stall in rename. */
4655999Snate@binkert.org    Stats::Scalar renameLSQFullEvents;
4662292SN/A    /** Stat for total number of times that rename runs out of free registers
4672292SN/A     * to use to rename. */
4685999Snate@binkert.org    Stats::Scalar renameFullRegistersEvents;
4692292SN/A    /** Stat for total number of renamed destination registers. */
4705999Snate@binkert.org    Stats::Scalar renameRenamedOperands;
4712292SN/A    /** Stat for total number of source register rename lookups. */
4725999Snate@binkert.org    Stats::Scalar renameRenameLookups;
4732292SN/A    /** Stat for total number of committed renaming mappings. */
4745999Snate@binkert.org    Stats::Scalar renameCommittedMaps;
4752292SN/A    /** Stat for total number of mappings that were undone due to a squash. */
4765999Snate@binkert.org    Stats::Scalar renameUndoneMaps;
4772348SN/A    /** Number of serialize instructions handled. */
4785999Snate@binkert.org    Stats::Scalar renamedSerializing;
4792348SN/A    /** Number of instructions marked as temporarily serializing. */
4805999Snate@binkert.org    Stats::Scalar renamedTempSerializing;
4812348SN/A    /** Number of instructions inserted into skid buffers. */
4825999Snate@binkert.org    Stats::Scalar renameSkidInsts;
4831060SN/A};
4841060SN/A
4852292SN/A#endif // __CPU_O3_RENAME_HH__
486