Go to the documentation of this file.
44 #ifndef __CPU_MINOR_SCOREBOARD_HH__
45 #define __CPU_MINOR_SCOREBOARD_HH__
69 typedef unsigned short int Index;
bool findIndex(const RegId ®, Index &scoreboard_index)
Sets scoreboard_index to the index into numResults of the given register index.
unsigned short int Index
Type to use when indexing numResults.
Register ID: describe an architectural register with its class and index.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
InstSeqNum execSeqNumToWaitFor(MinorDynInstPtr inst, ThreadContext *thread_context)
Returns the exec sequence number of the most recent inst on which the given inst depends.
const unsigned numRegs
The number of registers in the Scoreboard.
constexpr unsigned NumVecElemPerVecReg
std::vector< Index > numUnpredictableResults
Count of the number of results which can't be predicted.
void clearInstDests(MinorDynInstPtr inst, bool clear_unpredictable)
Clear down the dependencies for this instruction.
void minorTrace() const
MinorTraceIF interface.
std::vector< Index > numResults
Count of the number of in-flight instructions that have results for each register.
std::vector< InstSeqNum > writingInst
The execute sequence number of the most recent inst to generate this register value.
A scoreboard of register dependencies including, for each register: The number of in-flight instructi...
Scoreboard(const std::string &name)
std::vector< Cycles > returnCycle
The estimated cycle number that the result will be presented.
Cycles is a wrapper class for representing cycle counts, i.e.
bool canInstIssue(MinorDynInstPtr inst, const std::vector< Cycles > *src_reg_relative_latencies, const std::vector< bool > *cant_forward_from_fu_indices, Cycles now, ThreadContext *thread_context)
Can this instruction be issued.
void markupInstDests(MinorDynInstPtr inst, Cycles retire_time, ThreadContext *thread_context, bool mark_unpredictable)
Mark up an instruction's effects by incrementing numResults counts.
std::vector< int > fuIndices
Index of the FU generating this result.
const std::string & name() const
Generated on Wed Sep 30 2020 14:02:08 for gem5 by doxygen 1.8.17