rename.hh revision 10378
12391SN/A/* 28931Sandreas.hansson@arm.com * Copyright (c) 2012 ARM Limited 38931Sandreas.hansson@arm.com * All rights reserved 48931Sandreas.hansson@arm.com * 58931Sandreas.hansson@arm.com * The license below extends only to copyright in the software and shall 68931Sandreas.hansson@arm.com * not be construed as granting a license to any other intellectual 78931Sandreas.hansson@arm.com * property including but not limited to intellectual property relating 88931Sandreas.hansson@arm.com * to a hardware implementation of the functionality of the software 98931Sandreas.hansson@arm.com * licensed hereunder. You may use the software subject to the license 108931Sandreas.hansson@arm.com * terms below provided that you ensure that this notice is replicated 118931Sandreas.hansson@arm.com * unmodified and in its entirety in all distributions of the software, 128931Sandreas.hansson@arm.com * modified or unmodified, in source code or in binary form. 138931Sandreas.hansson@arm.com * 142391SN/A * Copyright (c) 2004-2006 The Regents of The University of Michigan 152391SN/A * Copyright (c) 2013 Advanced Micro Devices, Inc. 162391SN/A * All rights reserved. 172391SN/A * 182391SN/A * Redistribution and use in source and binary forms, with or without 192391SN/A * modification, are permitted provided that the following conditions are 202391SN/A * met: redistributions of source code must retain the above copyright 212391SN/A * notice, this list of conditions and the following disclaimer; 222391SN/A * redistributions in binary form must reproduce the above copyright 232391SN/A * notice, this list of conditions and the following disclaimer in the 242391SN/A * documentation and/or other materials provided with the distribution; 252391SN/A * neither the name of the copyright holders nor the names of its 262391SN/A * contributors may be used to endorse or promote products derived from 272391SN/A * this software without specific prior written permission. 282391SN/A * 292391SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302391SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 312391SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322391SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332391SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342391SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352391SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362391SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372391SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382391SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392665SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402665SN/A * 418931Sandreas.hansson@arm.com * Authors: Kevin Lim 422391SN/A */ 432391SN/A 448931Sandreas.hansson@arm.com#ifndef __CPU_O3_RENAME_HH__ 458931Sandreas.hansson@arm.com#define __CPU_O3_RENAME_HH__ 468931Sandreas.hansson@arm.com 472391SN/A#include <list> 482391SN/A 498931Sandreas.hansson@arm.com#include "base/statistics.hh" 508931Sandreas.hansson@arm.com#include "config/the_isa.hh" 512391SN/A#include "cpu/timebuf.hh" 522462SN/A 538931Sandreas.hansson@arm.comstruct DerivO3CPUParams; 548719SN/A 552462SN/A/** 569053Sdam.sunwoo@arm.com * DefaultRename handles both single threaded and SMT rename. Its 579053Sdam.sunwoo@arm.com * width is specified by the parameters; each cycle it tries to rename 589053Sdam.sunwoo@arm.com * that many instructions. It holds onto the rename history of all 598931Sandreas.hansson@arm.com * instructions with destination registers, storing the 608931Sandreas.hansson@arm.com * arch. register, the new physical register, and the old physical 618931Sandreas.hansson@arm.com * register, to allow for undoing of mappings if squashing happens, or 628931Sandreas.hansson@arm.com * freeing up registers upon commit. Rename handles blocking if the 638931Sandreas.hansson@arm.com * ROB, IQ, or LSQ is going to be full. Rename also handles barriers, 648931Sandreas.hansson@arm.com * and does so by stalling on the instruction until the ROB is empty 658931Sandreas.hansson@arm.com * and there are no instructions in flight to the ROB. 668931Sandreas.hansson@arm.com */ 672391SN/Atemplate<class Impl> 686107SN/Aclass DefaultRename 696107SN/A{ 708931Sandreas.hansson@arm.com public: 719235Sandreas.hansson@arm.com // Typedefs from the Impl. 722413SN/A typedef typename Impl::CPUPol CPUPol; 738931Sandreas.hansson@arm.com typedef typename Impl::DynInstPtr DynInstPtr; 748931Sandreas.hansson@arm.com typedef typename Impl::O3CPU O3CPU; 752413SN/A 768931Sandreas.hansson@arm.com // Typedefs from the CPUPol 778931Sandreas.hansson@arm.com typedef typename CPUPol::DecodeStruct DecodeStruct; 782413SN/A typedef typename CPUPol::RenameStruct RenameStruct; 798931Sandreas.hansson@arm.com typedef typename CPUPol::TimeStruct TimeStruct; 808931Sandreas.hansson@arm.com typedef typename CPUPol::FreeList FreeList; 813170SN/A typedef typename CPUPol::RenameMap RenameMap; 823170SN/A // These are used only for initialization. 838931Sandreas.hansson@arm.com typedef typename CPUPol::IEW IEW; 843170SN/A typedef typename CPUPol::Commit Commit; 853170SN/A 863170SN/A // Typedefs from the ISA. 873170SN/A typedef TheISA::RegIndex RegIndex; 883170SN/A 893170SN/A // A deque is used to queue the instructions. Barrier insts must 903170SN/A // be added to the front of the queue, which is the only reason for 915543SN/A // using a deque instead of a queue. (Most other stages use a 925714SN/A // queue) 933170SN/A typedef std::deque<DynInstPtr> InstQueue; 943170SN/A 953170SN/A public: 963170SN/A /** Overall rename status. Used to determine if the CPU can 975714SN/A * deschedule itself due to a lack of activity. 983170SN/A */ 993170SN/A enum RenameStatus { 1008931Sandreas.hansson@arm.com Active, 1018931Sandreas.hansson@arm.com Inactive 1023170SN/A }; 1033170SN/A 1047733SN/A /** Individual thread status. */ 1058931Sandreas.hansson@arm.com enum ThreadStatus { 1067733SN/A Running, 1077733SN/A Idle, 1083170SN/A StartSquash, 1093170SN/A Squashing, 1103170SN/A Blocked, 1113170SN/A Unblocking, 1123170SN/A SerializeStall 1133170SN/A }; 1143170SN/A 1153170SN/A private: 1164626SN/A /** Rename status. */ 1173170SN/A RenameStatus _status; 1183170SN/A 1193170SN/A /** Per-thread status. */ 1203170SN/A ThreadStatus renameStatus[Impl::MaxThreads]; 1214626SN/A 1223170SN/A public: 1233170SN/A /** DefaultRename constructor. */ 1243170SN/A DefaultRename(O3CPU *_cpu, DerivO3CPUParams *params); 1253170SN/A 1263170SN/A /** Returns the name of rename. */ 1273170SN/A std::string name() const; 1283170SN/A 1293170SN/A /** Registers statistics. */ 1304626SN/A void regStats(); 1314626SN/A 1323170SN/A /** Sets the main backwards communication time buffer pointer. */ 1333170SN/A void setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr); 1346102SN/A 1356102SN/A /** Sets pointer to time buffer used to communicate to the next stage. */ 1364040SN/A void setRenameQueue(TimeBuffer<RenameStruct> *rq_ptr); 1373170SN/A 1386102SN/A /** Sets pointer to time buffer coming from decode. */ 1393170SN/A void setDecodeQueue(TimeBuffer<DecodeStruct> *dq_ptr); 1403170SN/A 1414626SN/A /** Sets pointer to IEW stage. Used only for initialization. */ 1423170SN/A void setIEWStage(IEW *iew_stage) 1433170SN/A { iew_ptr = iew_stage; } 1443170SN/A 1458719SN/A /** Sets pointer to commit stage. Used only for initialization. */ 1469053Sdam.sunwoo@arm.com void setCommitStage(Commit *commit_stage) 1478719SN/A { commit_ptr = commit_stage; } 1489053Sdam.sunwoo@arm.com 1498719SN/A private: 1509053Sdam.sunwoo@arm.com /** Pointer to IEW stage. Used only for initialization. */ 1518719SN/A IEW *iew_ptr; 1529053Sdam.sunwoo@arm.com 1538719SN/A /** Pointer to commit stage. Used only for initialization. */ 1549053Sdam.sunwoo@arm.com Commit *commit_ptr; 1558719SN/A 1569053Sdam.sunwoo@arm.com public: 1578719SN/A /** Initializes variables for the stage. */ 1588719SN/A void startupStage(); 1598719SN/A 1608719SN/A /** Sets pointer to list of active threads. */ 1618719SN/A void setActiveThreads(std::list<ThreadID> *at_ptr); 1628719SN/A 1638719SN/A /** Sets pointer to rename maps (per-thread structures). */ 1648719SN/A void setRenameMap(RenameMap rm_ptr[Impl::MaxThreads]); 1658719SN/A 1669053Sdam.sunwoo@arm.com /** Sets pointer to the free list. */ 1679053Sdam.sunwoo@arm.com void setFreeList(FreeList *fl_ptr); 1689053Sdam.sunwoo@arm.com 1699053Sdam.sunwoo@arm.com /** Sets pointer to the scoreboard. */ 1709053Sdam.sunwoo@arm.com void setScoreboard(Scoreboard *_scoreboard); 1719053Sdam.sunwoo@arm.com 1729053Sdam.sunwoo@arm.com /** Perform sanity checks after a drain. */ 1738931Sandreas.hansson@arm.com void drainSanityCheck() const; 1748931Sandreas.hansson@arm.com 1758931Sandreas.hansson@arm.com /** Has the stage drained? */ 1768931Sandreas.hansson@arm.com bool isDrained() const; 1778931Sandreas.hansson@arm.com 1788931Sandreas.hansson@arm.com /** Takes over from another CPU's thread. */ 1798931Sandreas.hansson@arm.com void takeOverFrom(); 1802391SN/A 1812391SN/A /** Squashes all instructions in a thread. */ 1828931Sandreas.hansson@arm.com void squash(const InstSeqNum &squash_seq_num, ThreadID tid); 1838931Sandreas.hansson@arm.com 1848931Sandreas.hansson@arm.com /** Ticks rename, which processes all input signals and attempts to rename 1858931Sandreas.hansson@arm.com * as many instructions as possible. 1868931Sandreas.hansson@arm.com */ 1872391SN/A void tick(); 1889053Sdam.sunwoo@arm.com 1899053Sdam.sunwoo@arm.com /** Debugging function used to dump history buffer of renamings. */ 1909053Sdam.sunwoo@arm.com void dumpHistory(); 1919053Sdam.sunwoo@arm.com 1929053Sdam.sunwoo@arm.com private: 1939053Sdam.sunwoo@arm.com /** Reset this pipeline stage */ 1949053Sdam.sunwoo@arm.com void resetStage(); 1959053Sdam.sunwoo@arm.com 1969053Sdam.sunwoo@arm.com /** Determines what to do based on rename's current status. 1979053Sdam.sunwoo@arm.com * @param status_change rename() sets this variable if there was a status 1989053Sdam.sunwoo@arm.com * change (ie switching from blocking to unblocking). 1999053Sdam.sunwoo@arm.com * @param tid Thread id to rename instructions from. 2009053Sdam.sunwoo@arm.com */ 2014762SN/A void rename(bool &status_change, ThreadID tid); 2024762SN/A 2034762SN/A /** Renames instructions for the given thread. Also handles serializing 2044762SN/A * instructions. 2054762SN/A */ 2064762SN/A void renameInsts(ThreadID tid); 2078931Sandreas.hansson@arm.com 2088931Sandreas.hansson@arm.com /** Inserts unused instructions from a given thread into the skid buffer, 2098931Sandreas.hansson@arm.com * to be renamed once rename unblocks. 2108931Sandreas.hansson@arm.com */ 2118931Sandreas.hansson@arm.com void skidInsert(ThreadID tid); 2129235Sandreas.hansson@arm.com 2132391SN/A /** Separates instructions from decode into individual lists of instructions 2148931Sandreas.hansson@arm.com * sorted by thread. 2158931Sandreas.hansson@arm.com */ 2168931Sandreas.hansson@arm.com void sortInsts(); 2178931Sandreas.hansson@arm.com 2188931Sandreas.hansson@arm.com /** Returns if all of the skid buffers are empty. */ 2199098Sandreas.hansson@arm.com bool skidsEmpty(); 2208923SN/A 2218931Sandreas.hansson@arm.com /** Updates overall rename status based on all of the threads' statuses. */ 2228931Sandreas.hansson@arm.com void updateStatus(); 2238931Sandreas.hansson@arm.com 2248931Sandreas.hansson@arm.com /** Switches rename to blocking, and signals back that rename has become 2258931Sandreas.hansson@arm.com * blocked. 2269098Sandreas.hansson@arm.com * @return Returns true if there is a status change. 2278923SN/A */ 2288931Sandreas.hansson@arm.com bool block(ThreadID tid); 2298931Sandreas.hansson@arm.com 2308931Sandreas.hansson@arm.com /** Switches rename to unblocking if the skid buffer is empty, and signals 2318931Sandreas.hansson@arm.com * back that rename has unblocked. 2328931Sandreas.hansson@arm.com * @return Returns true if there is a status change. 2338931Sandreas.hansson@arm.com */ 2348931Sandreas.hansson@arm.com bool unblock(ThreadID tid); 2352391SN/A 2368931Sandreas.hansson@arm.com /** Executes actual squash, removing squashed instructions. */ 2378931Sandreas.hansson@arm.com void doSquash(const InstSeqNum &squash_seq_num, ThreadID tid); 2388931Sandreas.hansson@arm.com 2398931Sandreas.hansson@arm.com /** Removes a committed instruction's rename history. */ 2408931Sandreas.hansson@arm.com void removeFromHistory(InstSeqNum inst_seq_num, ThreadID tid); 2418931Sandreas.hansson@arm.com 2428931Sandreas.hansson@arm.com /** Renames the source registers of an instruction. */ 2438931Sandreas.hansson@arm.com inline void renameSrcRegs(DynInstPtr &inst, ThreadID tid); 2448931Sandreas.hansson@arm.com 2458931Sandreas.hansson@arm.com /** Renames the destination registers of an instruction. */ 2468931Sandreas.hansson@arm.com inline void renameDestRegs(DynInstPtr &inst, ThreadID tid); 2478931Sandreas.hansson@arm.com 2488931Sandreas.hansson@arm.com /** Calculates the number of free ROB entries for a specific thread. */ 2498931Sandreas.hansson@arm.com inline int calcFreeROBEntries(ThreadID tid); 2508931Sandreas.hansson@arm.com 2518931Sandreas.hansson@arm.com /** Calculates the number of free IQ entries for a specific thread. */ 2528931Sandreas.hansson@arm.com inline int calcFreeIQEntries(ThreadID tid); 2538931Sandreas.hansson@arm.com 2548931Sandreas.hansson@arm.com /** Calculates the number of free LQ entries for a specific thread. */ 2558931Sandreas.hansson@arm.com inline int calcFreeLQEntries(ThreadID tid); 2568931Sandreas.hansson@arm.com 2578931Sandreas.hansson@arm.com /** Calculates the number of free SQ entries for a specific thread. */ 2588931Sandreas.hansson@arm.com inline int calcFreeSQEntries(ThreadID tid); 2598931Sandreas.hansson@arm.com 2608931Sandreas.hansson@arm.com /** Returns the number of valid instructions coming from decode. */ 2618931Sandreas.hansson@arm.com unsigned validInsts(); 2628931Sandreas.hansson@arm.com 2638931Sandreas.hansson@arm.com /** Reads signals telling rename to block/unblock. */ 2648719SN/A void readStallSignals(ThreadID tid); 2658719SN/A 2668931Sandreas.hansson@arm.com /** Checks if any stages are telling rename to block. */ 2678719SN/A bool checkStall(ThreadID tid); 2682391SN/A 2692391SN/A /** Gets the number of free entries for a specific thread. */ 2702497SN/A void readFreeEntries(ThreadID tid); 2712391SN/A 2722391SN/A /** Checks the signals and updates the status. */ 2738931Sandreas.hansson@arm.com bool checkSignalsAndUpdate(ThreadID tid); 274 275 /** Either serializes on the next instruction available in the InstQueue, 276 * or records that it must serialize on the next instruction to enter 277 * rename. 278 * @param inst_list The list of younger, unprocessed instructions for the 279 * thread that has the serializeAfter instruction. 280 * @param tid The thread id. 281 */ 282 void serializeAfter(InstQueue &inst_list, ThreadID tid); 283 284 /** Holds the information for each destination register rename. It holds 285 * the instruction's sequence number, the arch register, the old physical 286 * register for that arch. register, and the new physical register. 287 */ 288 struct RenameHistory { 289 RenameHistory(InstSeqNum _instSeqNum, RegIndex _archReg, 290 PhysRegIndex _newPhysReg, PhysRegIndex _prevPhysReg) 291 : instSeqNum(_instSeqNum), archReg(_archReg), 292 newPhysReg(_newPhysReg), prevPhysReg(_prevPhysReg) 293 { 294 } 295 296 /** The sequence number of the instruction that renamed. */ 297 InstSeqNum instSeqNum; 298 /** The architectural register index that was renamed. */ 299 RegIndex archReg; 300 /** The new physical register that the arch. register is renamed to. */ 301 PhysRegIndex newPhysReg; 302 /** The old physical register that the arch. register was renamed to. */ 303 PhysRegIndex prevPhysReg; 304 }; 305 306 /** A per-thread list of all destination register renames, used to either 307 * undo rename mappings or free old physical registers. 308 */ 309 std::list<RenameHistory> historyBuffer[Impl::MaxThreads]; 310 311 /** Pointer to CPU. */ 312 O3CPU *cpu; 313 314 /** Pointer to main time buffer used for backwards communication. */ 315 TimeBuffer<TimeStruct> *timeBuffer; 316 317 /** Wire to get IEW's output from backwards time buffer. */ 318 typename TimeBuffer<TimeStruct>::wire fromIEW; 319 320 /** Wire to get commit's output from backwards time buffer. */ 321 typename TimeBuffer<TimeStruct>::wire fromCommit; 322 323 /** Wire to write infromation heading to previous stages. */ 324 typename TimeBuffer<TimeStruct>::wire toDecode; 325 326 /** Rename instruction queue. */ 327 TimeBuffer<RenameStruct> *renameQueue; 328 329 /** Wire to write any information heading to IEW. */ 330 typename TimeBuffer<RenameStruct>::wire toIEW; 331 332 /** Decode instruction queue interface. */ 333 TimeBuffer<DecodeStruct> *decodeQueue; 334 335 /** Wire to get decode's output from decode queue. */ 336 typename TimeBuffer<DecodeStruct>::wire fromDecode; 337 338 /** Queue of all instructions coming from decode this cycle. */ 339 InstQueue insts[Impl::MaxThreads]; 340 341 /** Skid buffer between rename and decode. */ 342 InstQueue skidBuffer[Impl::MaxThreads]; 343 344 /** Rename map interface. */ 345 RenameMap *renameMap[Impl::MaxThreads]; 346 347 /** Free list interface. */ 348 FreeList *freeList; 349 350 /** Pointer to the list of active threads. */ 351 std::list<ThreadID> *activeThreads; 352 353 /** Pointer to the scoreboard. */ 354 Scoreboard *scoreboard; 355 356 /** Count of instructions in progress that have been sent off to the IQ 357 * and ROB, but are not yet included in their occupancy counts. 358 */ 359 int instsInProgress[Impl::MaxThreads]; 360 361 /** Count of Load instructions in progress that have been sent off to the IQ 362 * and ROB, but are not yet included in their occupancy counts. 363 */ 364 int loadsInProgress[Impl::MaxThreads]; 365 366 /** Count of Store instructions in progress that have been sent off to the IQ 367 * and ROB, but are not yet included in their occupancy counts. 368 */ 369 int storesInProgress[Impl::MaxThreads]; 370 371 /** Variable that tracks if decode has written to the time buffer this 372 * cycle. Used to tell CPU if there is activity this cycle. 373 */ 374 bool wroteToTimeBuffer; 375 376 /** Structures whose free entries impact the amount of instructions that 377 * can be renamed. 378 */ 379 struct FreeEntries { 380 unsigned iqEntries; 381 unsigned robEntries; 382 unsigned lqEntries; 383 unsigned sqEntries; 384 }; 385 386 /** Per-thread tracking of the number of free entries of back-end 387 * structures. 388 */ 389 FreeEntries freeEntries[Impl::MaxThreads]; 390 391 /** Records if the ROB is empty. In SMT mode the ROB may be dynamically 392 * partitioned between threads, so the ROB must tell rename when it is 393 * empty. 394 */ 395 bool emptyROB[Impl::MaxThreads]; 396 397 /** Source of possible stalls. */ 398 struct Stalls { 399 bool iew; 400 bool commit; 401 }; 402 403 /** Tracks which stages are telling decode to stall. */ 404 Stalls stalls[Impl::MaxThreads]; 405 406 /** The serialize instruction that rename has stalled on. */ 407 DynInstPtr serializeInst[Impl::MaxThreads]; 408 409 /** Records if rename needs to serialize on the next instruction for any 410 * thread. 411 */ 412 bool serializeOnNextInst[Impl::MaxThreads]; 413 414 /** Delay between iew and rename, in ticks. */ 415 int iewToRenameDelay; 416 417 /** Delay between decode and rename, in ticks. */ 418 int decodeToRenameDelay; 419 420 /** Delay between commit and rename, in ticks. */ 421 unsigned commitToRenameDelay; 422 423 /** Rename width, in instructions. */ 424 unsigned renameWidth; 425 426 /** Commit width, in instructions. Used so rename knows how many 427 * instructions might have freed registers in the previous cycle. 428 */ 429 unsigned commitWidth; 430 431 /** The index of the instruction in the time buffer to IEW that rename is 432 * currently using. 433 */ 434 unsigned toIEWIndex; 435 436 /** Whether or not rename needs to block this cycle. */ 437 bool blockThisCycle; 438 439 /** Whether or not rename needs to resume a serialize instruction 440 * after squashing. */ 441 bool resumeSerialize; 442 443 /** Whether or not rename needs to resume clearing out the skidbuffer 444 * after squashing. */ 445 bool resumeUnblocking; 446 447 /** The number of threads active in rename. */ 448 ThreadID numThreads; 449 450 /** The maximum skid buffer size. */ 451 unsigned skidBufferMax; 452 453 PhysRegIndex maxPhysicalRegs; 454 455 /** Enum to record the source of a structure full stall. Can come from 456 * either ROB, IQ, LSQ, and it is priortized in that order. 457 */ 458 enum FullSource { 459 ROB, 460 IQ, 461 LQ, 462 SQ, 463 NONE 464 }; 465 466 /** Function used to increment the stat that corresponds to the source of 467 * the stall. 468 */ 469 inline void incrFullStat(const FullSource &source); 470 471 /** Stat for total number of cycles spent squashing. */ 472 Stats::Scalar renameSquashCycles; 473 /** Stat for total number of cycles spent idle. */ 474 Stats::Scalar renameIdleCycles; 475 /** Stat for total number of cycles spent blocking. */ 476 Stats::Scalar renameBlockCycles; 477 /** Stat for total number of cycles spent stalling for a serializing inst. */ 478 Stats::Scalar renameSerializeStallCycles; 479 /** Stat for total number of cycles spent running normally. */ 480 Stats::Scalar renameRunCycles; 481 /** Stat for total number of cycles spent unblocking. */ 482 Stats::Scalar renameUnblockCycles; 483 /** Stat for total number of renamed instructions. */ 484 Stats::Scalar renameRenamedInsts; 485 /** Stat for total number of squashed instructions that rename discards. */ 486 Stats::Scalar renameSquashedInsts; 487 /** Stat for total number of times that the ROB starts a stall in rename. */ 488 Stats::Scalar renameROBFullEvents; 489 /** Stat for total number of times that the IQ starts a stall in rename. */ 490 Stats::Scalar renameIQFullEvents; 491 /** Stat for total number of times that the LQ starts a stall in rename. */ 492 Stats::Scalar renameLQFullEvents; 493 /** Stat for total number of times that the SQ starts a stall in rename. */ 494 Stats::Scalar renameSQFullEvents; 495 /** Stat for total number of times that rename runs out of free registers 496 * to use to rename. */ 497 Stats::Scalar renameFullRegistersEvents; 498 /** Stat for total number of renamed destination registers. */ 499 Stats::Scalar renameRenamedOperands; 500 /** Stat for total number of source register rename lookups. */ 501 Stats::Scalar renameRenameLookups; 502 Stats::Scalar intRenameLookups; 503 Stats::Scalar fpRenameLookups; 504 /** Stat for total number of committed renaming mappings. */ 505 Stats::Scalar renameCommittedMaps; 506 /** Stat for total number of mappings that were undone due to a squash. */ 507 Stats::Scalar renameUndoneMaps; 508 /** Number of serialize instructions handled. */ 509 Stats::Scalar renamedSerializing; 510 /** Number of instructions marked as temporarily serializing. */ 511 Stats::Scalar renamedTempSerializing; 512 /** Number of instructions inserted into skid buffers. */ 513 Stats::Scalar renameSkidInsts; 514}; 515 516#endif // __CPU_O3_RENAME_HH__ 517