gem5  v20.1.0.0
rename.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012, 2017 ARM Limited
3  * All rights reserved
4  *
5  * The license below extends only to copyright in the software and shall
6  * not be construed as granting a license to any other intellectual
7  * property including but not limited to intellectual property relating
8  * to a hardware implementation of the functionality of the software
9  * licensed hereunder. You may use the software subject to the license
10  * terms below provided that you ensure that this notice is replicated
11  * unmodified and in its entirety in all distributions of the software,
12  * modified or unmodified, in source code or in binary form.
13  *
14  * Copyright (c) 2004-2006 The Regents of The University of Michigan
15  * Copyright (c) 2013 Advanced Micro Devices, Inc.
16  * All rights reserved.
17  *
18  * Redistribution and use in source and binary forms, with or without
19  * modification, are permitted provided that the following conditions are
20  * met: redistributions of source code must retain the above copyright
21  * notice, this list of conditions and the following disclaimer;
22  * redistributions in binary form must reproduce the above copyright
23  * notice, this list of conditions and the following disclaimer in the
24  * documentation and/or other materials provided with the distribution;
25  * neither the name of the copyright holders nor the names of its
26  * contributors may be used to endorse or promote products derived from
27  * this software without specific prior written permission.
28  *
29  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40  */
41 
42 #ifndef __CPU_O3_RENAME_HH__
43 #define __CPU_O3_RENAME_HH__
44 
45 #include <list>
46 #include <utility>
47 
48 #include "base/statistics.hh"
49 #include "config/the_isa.hh"
50 #include "cpu/timebuf.hh"
51 #include "sim/probe/probe.hh"
52 
53 struct DerivO3CPUParams;
54 
67 template<class Impl>
69 {
70  public:
71  // Typedefs from the Impl.
72  typedef typename Impl::CPUPol CPUPol;
73  typedef typename Impl::DynInstPtr DynInstPtr;
74  typedef typename Impl::O3CPU O3CPU;
75 
76  // Typedefs from the CPUPol
77  typedef typename CPUPol::DecodeStruct DecodeStruct;
78  typedef typename CPUPol::RenameStruct RenameStruct;
79  typedef typename CPUPol::TimeStruct TimeStruct;
80  typedef typename CPUPol::FreeList FreeList;
81  typedef typename CPUPol::RenameMap RenameMap;
82  // These are used only for initialization.
83  typedef typename CPUPol::IEW IEW;
84  typedef typename CPUPol::Commit Commit;
85 
86  // A deque is used to queue the instructions. Barrier insts must
87  // be added to the front of the queue, which is the only reason for
88  // using a deque instead of a queue. (Most other stages use a
89  // queue)
91 
92  public:
96  enum RenameStatus {
99  };
100 
110  };
111 
112  private:
115 
117  ThreadStatus renameStatus[Impl::MaxThreads];
118 
128 
129  public:
131  DefaultRename(O3CPU *_cpu, DerivO3CPUParams *params);
132 
134  std::string name() const;
135 
137  void regProbePoints();
138 
141 
144 
147 
149  void setIEWStage(IEW *iew_stage)
150  { iew_ptr = iew_stage; }
151 
153  void setCommitStage(Commit *commit_stage)
154  { commit_ptr = commit_stage; }
155 
156  private:
159 
162 
163  public:
165  void startupStage();
166 
168  void clearStates(ThreadID tid);
169 
172 
174  void setRenameMap(RenameMap rm_ptr[Impl::MaxThreads]);
175 
177  void setFreeList(FreeList *fl_ptr);
178 
180  void setScoreboard(Scoreboard *_scoreboard);
181 
183  void drainSanityCheck() const;
184 
186  bool isDrained() const;
187 
189  void takeOverFrom();
190 
192  void squash(const InstSeqNum &squash_seq_num, ThreadID tid);
193 
197  void tick();
198 
200  void dumpHistory();
201 
202  private:
204  void resetStage();
205 
211  void rename(bool &status_change, ThreadID tid);
212 
216  void renameInsts(ThreadID tid);
217 
221  void skidInsert(ThreadID tid);
222 
226  void sortInsts();
227 
229  bool skidsEmpty();
230 
232  void updateStatus();
233 
238  bool block(ThreadID tid);
239 
244  bool unblock(ThreadID tid);
245 
247  void doSquash(const InstSeqNum &squash_seq_num, ThreadID tid);
248 
250  void removeFromHistory(InstSeqNum inst_seq_num, ThreadID tid);
251 
253  inline void renameSrcRegs(const DynInstPtr &inst, ThreadID tid);
254 
256  inline void renameDestRegs(const DynInstPtr &inst, ThreadID tid);
257 
259  inline int calcFreeROBEntries(ThreadID tid);
260 
262  inline int calcFreeIQEntries(ThreadID tid);
263 
265  inline int calcFreeLQEntries(ThreadID tid);
266 
268  inline int calcFreeSQEntries(ThreadID tid);
269 
271  unsigned validInsts();
272 
274  void readStallSignals(ThreadID tid);
275 
277  bool checkStall(ThreadID tid);
278 
280  void readFreeEntries(ThreadID tid);
281 
284 
292  void serializeAfter(InstQueue &inst_list, ThreadID tid);
293 
298  struct RenameHistory {
299  RenameHistory(InstSeqNum _instSeqNum, const RegId& _archReg,
300  PhysRegIdPtr _newPhysReg,
301  PhysRegIdPtr _prevPhysReg)
302  : instSeqNum(_instSeqNum), archReg(_archReg),
303  newPhysReg(_newPhysReg), prevPhysReg(_prevPhysReg)
304  {
305  }
306 
316  };
317 
322 
325 
328 
331 
334 
337 
340 
343 
346 
349 
351  InstQueue insts[Impl::MaxThreads];
352 
354  InstQueue skidBuffer[Impl::MaxThreads];
355 
357  RenameMap *renameMap[Impl::MaxThreads];
358 
361 
364 
367 
371  int instsInProgress[Impl::MaxThreads];
372 
376  int loadsInProgress[Impl::MaxThreads];
377 
381  int storesInProgress[Impl::MaxThreads];
382 
387 
391  struct FreeEntries {
392  unsigned iqEntries;
393  unsigned robEntries;
394  unsigned lqEntries;
395  unsigned sqEntries;
396  };
397 
401  FreeEntries freeEntries[Impl::MaxThreads];
402 
407  bool emptyROB[Impl::MaxThreads];
408 
410  struct Stalls {
411  bool iew;
412  bool commit;
413  };
414 
416  Stalls stalls[Impl::MaxThreads];
417 
419  DynInstPtr serializeInst[Impl::MaxThreads];
420 
424  bool serializeOnNextInst[Impl::MaxThreads];
425 
428 
431 
434 
436  unsigned renameWidth;
437 
441  unsigned commitWidth;
442 
446  unsigned toIEWIndex;
447 
450 
454 
458 
461 
463  unsigned skidBufferMax;
464 
468  enum FullSource {
470  IQ,
471  LQ,
472  SQ,
474  };
475 
479  inline void incrFullStat(const FullSource &source);
480 
481  struct RenameStats : public Stats::Group {
482  RenameStats(Stats::Group *parent);
483 
536  } stats;
537 };
538 
539 #endif // __CPU_O3_RENAME_HH__
DefaultRename::rename
void rename(bool &status_change, ThreadID tid)
Determines what to do based on rename's current status.
Definition: rename_impl.hh:456
DefaultRename::skidInsert
void skidInsert(ThreadID tid)
Inserts unused instructions from a given thread into the skid buffer, to be renamed once rename unblo...
Definition: rename_impl.hh:766
DefaultRename::decodeToRenameDelay
int decodeToRenameDelay
Delay between decode and rename, in ticks.
Definition: rename.hh:430
DefaultRename::checkStall
bool checkStall(ThreadID tid)
Checks if any stages are telling rename to block.
Definition: rename_impl.hh:1228
DefaultRename::skidsEmpty
bool skidsEmpty()
Returns if all of the skid buffers are empty.
Definition: rename_impl.hh:817
DefaultRename::freeEntries
FreeEntries freeEntries[Impl::MaxThreads]
Per-thread tracking of the number of free entries of back-end structures.
Definition: rename.hh:401
DefaultRename::RenameHistory::RenameHistory
RenameHistory(InstSeqNum _instSeqNum, const RegId &_archReg, PhysRegIdPtr _newPhysReg, PhysRegIdPtr _prevPhysReg)
Definition: rename.hh:299
DefaultRename::RenameStats::serializeStallCycles
Stats::Scalar serializeStallCycles
Stat for total number of cycles spent stalling for a serializing inst.
Definition: rename.hh:492
DefaultRename::skidBufferMax
unsigned skidBufferMax
The maximum skid buffer size.
Definition: rename.hh:463
DefaultRename::RenameStats::renamedInsts
Stats::Scalar renamedInsts
Stat for total number of renamed instructions.
Definition: rename.hh:498
DefaultRename::calcFreeIQEntries
int calcFreeIQEntries(ThreadID tid)
Calculates the number of free IQ entries for a specific thread.
Definition: rename_impl.hh:1162
DefaultRename::RenameStats::skidInsts
Stats::Scalar skidInsts
Number of instructions inserted into skid buffers.
Definition: rename.hh:535
DefaultRename::RenameHistory::archReg
RegId archReg
The architectural register index that was renamed.
Definition: rename.hh:310
DefaultRename::Blocked
@ Blocked
Definition: rename.hh:107
DefaultRename::dumpHistory
void dumpHistory()
Debugging function used to dump history buffer of renamings.
Definition: rename_impl.hh:1433
DefaultRename::tick
void tick()
Ticks rename, which processes all input signals and attempts to rename as many instructions as possib...
Definition: rename_impl.hh:392
DefaultRename::storesInProgress
int storesInProgress[Impl::MaxThreads]
Count of Store instructions in progress that have been sent off to the IQ and ROB,...
Definition: rename.hh:381
DefaultRename::setDecodeQueue
void setDecodeQueue(TimeBuffer< DecodeStruct > *dq_ptr)
Sets pointer to time buffer coming from decode.
Definition: rename_impl.hh:205
ThreadID
int16_t ThreadID
Thread index/ID type.
Definition: types.hh:227
DefaultRename::emptyROB
bool emptyROB[Impl::MaxThreads]
Records if the ROB is empty.
Definition: rename.hh:407
DefaultRename::insts
InstQueue insts[Impl::MaxThreads]
Queue of all instructions coming from decode this cycle.
Definition: rename.hh:351
DefaultRename::FreeEntries::robEntries
unsigned robEntries
Definition: rename.hh:393
DefaultRename::FreeEntries::iqEntries
unsigned iqEntries
Definition: rename.hh:392
DefaultRename::removeFromHistory
void removeFromHistory(InstSeqNum inst_seq_num, ThreadID tid)
Removes a committed instruction's rename history.
Definition: rename_impl.hh:978
DefaultRename::setFreeList
void setFreeList(FreeList *fl_ptr)
Sets pointer to the free list.
Definition: rename_impl.hh:290
DefaultRename::RenameStats::tempSerializing
Stats::Scalar tempSerializing
Number of instructions marked as temporarily serializing.
Definition: rename.hh:533
DefaultRename::toDecode
TimeBuffer< TimeStruct >::wire toDecode
Wire to write infromation heading to previous stages.
Definition: rename.hh:336
DefaultRename::RenameStats::blockCycles
Stats::Scalar blockCycles
Stat for total number of cycles spent blocking.
Definition: rename.hh:489
DefaultRename::Commit
CPUPol::Commit Commit
Definition: rename.hh:84
DefaultRename::SeqNumRegPair
std::pair< InstSeqNum, PhysRegIdPtr > SeqNumRegPair
Probe points.
Definition: rename.hh:120
DefaultRename::RenameStats
Definition: rename.hh:481
ProbePointArg< DynInstPtr >
DefaultRename::decodeQueue
TimeBuffer< DecodeStruct > * decodeQueue
Decode instruction queue interface.
Definition: rename.hh:345
DefaultRename::fromDecode
TimeBuffer< DecodeStruct >::wire fromDecode
Wire to get decode's output from decode queue.
Definition: rename.hh:348
DefaultRename::RenameStats::vecLookups
Stats::Scalar vecLookups
Definition: rename.hh:523
DefaultRename::setRenameQueue
void setRenameQueue(TimeBuffer< RenameStruct > *rq_ptr)
Sets pointer to time buffer used to communicate to the next stage.
Definition: rename_impl.hh:195
DefaultRename::RenameStruct
CPUPol::RenameStruct RenameStruct
Definition: rename.hh:78
DefaultRename::StartSquash
@ StartSquash
Definition: rename.hh:105
DefaultRename::setTimeBuffer
void setTimeBuffer(TimeBuffer< TimeStruct > *tb_ptr)
Sets the main backwards communication time buffer pointer.
Definition: rename_impl.hh:179
DefaultRename::FreeEntries::sqEntries
unsigned sqEntries
Definition: rename.hh:395
DefaultRename::readStallSignals
void readStallSignals(ThreadID tid)
Reads signals telling rename to block/unblock.
Definition: rename_impl.hh:1214
DefaultRename::renameInsts
void renameInsts(ThreadID tid)
Renames instructions for the given thread.
Definition: rename_impl.hh:512
DefaultRename::checkSignalsAndUpdate
bool checkSignalsAndUpdate(ThreadID tid)
Checks the signals and updates the status.
Definition: rename_impl.hh:1296
DefaultRename::RenameStats::vecPredLookups
Stats::Scalar vecPredLookups
Definition: rename.hh:524
DefaultRename::historyBuffer
std::list< RenameHistory > historyBuffer[Impl::MaxThreads]
A per-thread list of all destination register renames, used to either undo rename mappings or free ol...
Definition: rename.hh:321
DefaultRename::Stalls::iew
bool iew
Definition: rename.hh:411
DefaultRename::calcFreeSQEntries
int calcFreeSQEntries(ThreadID tid)
Calculates the number of free SQ entries for a specific thread.
Definition: rename_impl.hh:1188
DefaultRename::clearStates
void clearStates(ThreadID tid)
Clear all thread-specific states.
Definition: rename_impl.hh:222
TimeBuffer< TimeStruct >
DefaultRename::resetStage
void resetStage()
Reset this pipeline stage.
Definition: rename_impl.hh:244
RegId
Register ID: describe an architectural register with its class and index.
Definition: reg_class.hh:75
DefaultRename::fromIEW
TimeBuffer< TimeStruct >::wire fromIEW
Wire to get IEW's output from backwards time buffer.
Definition: rename.hh:330
DefaultRename::startupStage
void startupStage()
Initializes variables for the stage.
Definition: rename_impl.hh:215
DefaultRename::blockThisCycle
bool blockThisCycle
Whether or not rename needs to block this cycle.
Definition: rename.hh:449
DefaultRename::RenameStats::undoneMaps
Stats::Scalar undoneMaps
Stat for total number of mappings that were undone due to a squash.
Definition: rename.hh:529
DefaultRename::RenameStatus
RenameStatus
Overall rename status.
Definition: rename.hh:96
DefaultRename::updateStatus
void updateStatus()
Updates overall rename status based on all of the threads' statuses.
Definition: rename_impl.hh:834
DefaultRename::activeThreads
std::list< ThreadID > * activeThreads
Pointer to the list of active threads.
Definition: rename.hh:363
timebuf.hh
Stats::Scalar
This is a simple scalar statistic, like a counter.
Definition: statistics.hh:2533
DefaultRename::LQ
@ LQ
Definition: rename.hh:471
DefaultRename::Active
@ Active
Definition: rename.hh:97
DefaultRename::TimeStruct
CPUPol::TimeStruct TimeStruct
Definition: rename.hh:79
DefaultRename::O3CPU
Impl::O3CPU O3CPU
Definition: rename.hh:74
DefaultRename::resumeUnblocking
bool resumeUnblocking
Whether or not rename needs to resume clearing out the skidbuffer after squashing.
Definition: rename.hh:457
DefaultRename::stalls
Stalls stalls[Impl::MaxThreads]
Tracks which stages are telling decode to stall.
Definition: rename.hh:416
DefaultRename::FullSource
FullSource
Enum to record the source of a structure full stall.
Definition: rename.hh:468
DefaultRename::RenameHistory::newPhysReg
PhysRegIdPtr newPhysReg
The new physical register that the arch.
Definition: rename.hh:312
DefaultRename::takeOverFrom
void takeOverFrom()
Takes over from another CPU's thread.
Definition: rename_impl.hh:319
DefaultRename::calcFreeLQEntries
int calcFreeLQEntries(ThreadID tid)
Calculates the number of free LQ entries for a specific thread.
Definition: rename_impl.hh:1174
DefaultRename::cpu
O3CPU * cpu
Pointer to CPU.
Definition: rename.hh:324
DefaultRename::setScoreboard
void setScoreboard(Scoreboard *_scoreboard)
Sets pointer to the scoreboard.
Definition: rename_impl.hh:297
DefaultRename::SerializeStall
@ SerializeStall
Definition: rename.hh:109
DefaultRename::RenameHistory
Holds the information for each destination register rename.
Definition: rename.hh:298
DefaultRename::readFreeEntries
void readFreeEntries(ThreadID tid)
Gets the number of free entries for a specific thread.
Definition: rename_impl.hh:1260
DefaultRename::RenameStats::unblockCycles
Stats::Scalar unblockCycles
Stat for total number of cycles spent unblocking.
Definition: rename.hh:496
DefaultRename::Running
@ Running
Definition: rename.hh:103
statistics.hh
DefaultRename::Stalls
Source of possible stalls.
Definition: rename.hh:410
DefaultRename::scoreboard
Scoreboard * scoreboard
Pointer to the scoreboard.
Definition: rename.hh:366
DefaultRename::freeList
FreeList * freeList
Free list interface.
Definition: rename.hh:360
DefaultRename::RenameStats::fpLookups
Stats::Scalar fpLookups
Definition: rename.hh:522
DefaultRename::isDrained
bool isDrained() const
Has the stage drained?
Definition: rename_impl.hh:304
DefaultRename::incrFullStat
void incrFullStat(const FullSource &source)
Function used to increment the stat that corresponds to the source of the stall.
Definition: rename_impl.hh:1410
DefaultRename::RenameMap
CPUPol::RenameMap RenameMap
Definition: rename.hh:81
DefaultRename::RenameStats::RenameStats
RenameStats(Stats::Group *parent)
Definition: rename_impl.hh:98
DefaultRename::setCommitStage
void setCommitStage(Commit *commit_stage)
Sets pointer to commit stage.
Definition: rename.hh:153
DefaultRename::ROB
@ ROB
Definition: rename.hh:469
DefaultRename::serializeInst
DynInstPtr serializeInst[Impl::MaxThreads]
The serialize instruction that rename has stalled on.
Definition: rename.hh:419
DefaultRename::RenameStats::LQFullEvents
Stats::Scalar LQFullEvents
Stat for total number of times that the LQ starts a stall in rename.
Definition: rename.hh:510
DefaultRename::sortInsts
void sortInsts()
Separates instructions from decode into individual lists of instructions sorted by thread.
Definition: rename_impl.hh:801
DefaultRename::wroteToTimeBuffer
bool wroteToTimeBuffer
Variable that tracks if decode has written to the time buffer this cycle.
Definition: rename.hh:386
DefaultRename::block
bool block(ThreadID tid)
Switches rename to blocking, and signals back that rename has become blocked.
Definition: rename_impl.hh:873
DefaultRename::renameSrcRegs
void renameSrcRegs(const DynInstPtr &inst, ThreadID tid)
Renames the source registers of an instruction.
Definition: rename_impl.hh:1029
DefaultRename::RenameStats::squashCycles
Stats::Scalar squashCycles
Stat for total number of cycles spent squashing.
Definition: rename.hh:485
DefaultRename::RenameStats::SQFullEvents
Stats::Scalar SQFullEvents
Stat for total number of times that the SQ starts a stall in rename.
Definition: rename.hh:513
DefaultRename::iew_ptr
IEW * iew_ptr
Pointer to IEW stage.
Definition: rename.hh:158
DefaultRename::squash
void squash(const InstSeqNum &squash_seq_num, ThreadID tid)
Squashes all instructions in a thread.
Definition: rename_impl.hh:338
std::pair
STL pair class.
Definition: stl.hh:58
DefaultRename::regProbePoints
void regProbePoints()
Registers probes.
Definition: rename_impl.hh:170
InstSeqNum
uint64_t InstSeqNum
Definition: inst_seq.hh:37
DefaultRename::RenameStats::squashedInsts
Stats::Scalar squashedInsts
Stat for total number of squashed instructions that rename discards.
Definition: rename.hh:501
DefaultRename::Idle
@ Idle
Definition: rename.hh:104
DefaultRename::setIEWStage
void setIEWStage(IEW *iew_stage)
Sets pointer to IEW stage.
Definition: rename.hh:149
DefaultRename::RenameStats::IQFullEvents
Stats::Scalar IQFullEvents
Stat for total number of times that the IQ starts a stall in rename.
Definition: rename.hh:507
DefaultRename::RenameStats::fullRegistersEvents
Stats::Scalar fullRegistersEvents
Stat for total number of times that rename runs out of free registers to use to rename.
Definition: rename.hh:516
DefaultRename::setRenameMap
void setRenameMap(RenameMap rm_ptr[Impl::MaxThreads])
Sets pointer to rename maps (per-thread structures).
Definition: rename_impl.hh:282
DefaultRename::renameDestRegs
void renameDestRegs(const DynInstPtr &inst, ThreadID tid)
Renames the destination registers of an instruction.
Definition: rename_impl.hh:1096
DefaultRename::toIEWIndex
unsigned toIEWIndex
The index of the instruction in the time buffer to IEW that rename is currently using.
Definition: rename.hh:446
DefaultRename::DynInstPtr
Impl::DynInstPtr DynInstPtr
Definition: rename.hh:73
DefaultRename::DefaultRename
DefaultRename(O3CPU *_cpu, DerivO3CPUParams *params)
DefaultRename constructor.
Definition: rename_impl.hh:59
DefaultRename::IQ
@ IQ
Definition: rename.hh:470
DefaultRename::RenameStats::committedMaps
Stats::Scalar committedMaps
Stat for total number of committed renaming mappings.
Definition: rename.hh:526
DefaultRename::FreeEntries
Structures whose free entries impact the amount of instructions that can be renamed.
Definition: rename.hh:391
DefaultRename::serializeAfter
void serializeAfter(InstQueue &inst_list, ThreadID tid)
Either serializes on the next instruction available in the InstQueue, or records that it must seriali...
Definition: rename_impl.hh:1396
DefaultRename::resumeSerialize
bool resumeSerialize
Whether or not rename needs to resume a serialize instruction after squashing.
Definition: rename.hh:453
DefaultRename::SQ
@ SQ
Definition: rename.hh:472
DefaultRename::doSquash
void doSquash(const InstSeqNum &squash_seq_num, ThreadID tid)
Executes actual squash, removing squashed instructions.
Definition: rename_impl.hh:928
DefaultRename::stats
DefaultRename::RenameStats stats
DefaultRename::name
std::string name() const
Returns the name of rename.
Definition: rename_impl.hh:92
DefaultRename::renameQueue
TimeBuffer< RenameStruct > * renameQueue
Rename instruction queue.
Definition: rename.hh:339
DefaultRename::commitWidth
unsigned commitWidth
Commit width, in instructions.
Definition: rename.hh:441
DefaultRename::RenameStats::runCycles
Stats::Scalar runCycles
Stat for total number of cycles spent running normally.
Definition: rename.hh:494
DefaultRename::setActiveThreads
void setActiveThreads(std::list< ThreadID > *at_ptr)
Sets pointer to list of active threads.
Definition: rename_impl.hh:274
DefaultRename::unblock
bool unblock(ThreadID tid)
Switches rename to unblocking if the skid buffer is empty, and signals back that rename has unblocked...
Definition: rename_impl.hh:907
DefaultRename::timeBuffer
TimeBuffer< TimeStruct > * timeBuffer
Pointer to main time buffer used for backwards communication.
Definition: rename.hh:327
DefaultRename::CPUPol
Impl::CPUPol CPUPol
Definition: rename.hh:72
DefaultRename::Unblocking
@ Unblocking
Definition: rename.hh:108
DefaultRename::_status
RenameStatus _status
Rename status.
Definition: rename.hh:114
std::deque< DynInstPtr >
Stats::Group
Statistics container.
Definition: group.hh:83
DefaultRename::NONE
@ NONE
Definition: rename.hh:473
DefaultRename::renameStatus
ThreadStatus renameStatus[Impl::MaxThreads]
Per-thread status.
Definition: rename.hh:117
DefaultRename::skidBuffer
InstQueue skidBuffer[Impl::MaxThreads]
Skid buffer between rename and decode.
Definition: rename.hh:354
DefaultRename::FreeEntries::lqEntries
unsigned lqEntries
Definition: rename.hh:394
DefaultRename::DecodeStruct
CPUPol::DecodeStruct DecodeStruct
Definition: rename.hh:77
DefaultRename::renameMap
RenameMap * renameMap[Impl::MaxThreads]
Rename map interface.
Definition: rename.hh:357
DefaultRename::instsInProgress
int instsInProgress[Impl::MaxThreads]
Count of instructions in progress that have been sent off to the IQ and ROB, but are not yet included...
Definition: rename.hh:371
DefaultRename::RenameStats::idleCycles
Stats::Scalar idleCycles
Stat for total number of cycles spent idle.
Definition: rename.hh:487
DefaultRename::commit_ptr
Commit * commit_ptr
Pointer to commit stage.
Definition: rename.hh:161
DefaultRename::calcFreeROBEntries
int calcFreeROBEntries(ThreadID tid)
Calculates the number of free ROB entries for a specific thread.
Definition: rename_impl.hh:1150
DefaultRename::ppRename
ProbePointArg< DynInstPtr > * ppRename
To probe when register renaming for an instruction is complete.
Definition: rename.hh:122
DefaultRename::ThreadStatus
ThreadStatus
Individual thread status.
Definition: rename.hh:102
PhysRegId
Physical register ID.
Definition: reg_class.hh:223
DefaultRename::InstQueue
std::deque< DynInstPtr > InstQueue
Definition: rename.hh:90
DefaultRename::FreeList
CPUPol::FreeList FreeList
Definition: rename.hh:80
DefaultRename::drainSanityCheck
void drainSanityCheck() const
Perform sanity checks after a drain.
Definition: rename_impl.hh:326
DefaultRename::RenameStats::ROBFullEvents
Stats::Scalar ROBFullEvents
Stat for total number of times that the ROB starts a stall in rename.
Definition: rename.hh:504
DefaultRename::RenameHistory::prevPhysReg
PhysRegIdPtr prevPhysReg
The old physical register that the arch.
Definition: rename.hh:315
DefaultRename::validInsts
unsigned validInsts()
Returns the number of valid instructions coming from decode.
Definition: rename_impl.hh:1200
std::list< ThreadID >
probe.hh
DefaultRename::commitToRenameDelay
unsigned commitToRenameDelay
Delay between commit and rename, in ticks.
Definition: rename.hh:433
DefaultRename::serializeOnNextInst
bool serializeOnNextInst[Impl::MaxThreads]
Records if rename needs to serialize on the next instruction for any thread.
Definition: rename.hh:424
DefaultRename::toIEW
TimeBuffer< RenameStruct >::wire toIEW
Wire to write any information heading to IEW.
Definition: rename.hh:342
DefaultRename::Inactive
@ Inactive
Definition: rename.hh:98
DefaultRename::numThreads
ThreadID numThreads
The number of threads active in rename.
Definition: rename.hh:460
DefaultRename::IEW
CPUPol::IEW IEW
Definition: rename.hh:83
DefaultRename::RenameHistory::instSeqNum
InstSeqNum instSeqNum
The sequence number of the instruction that renamed.
Definition: rename.hh:308
DefaultRename::RenameStats::intLookups
Stats::Scalar intLookups
Definition: rename.hh:521
DefaultRename::RenameStats::serializing
Stats::Scalar serializing
Number of serialize instructions handled.
Definition: rename.hh:531
DefaultRename::RenameStats::lookups
Stats::Scalar lookups
Stat for total number of source register rename lookups.
Definition: rename.hh:520
DefaultRename::loadsInProgress
int loadsInProgress[Impl::MaxThreads]
Count of Load instructions in progress that have been sent off to the IQ and ROB, but are not yet inc...
Definition: rename.hh:376
DefaultRename::ppSquashInRename
ProbePointArg< SeqNumRegPair > * ppSquashInRename
To probe when an instruction is squashed and the register mapping for it needs to be undone.
Definition: rename.hh:127
DefaultRename::Squashing
@ Squashing
Definition: rename.hh:106
Scoreboard
Implements a simple scoreboard to track which registers are ready.
Definition: scoreboard.hh:48
DefaultRename
DefaultRename handles both single threaded and SMT rename.
Definition: rename.hh:68
DefaultRename::Stalls::commit
bool commit
Definition: rename.hh:412
DefaultRename::iewToRenameDelay
int iewToRenameDelay
Delay between iew and rename, in ticks.
Definition: rename.hh:427
DefaultRename::RenameStats::renamedOperands
Stats::Scalar renamedOperands
Stat for total number of renamed destination registers.
Definition: rename.hh:518
DefaultRename::fromCommit
TimeBuffer< TimeStruct >::wire fromCommit
Wire to get commit's output from backwards time buffer.
Definition: rename.hh:333
DefaultRename::renameWidth
unsigned renameWidth
Rename width, in instructions.
Definition: rename.hh:436

Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17