gem5
v20.1.0.0
|
DefaultCommit handles single threaded and SMT commit. More...
#include <commit.hh>
Classes | |
struct | CommitStats |
Public Types | |
enum | CommitStatus { Active, Inactive } |
Overall commit status. More... | |
enum | ThreadStatus { Running, Idle, ROBSquashing, TrapPending, FetchTrapPending, SquashAfterPending } |
Individual thread status. More... | |
typedef Impl::O3CPU | O3CPU |
typedef Impl::DynInstPtr | DynInstPtr |
typedef Impl::CPUPol | CPUPol |
typedef CPUPol::RenameMap | RenameMap |
typedef CPUPol::ROB | ROB |
typedef CPUPol::TimeStruct | TimeStruct |
typedef CPUPol::FetchStruct | FetchStruct |
typedef CPUPol::IEWStruct | IEWStruct |
typedef CPUPol::RenameStruct | RenameStruct |
typedef CPUPol::Fetch | Fetch |
typedef CPUPol::IEW | IEW |
typedef O3ThreadState< Impl > | Thread |
Public Member Functions | |
DefaultCommit (O3CPU *_cpu, DerivO3CPUParams *params) | |
Construct a DefaultCommit with the given parameters. More... | |
std::string | name () const |
Returns the name of the DefaultCommit. More... | |
void | regProbePoints () |
Registers probes. More... | |
void | setThreads (std::vector< Thread * > &threads) |
Sets the list of threads. More... | |
void | setTimeBuffer (TimeBuffer< TimeStruct > *tb_ptr) |
Sets the main time buffer pointer, used for backwards communication. More... | |
void | setFetchQueue (TimeBuffer< FetchStruct > *fq_ptr) |
void | setRenameQueue (TimeBuffer< RenameStruct > *rq_ptr) |
Sets the pointer to the queue coming from rename. More... | |
void | setIEWQueue (TimeBuffer< IEWStruct > *iq_ptr) |
Sets the pointer to the queue coming from IEW. More... | |
void | setIEWStage (IEW *iew_stage) |
Sets the pointer to the IEW stage. More... | |
void | setActiveThreads (std::list< ThreadID > *at_ptr) |
Sets pointer to list of active threads. More... | |
void | setRenameMap (RenameMap rm_ptr[Impl::MaxThreads]) |
Sets pointer to the commited state rename map. More... | |
void | setROB (ROB *rob_ptr) |
Sets pointer to the ROB. More... | |
void | startupStage () |
Initializes stage by sending back the number of free entries. More... | |
void | clearStates (ThreadID tid) |
Clear all thread-specific states. More... | |
void | drain () |
Initializes the draining of commit. More... | |
void | drainResume () |
Resumes execution after draining. More... | |
void | drainSanityCheck () const |
Perform sanity checks after a drain. More... | |
bool | isDrained () const |
Has the stage drained? More... | |
void | takeOverFrom () |
Takes over from another CPU's thread. More... | |
void | deactivateThread (ThreadID tid) |
Deschedules a thread from scheduling. More... | |
bool | executingHtmTransaction (ThreadID) const |
Is the CPU currently processing a HTM transaction? More... | |
void | resetHtmStartsStops (ThreadID) |
void | tick () |
Ticks the commit stage, which tries to commit instructions. More... | |
void | commit () |
Handles any squashes that are sent from IEW, and adds instructions to the ROB and tries to commit instructions. More... | |
size_t | numROBFreeEntries (ThreadID tid) |
Returns the number of free ROB entries for a specific thread. More... | |
void | generateTrapEvent (ThreadID tid, Fault inst_fault) |
Generates an event to schedule a squash due to a trap. More... | |
void | generateTCEvent (ThreadID tid) |
Records that commit needs to initiate a squash due to an external state update through the TC. More... | |
TheISA::PCState | pcState (ThreadID tid) |
Reads the PC of a specific thread. More... | |
void | pcState (const TheISA::PCState &val, ThreadID tid) |
Sets the PC of a specific thread. More... | |
Addr | instAddr (ThreadID tid) |
Returns the PC of a specific thread. More... | |
Addr | nextInstAddr (ThreadID tid) |
Returns the next PC of a specific thread. More... | |
Addr | microPC (ThreadID tid) |
Reads the micro PC of a specific thread. More... | |
Public Attributes | |
IEW * | iewStage |
The pointer to the IEW stage. More... | |
ROB * | rob |
ROB interface. More... | |
Private Member Functions | |
void | processTrapEvent (ThreadID tid) |
Mark the thread as processing a trap. More... | |
void | updateStatus () |
Updates the overall status of commit with the nextStatus, and tell the CPU if commit is active/inactive. More... | |
bool | changedROBEntries () |
Returns if any of the threads have the number of ROB entries changed on this cycle. More... | |
void | squashAll (ThreadID tid) |
Squashes all in flight instructions. More... | |
void | squashFromTrap (ThreadID tid) |
Handles squashing due to a trap. More... | |
void | squashFromTC (ThreadID tid) |
Handles squashing due to an TC write. More... | |
void | squashFromSquashAfter (ThreadID tid) |
Handles a squash from a squashAfter() request. More... | |
void | squashAfter (ThreadID tid, const DynInstPtr &head_inst) |
Handle squashing from instruction with SquashAfter set. More... | |
void | handleInterrupt () |
Handles processing an interrupt. More... | |
void | propagateInterrupt () |
Get fetch redirecting so we can handle an interrupt. More... | |
void | commitInsts () |
Commits as many instructions as possible. More... | |
bool | commitHead (const DynInstPtr &head_inst, unsigned inst_num) |
Tries to commit the head ROB instruction passed in. More... | |
void | getInsts () |
Gets instructions from rename and inserts them into the ROB. More... | |
void | markCompletedInsts () |
Marks completed instructions using information sent from IEW. More... | |
ThreadID | getCommittingThread () |
Gets the thread to commit, based on the SMT policy. More... | |
ThreadID | roundRobin () |
Returns the thread ID to use based on a round robin policy. More... | |
ThreadID | oldestReady () |
Returns the thread ID to use based on an oldest instruction policy. More... | |
void | updateComInstStats (const DynInstPtr &inst) |
Updates commit stats based on this instruction. More... | |
Private Attributes | |
CommitStatus | _status |
Overall commit status. More... | |
CommitStatus | _nextStatus |
Next commit status, to be set at the end of the cycle. More... | |
ThreadStatus | commitStatus [Impl::MaxThreads] |
Per-thread status. More... | |
CommitPolicy | commitPolicy |
Commit policy used in SMT mode. More... | |
ProbePointArg< DynInstPtr > * | ppCommit |
Probe Points. More... | |
ProbePointArg< DynInstPtr > * | ppCommitStall |
ProbePointArg< DynInstPtr > * | ppSquash |
To probe when an instruction is squashed. More... | |
TimeBuffer< TimeStruct > * | timeBuffer |
Time buffer interface. More... | |
TimeBuffer< TimeStruct >::wire | toIEW |
Wire to write information heading to previous stages. More... | |
TimeBuffer< TimeStruct >::wire | robInfoFromIEW |
Wire to read information from IEW (for ROB). More... | |
TimeBuffer< FetchStruct > * | fetchQueue |
TimeBuffer< FetchStruct >::wire | fromFetch |
TimeBuffer< IEWStruct > * | iewQueue |
IEW instruction queue interface. More... | |
TimeBuffer< IEWStruct >::wire | fromIEW |
Wire to read information from IEW queue. More... | |
TimeBuffer< RenameStruct > * | renameQueue |
Rename instruction queue interface, for ROB. More... | |
TimeBuffer< RenameStruct >::wire | fromRename |
Wire to read information from rename queue. More... | |
O3CPU * | cpu |
Pointer to O3CPU. More... | |
std::vector< Thread * > | thread |
Vector of all of the threads. More... | |
bool | wroteToTimeBuffer |
Records that commit has written to the time buffer this cycle. More... | |
bool | changedROBNumEntries [Impl::MaxThreads] |
Records if the number of ROB entries has changed this cycle. More... | |
bool | trapSquash [Impl::MaxThreads] |
Records if a thread has to squash this cycle due to a trap. More... | |
bool | tcSquash [Impl::MaxThreads] |
Records if a thread has to squash this cycle due to an XC write. More... | |
DynInstPtr | squashAfterInst [Impl::MaxThreads] |
Instruction passed to squashAfter(). More... | |
std::list< ThreadID > | priority_list |
Priority List used for Commit Policy. More... | |
const Cycles | iewToCommitDelay |
IEW to Commit delay. More... | |
const Cycles | commitToIEWDelay |
Commit to IEW delay. More... | |
const Cycles | renameToROBDelay |
Rename to ROB delay. More... | |
const Cycles | fetchToCommitDelay |
const unsigned | renameWidth |
Rename width, in instructions. More... | |
const unsigned | commitWidth |
Commit width, in instructions. More... | |
unsigned | numRobs |
Number of Reorder Buffers. More... | |
const ThreadID | numThreads |
Number of Active Threads. More... | |
bool | drainPending |
Is a drain pending? Commit is looking for an instruction boundary while there are no pending interrupts. More... | |
bool | drainImminent |
Is a drain imminent? Commit has found an instruction boundary while no interrupts were present or in flight. More... | |
const Cycles | trapLatency |
The latency to handle a trap. More... | |
Fault | interrupt |
The interrupt fault. More... | |
TheISA::PCState | pc [Impl::MaxThreads] |
The commit PC state of each thread. More... | |
InstSeqNum | youngestSeqNum [Impl::MaxThreads] |
The sequence number of the youngest valid instruction in the ROB. More... | |
InstSeqNum | lastCommitedSeqNum [Impl::MaxThreads] |
The sequence number of the last commited instruction. More... | |
bool | trapInFlight [Impl::MaxThreads] |
Records if there is a trap currently in flight. More... | |
bool | committedStores [Impl::MaxThreads] |
Records if there were any stores committed this cycle. More... | |
bool | checkEmptyROB [Impl::MaxThreads] |
Records if commit should check if the ROB is truly empty (see commit_impl.hh). More... | |
std::list< ThreadID > * | activeThreads |
Pointer to the list of active threads. More... | |
RenameMap * | renameMap [Impl::MaxThreads] |
Rename map interface. More... | |
bool | canHandleInterrupts |
True if last committed microop can be followed by an interrupt. More... | |
bool | avoidQuiesceLiveLock |
Have we had an interrupt pending and then seen it de-asserted because of a masking change? In this case the variable is set and the next time interrupts are enabled and pending the pipeline will squash to avoid a possible livelock senario. More... | |
int | htmStarts [Impl::MaxThreads] |
int | htmStops [Impl::MaxThreads] |
DefaultCommit::CommitStats | stats |
DefaultCommit handles single threaded and SMT commit.
Its width is specified by the parameters; each cycle it tries to commit that many instructions. The SMT policy decides which thread it tries to commit instructions from. Non- speculative instructions must reach the head of the ROB before they are ready to execute; once they reach the head, commit will broadcast the instruction's sequence number to the previous stages so that they can issue/ execute the instruction. Only one non-speculative instruction is handled per cycle. Commit is responsible for handling all back-end initiated redirects. It receives the redirect, and then broadcasts it to all stages, indicating the sequence number they should squash until, and any necessary branch misprediction information as well. It priortizes redirects by instruction's age, only broadcasting a redirect if it corresponds to an instruction that should currently be in the ROB. This is done by tracking the sequence number of the youngest instruction in the ROB, which gets updated to any squashing instruction's sequence number, and only broadcasting a redirect if it corresponds to an older instruction. Commit also supports multiple cycle squashing, to model a ROB that can only remove a certain number of instructions per cycle.
typedef Impl::CPUPol DefaultCommit< Impl >::CPUPol |
typedef Impl::DynInstPtr DefaultCommit< Impl >::DynInstPtr |
typedef CPUPol::Fetch DefaultCommit< Impl >::Fetch |
typedef CPUPol::FetchStruct DefaultCommit< Impl >::FetchStruct |
typedef CPUPol::IEW DefaultCommit< Impl >::IEW |
typedef CPUPol::IEWStruct DefaultCommit< Impl >::IEWStruct |
typedef Impl::O3CPU DefaultCommit< Impl >::O3CPU |
typedef CPUPol::RenameMap DefaultCommit< Impl >::RenameMap |
typedef CPUPol::RenameStruct DefaultCommit< Impl >::RenameStruct |
typedef CPUPol::ROB DefaultCommit< Impl >::ROB |
typedef O3ThreadState<Impl> DefaultCommit< Impl >::Thread |
typedef CPUPol::TimeStruct DefaultCommit< Impl >::TimeStruct |
enum DefaultCommit::CommitStatus |
enum DefaultCommit::ThreadStatus |
DefaultCommit< Impl >::DefaultCommit | ( | O3CPU * | _cpu, |
DerivO3CPUParams * | params | ||
) |
Construct a DefaultCommit with the given parameters.
Definition at line 81 of file commit_impl.hh.
References DefaultCommit< Impl >::_nextStatus, DefaultCommit< Impl >::_status, DefaultCommit< Impl >::Active, DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::checkEmptyROB, DefaultCommit< Impl >::commitPolicy, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::committedStores, DefaultCommit< Impl >::commitWidth, fatal, DefaultCommit< Impl >::htmStarts, DefaultCommit< Impl >::htmStops, DefaultCommit< Impl >::Idle, DefaultCommit< Impl >::Inactive, DefaultCommit< Impl >::interrupt, DefaultCommit< Impl >::lastCommitedSeqNum, NoFault, DefaultCommit< Impl >::numThreads, DefaultCommit< Impl >::pc, DefaultCommit< Impl >::priority_list, DefaultCommit< Impl >::renameMap, DefaultCommit< Impl >::squashAfterInst, DefaultCommit< Impl >::tcSquash, DefaultCommit< Impl >::trapInFlight, DefaultCommit< Impl >::trapSquash, and DefaultCommit< Impl >::youngestSeqNum.
|
private |
Returns if any of the threads have the number of ROB entries changed on this cycle.
Used to determine if the number of free ROB entries needs to be sent back to previous stages.
Definition at line 494 of file commit_impl.hh.
References DefaultCommit< Impl >::activeThreads, and DefaultCommit< Impl >::changedROBNumEntries.
void DefaultCommit< Impl >::clearStates | ( | ThreadID | tid | ) |
Clear all thread-specific states.
Definition at line 338 of file commit_impl.hh.
References DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::checkEmptyROB, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::committedStores, DefaultCommit< Impl >::Idle, DefaultCommit< Impl >::lastCommitedSeqNum, DefaultCommit< Impl >::pc, DefaultCommit< Impl >::squashAfterInst, DefaultCommit< Impl >::tcSquash, DefaultCommit< Impl >::trapInFlight, and DefaultCommit< Impl >::trapSquash.
void DefaultCommit< Impl >::commit |
Handles any squashes that are sent from IEW, and adds instructions to the ROB and tries to commit instructions.
Definition at line 814 of file commit_impl.hh.
References DefaultCommit< Impl >::_nextStatus, DefaultCommit< Impl >::Active, DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::checkEmptyROB, DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::committedStores, DefaultCommit< Impl >::cpu, DPRINTF, ROB< Impl >::findInst(), DefaultCommit< Impl >::fromIEW, FullSystem, DefaultCommit< Impl >::getInsts(), DefaultCommit< Impl >::iewStage, ROB< Impl >::isEmpty(), ROB< Impl >::numFreeEntries(), DefaultCommit< Impl >::numThreads, DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::rob, DefaultCommit< Impl >::ROBSquashing, ROB< Impl >::squash(), DefaultCommit< Impl >::SquashAfterPending, DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::squashFromTC(), DefaultCommit< Impl >::squashFromTrap(), Stats::Group::stats, DefaultCommit< Impl >::tcSquash, DefaultCommit< Impl >::toIEW, DefaultCommit< Impl >::TrapPending, DefaultCommit< Impl >::trapSquash, DefaultCommit< Impl >::wroteToTimeBuffer, and DefaultCommit< Impl >::youngestSeqNum.
Referenced by DefaultCommit< Impl >::CommitStats::CommitStats(), and DefaultCommit< Impl >::tick().
|
private |
Tries to commit the head ROB instruction passed in.
head_inst | The instruction to be committed. |
Definition at line 1183 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::committedStores, DefaultCommit< Impl >::cpu, curTick(), DPRINTF, DTRACE, EXCEPTION, DefaultCommit< Impl >::generateTrapEvent(), ArmISA::i, DefaultCommit< Impl >::iewStage, NoFault, StaticInst::nullStaticInstPtr, panic, DefaultCommit< Impl >::renameMap, ROB< Impl >::retireHead(), DefaultCommit< Impl >::rob, Stats::Group::stats, DefaultCommit< Impl >::thread, DefaultCommit< Impl >::toIEW, DefaultCommit< Impl >::TrapPending, and DefaultCommit< Impl >::updateComInstStats().
Referenced by DefaultCommit< Impl >::commitInsts().
|
private |
Commits as many instructions as possible.
Definition at line 977 of file commit_impl.hh.
References ArmISA::advancePC(), DefaultCommit< Impl >::avoidQuiesceLiveLock, DefaultCommit< Impl >::canHandleInterrupts, DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::commitWidth, X86ISA::count, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::drainImminent, DefaultCommit< Impl >::drainPending, DefaultCommit< Impl >::executingHtmTransaction(), DefaultCommit< Impl >::getCommittingThread(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::htmStarts, DefaultCommit< Impl >::htmStops, DefaultCommit< Impl >::instAddr(), DefaultCommit< Impl >::interrupt, ROB< Impl >::isHeadReady(), DefaultCommit< Impl >::lastCommitedSeqNum, DefaultCommit< Impl >::microPC(), NoFault, ProbePointArg< Arg >::notify(), DefaultCommit< Impl >::pc, DefaultCommit< Impl >::ppCommit, DefaultCommit< Impl >::ppSquash, ROB< Impl >::readHeadInst(), ROB< Impl >::retireHead(), DefaultCommit< Impl >::rob, DefaultCommit< Impl >::squashAfter(), Stats::Group::stats, DefaultCommit< Impl >::thread, and DefaultCommit< Impl >::toIEW.
Referenced by DefaultCommit< Impl >::commit().
void DefaultCommit< Impl >::deactivateThread | ( | ThreadID | tid | ) |
Deschedules a thread from scheduling.
Definition at line 429 of file commit_impl.hh.
References DefaultCommit< Impl >::priority_list.
void DefaultCommit< Impl >::drain |
Initializes the draining of commit.
Definition at line 354 of file commit_impl.hh.
References DefaultCommit< Impl >::drainPending.
void DefaultCommit< Impl >::drainResume |
Resumes execution after draining.
Definition at line 361 of file commit_impl.hh.
References DefaultCommit< Impl >::drainImminent, and DefaultCommit< Impl >::drainPending.
void DefaultCommit< Impl >::drainSanityCheck |
Perform sanity checks after a drain.
Definition at line 369 of file commit_impl.hh.
References ROB< Impl >::drainSanityCheck(), DefaultCommit< Impl >::executingHtmTransaction(), DefaultCommit< Impl >::isDrained(), DefaultCommit< Impl >::numThreads, panic, and DefaultCommit< Impl >::rob.
bool DefaultCommit< Impl >::executingHtmTransaction | ( | ThreadID | tid | ) | const |
Is the CPU currently processing a HTM transaction?
Definition at line 441 of file commit_impl.hh.
References DefaultCommit< Impl >::htmStarts, DefaultCommit< Impl >::htmStops, and InvalidThreadID.
Referenced by DefaultCommit< Impl >::commitInsts(), and DefaultCommit< Impl >::drainSanityCheck().
void DefaultCommit< Impl >::generateTCEvent | ( | ThreadID | tid | ) |
Records that commit needs to initiate a squash due to an external state update through the TC.
Definition at line 545 of file commit_impl.hh.
References DPRINTF, DefaultCommit< Impl >::tcSquash, and DefaultCommit< Impl >::trapInFlight.
void DefaultCommit< Impl >::generateTrapEvent | ( | ThreadID | tid, |
Fault | inst_fault | ||
) |
Generates an event to schedule a squash due to a trap.
Definition at line 519 of file commit_impl.hh.
References DefaultCommit< Impl >::cpu, EventBase::CPU_Tick_Pri, DPRINTF, DefaultCommit< Impl >::processTrapEvent(), DefaultCommit< Impl >::thread, DefaultCommit< Impl >::trapInFlight, and DefaultCommit< Impl >::trapLatency.
Referenced by DefaultCommit< Impl >::commitHead(), and DefaultCommit< Impl >::handleInterrupt().
|
private |
Gets the thread to commit, based on the SMT policy.
Definition at line 1498 of file commit_impl.hh.
References DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::commitPolicy, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::FetchTrapPending, DefaultCommit< Impl >::Idle, InvalidThreadID, DefaultCommit< Impl >::numThreads, DefaultCommit< Impl >::oldestReady(), DefaultCommit< Impl >::roundRobin(), and DefaultCommit< Impl >::Running.
Referenced by DefaultCommit< Impl >::commitInsts().
|
private |
Gets instructions from rename and inserts them into the ROB.
Definition at line 1380 of file commit_impl.hh.
References DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::commitStatus, DPRINTF, DefaultCommit< Impl >::fromRename, ROB< Impl >::getMaxEntries(), ROB< Impl >::getThreadEntries(), ROB< Impl >::insertInst(), DefaultCommit< Impl >::renameWidth, DefaultCommit< Impl >::rob, DefaultCommit< Impl >::ROBSquashing, TimeBuffer< T >::size, DefaultCommit< Impl >::TrapPending, and DefaultCommit< Impl >::youngestSeqNum.
Referenced by DefaultCommit< Impl >::commit().
|
private |
Handles processing an interrupt.
Definition at line 735 of file commit_impl.hh.
References DefaultCommit< Impl >::avoidQuiesceLiveLock, DefaultCommit< Impl >::canHandleInterrupts, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::generateTrapEvent(), DefaultCommit< Impl >::interrupt, NoFault, DefaultCommit< Impl >::thread, DefaultCommit< Impl >::toIEW, and DefaultCommit< Impl >::TrapPending.
Referenced by DefaultCommit< Impl >::commitInsts().
|
inline |
Returns the PC of a specific thread.
Definition at line 322 of file commit.hh.
References DefaultCommit< Impl >::pc.
Referenced by DefaultCommit< Impl >::commitInsts().
bool DefaultCommit< Impl >::isDrained |
Has the stage drained?
Definition at line 385 of file commit_impl.hh.
References DefaultCommit< Impl >::interrupt, ROB< Impl >::isEmpty(), DefaultCommit< Impl >::microPC(), NoFault, DefaultCommit< Impl >::numThreads, DefaultCommit< Impl >::pc, and DefaultCommit< Impl >::rob.
Referenced by DefaultCommit< Impl >::drainSanityCheck().
|
private |
Marks completed instructions using information sent from IEW.
Definition at line 1414 of file commit_impl.hh.
References DPRINTF, DefaultCommit< Impl >::fromIEW, and TimeBuffer< T >::size.
Referenced by DefaultCommit< Impl >::tick().
|
inline |
Reads the micro PC of a specific thread.
Definition at line 328 of file commit.hh.
References DefaultCommit< Impl >::pc.
Referenced by DefaultCommit< Impl >::commitInsts(), and DefaultCommit< Impl >::isDrained().
std::string DefaultCommit< Impl >::name |
Returns the name of the DefaultCommit.
Definition at line 134 of file commit_impl.hh.
|
inline |
Returns the next PC of a specific thread.
Definition at line 325 of file commit.hh.
References DefaultCommit< Impl >::pc.
size_t DefaultCommit< Impl >::numROBFreeEntries | ( | ThreadID | tid | ) |
Returns the number of free ROB entries for a specific thread.
Definition at line 512 of file commit_impl.hh.
References ROB< Impl >::numFreeEntries(), and DefaultCommit< Impl >::rob.
|
private |
Returns the thread ID to use based on an oldest instruction policy.
Definition at line 1562 of file commit_impl.hh.
References DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::FetchTrapPending, DefaultCommit< Impl >::Idle, InvalidThreadID, ROB< Impl >::isEmpty(), ROB< Impl >::isHeadReady(), ROB< Impl >::readHeadInst(), DefaultCommit< Impl >::rob, and DefaultCommit< Impl >::Running.
Referenced by DefaultCommit< Impl >::getCommittingThread().
|
inline |
Sets the PC of a specific thread.
Definition at line 318 of file commit.hh.
References DefaultCommit< Impl >::pc, and X86ISA::val.
|
inline |
Reads the PC of a specific thread.
Definition at line 315 of file commit.hh.
References DefaultCommit< Impl >::pc.
|
private |
Mark the thread as processing a trap.
Definition at line 73 of file commit_impl.hh.
Referenced by DefaultCommit< Impl >::generateTrapEvent().
|
private |
Get fetch redirecting so we can handle an interrupt.
Definition at line 789 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DefaultCommit< Impl >::drainImminent, DefaultCommit< Impl >::interrupt, NoFault, DefaultCommit< Impl >::tcSquash, DefaultCommit< Impl >::toIEW, DefaultCommit< Impl >::TrapPending, and DefaultCommit< Impl >::trapSquash.
Referenced by DefaultCommit< Impl >::commit().
void DefaultCommit< Impl >::regProbePoints |
Registers probes.
Definition at line 141 of file commit_impl.hh.
void DefaultCommit< Impl >::resetHtmStartsStops | ( | ThreadID | tid | ) |
Definition at line 451 of file commit_impl.hh.
References DefaultCommit< Impl >::htmStarts, DefaultCommit< Impl >::htmStops, and InvalidThreadID.
|
private |
Returns the thread ID to use based on a round robin policy.
Definition at line 1534 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::FetchTrapPending, DefaultCommit< Impl >::Idle, InvalidThreadID, ROB< Impl >::isHeadReady(), DefaultCommit< Impl >::priority_list, DefaultCommit< Impl >::rob, and DefaultCommit< Impl >::Running.
Referenced by DefaultCommit< Impl >::getCommittingThread().
void DefaultCommit< Impl >::setActiveThreads | ( | std::list< ThreadID > * | at_ptr | ) |
Sets pointer to list of active threads.
Definition at line 295 of file commit_impl.hh.
References DefaultCommit< Impl >::activeThreads.
void DefaultCommit< Impl >::setFetchQueue | ( | TimeBuffer< FetchStruct > * | fq_ptr | ) |
Definition at line 258 of file commit_impl.hh.
References DefaultCommit< Impl >::fetchQueue, DefaultCommit< Impl >::fetchToCommitDelay, DefaultCommit< Impl >::fromFetch, and TimeBuffer< T >::getWire().
void DefaultCommit< Impl >::setIEWQueue | ( | TimeBuffer< IEWStruct > * | iq_ptr | ) |
Sets the pointer to the queue coming from IEW.
Definition at line 278 of file commit_impl.hh.
References DefaultCommit< Impl >::fromIEW, TimeBuffer< T >::getWire(), DefaultCommit< Impl >::iewQueue, and DefaultCommit< Impl >::iewToCommitDelay.
void DefaultCommit< Impl >::setIEWStage | ( | IEW * | iew_stage | ) |
Sets the pointer to the IEW stage.
Definition at line 288 of file commit_impl.hh.
References DefaultCommit< Impl >::iewStage.
void DefaultCommit< Impl >::setRenameMap | ( | RenameMap | rm_ptr[Impl::MaxThreads] | ) |
Sets pointer to the commited state rename map.
Definition at line 302 of file commit_impl.hh.
References DefaultCommit< Impl >::numThreads, and DefaultCommit< Impl >::renameMap.
void DefaultCommit< Impl >::setRenameQueue | ( | TimeBuffer< RenameStruct > * | rq_ptr | ) |
Sets the pointer to the queue coming from rename.
Definition at line 268 of file commit_impl.hh.
References DefaultCommit< Impl >::fromRename, TimeBuffer< T >::getWire(), DefaultCommit< Impl >::renameQueue, and DefaultCommit< Impl >::renameToROBDelay.
void DefaultCommit< Impl >::setROB | ( | ROB * | rob_ptr | ) |
Sets pointer to the ROB.
Definition at line 310 of file commit_impl.hh.
References DefaultCommit< Impl >::rob.
void DefaultCommit< Impl >::setThreads | ( | std::vector< Thread * > & | threads | ) |
Sets the list of threads.
Definition at line 238 of file commit_impl.hh.
References DefaultCommit< Impl >::thread.
void DefaultCommit< Impl >::setTimeBuffer | ( | TimeBuffer< TimeStruct > * | tb_ptr | ) |
Sets the main time buffer pointer, used for backwards communication.
Definition at line 245 of file commit_impl.hh.
References TimeBuffer< T >::getWire(), DefaultCommit< Impl >::iewToCommitDelay, DefaultCommit< Impl >::robInfoFromIEW, DefaultCommit< Impl >::timeBuffer, and DefaultCommit< Impl >::toIEW.
|
private |
Handle squashing from instruction with SquashAfter set.
This differs from the other squashes as it squashes following instructions instead of the current instruction and doesn't clean up various status bits about traps/tc writes pending. Since there might have been instructions committed by the commit stage before the squashing instruction was reached and we can't commit and squash in the same cycle, we have to squash in two steps:
tid | ID of the thread to squash. |
head_inst | Instruction that requested the squash. |
Definition at line 644 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DPRINTF, DefaultCommit< Impl >::squashAfterInst, and DefaultCommit< Impl >::SquashAfterPending.
Referenced by DefaultCommit< Impl >::commitInsts().
|
private |
Squashes all in flight instructions.
Definition at line 555 of file commit_impl.hh.
References DefaultCommit< Impl >::changedROBNumEntries, ROB< Impl >::isEmpty(), DefaultCommit< Impl >::lastCommitedSeqNum, DefaultCommit< Impl >::pc, ROB< Impl >::readHeadInst(), DefaultCommit< Impl >::rob, ROB< Impl >::squash(), DefaultCommit< Impl >::toIEW, and DefaultCommit< Impl >::youngestSeqNum.
Referenced by DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::squashFromTC(), and DefaultCommit< Impl >::squashFromTrap().
|
private |
Handles a squash from a squashAfter() request.
Definition at line 626 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::pc, DefaultCommit< Impl >::ROBSquashing, DefaultCommit< Impl >::squashAfterInst, DefaultCommit< Impl >::squashAll(), and DefaultCommit< Impl >::toIEW.
Referenced by DefaultCommit< Impl >::commit().
|
private |
Handles squashing due to an TC write.
Definition at line 609 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::pc, DefaultCommit< Impl >::ROBSquashing, DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::tcSquash, and DefaultCommit< Impl >::thread.
Referenced by DefaultCommit< Impl >::commit().
|
private |
Handles squashing due to a trap.
Definition at line 591 of file commit_impl.hh.
References DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::pc, DefaultCommit< Impl >::ROBSquashing, DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::thread, DefaultCommit< Impl >::trapInFlight, and DefaultCommit< Impl >::trapSquash.
Referenced by DefaultCommit< Impl >::commit().
void DefaultCommit< Impl >::startupStage |
Initializes stage by sending back the number of free entries.
Definition at line 317 of file commit_impl.hh.
References DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::cpu, ROB< Impl >::numFreeEntries(), DefaultCommit< Impl >::numThreads, ROB< Impl >::resetEntries(), DefaultCommit< Impl >::rob, ROB< Impl >::setActiveThreads(), and DefaultCommit< Impl >::toIEW.
void DefaultCommit< Impl >::takeOverFrom |
Takes over from another CPU's thread.
Definition at line 413 of file commit_impl.hh.
References DefaultCommit< Impl >::_nextStatus, DefaultCommit< Impl >::_status, DefaultCommit< Impl >::Active, DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::Idle, DefaultCommit< Impl >::Inactive, DefaultCommit< Impl >::numThreads, DefaultCommit< Impl >::rob, DefaultCommit< Impl >::squashAfterInst, ROB< Impl >::takeOverFrom(), DefaultCommit< Impl >::tcSquash, and DefaultCommit< Impl >::trapSquash.
void DefaultCommit< Impl >::tick |
Ticks the commit stage, which tries to commit instructions.
Definition at line 656 of file commit_impl.hh.
References DefaultCommit< Impl >::_nextStatus, DefaultCommit< Impl >::Active, DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::committedStores, ROB< Impl >::countInsts(), DefaultCommit< Impl >::cpu, ROB< Impl >::doSquash(), DPRINTF, DefaultCommit< Impl >::Inactive, ROB< Impl >::isDoneSquashing(), ROB< Impl >::isEmpty(), DefaultCommit< Impl >::markCompletedInsts(), ProbePointArg< Arg >::notify(), ROB< Impl >::numFreeEntries(), DefaultCommit< Impl >::ppCommitStall, ROB< Impl >::readHeadInst(), DefaultCommit< Impl >::rob, DefaultCommit< Impl >::ROBSquashing, DefaultCommit< Impl >::Running, DefaultCommit< Impl >::toIEW, DefaultCommit< Impl >::updateStatus(), and DefaultCommit< Impl >::wroteToTimeBuffer.
|
private |
Updates commit stats based on this instruction.
Definition at line 1435 of file commit_impl.hh.
References DefaultCommit< Impl >::cpu, and Stats::Group::stats.
Referenced by DefaultCommit< Impl >::commitHead().
|
private |
Updates the overall status of commit with the nextStatus, and tell the CPU if commit is active/inactive.
Definition at line 463 of file commit_impl.hh.
References DefaultCommit< Impl >::_nextStatus, DefaultCommit< Impl >::_status, DefaultCommit< Impl >::Active, DefaultCommit< Impl >::activeThreads, DefaultCommit< Impl >::changedROBNumEntries, DefaultCommit< Impl >::commitStatus, DefaultCommit< Impl >::cpu, DPRINTF, DefaultCommit< Impl >::FetchTrapPending, DefaultCommit< Impl >::Inactive, and DefaultCommit< Impl >::TrapPending.
Referenced by DefaultCommit< Impl >::tick().
|
private |
Next commit status, to be set at the end of the cycle.
Definition at line 124 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::takeOverFrom(), DefaultCommit< Impl >::tick(), and DefaultCommit< Impl >::updateStatus().
|
private |
Overall commit status.
Definition at line 122 of file commit.hh.
Referenced by DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::takeOverFrom(), and DefaultCommit< Impl >::updateStatus().
|
private |
Pointer to the list of active threads.
Definition at line 462 of file commit.hh.
Referenced by DefaultCommit< Impl >::changedROBEntries(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::getCommittingThread(), DefaultCommit< Impl >::oldestReady(), DefaultCommit< Impl >::setActiveThreads(), DefaultCommit< Impl >::startupStage(), DefaultCommit< Impl >::tick(), and DefaultCommit< Impl >::updateStatus().
|
private |
Have we had an interrupt pending and then seen it de-asserted because of a masking change? In this case the variable is set and the next time interrupts are enabled and pending the pipeline will squash to avoid a possible livelock senario.
Definition at line 474 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), and DefaultCommit< Impl >::handleInterrupt().
|
private |
True if last committed microop can be followed by an interrupt.
Definition at line 468 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), and DefaultCommit< Impl >::handleInterrupt().
|
private |
Records if the number of ROB entries has changed this cycle.
If it has, then the number of free entries must be re-broadcast.
Definition at line 375 of file commit.hh.
Referenced by DefaultCommit< Impl >::changedROBEntries(), DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::getInsts(), DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::takeOverFrom(), and DefaultCommit< Impl >::updateStatus().
|
private |
Records if commit should check if the ROB is truly empty (see commit_impl.hh).
Definition at line 459 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), and DefaultCommit< Impl >::DefaultCommit().
|
private |
Commit policy used in SMT mode.
Definition at line 128 of file commit.hh.
Referenced by DefaultCommit< Impl >::DefaultCommit(), and DefaultCommit< Impl >::getCommittingThread().
|
private |
Per-thread status.
Definition at line 126 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::getCommittingThread(), DefaultCommit< Impl >::getInsts(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::oldestReady(), DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::roundRobin(), DefaultCommit< Impl >::squashAfter(), DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::squashFromTC(), DefaultCommit< Impl >::squashFromTrap(), DefaultCommit< Impl >::takeOverFrom(), DefaultCommit< Impl >::tick(), and DefaultCommit< Impl >::updateStatus().
|
private |
Records if there were any stores committed this cycle.
Definition at line 455 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::DefaultCommit(), and DefaultCommit< Impl >::tick().
|
private |
|
private |
Commit width, in instructions.
Definition at line 412 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), and DefaultCommit< Impl >::DefaultCommit().
|
private |
Pointer to O3CPU.
Definition at line 362 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::CommitStats::CommitStats(), DefaultCommit< Impl >::generateTrapEvent(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::squashFromTC(), DefaultCommit< Impl >::squashFromTrap(), DefaultCommit< Impl >::startupStage(), DefaultCommit< Impl >::tick(), DefaultCommit< Impl >::updateComInstStats(), and DefaultCommit< Impl >::updateStatus().
|
private |
Is a drain imminent? Commit has found an instruction boundary while no interrupts were present or in flight.
This was the last architecturally committed instruction. Interrupts disabled and pipeline flushed. Waiting for structures to finish draining.
Definition at line 430 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::drainResume(), and DefaultCommit< Impl >::propagateInterrupt().
|
private |
Is a drain pending? Commit is looking for an instruction boundary while there are no pending interrupts.
Definition at line 423 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::drain(), and DefaultCommit< Impl >::drainResume().
|
private |
Definition at line 340 of file commit.hh.
Referenced by DefaultCommit< Impl >::setFetchQueue().
|
private |
Definition at line 404 of file commit.hh.
Referenced by DefaultCommit< Impl >::setFetchQueue().
|
private |
Definition at line 342 of file commit.hh.
Referenced by DefaultCommit< Impl >::setFetchQueue().
|
private |
Wire to read information from IEW queue.
Definition at line 348 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::markCompletedInsts(), and DefaultCommit< Impl >::setIEWQueue().
|
private |
Wire to read information from rename queue.
Definition at line 354 of file commit.hh.
Referenced by DefaultCommit< Impl >::getInsts(), and DefaultCommit< Impl >::setRenameQueue().
|
private |
Definition at line 480 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::executingHtmTransaction(), and DefaultCommit< Impl >::resetHtmStartsStops().
|
private |
Definition at line 481 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::executingHtmTransaction(), and DefaultCommit< Impl >::resetHtmStartsStops().
|
private |
IEW instruction queue interface.
Definition at line 345 of file commit.hh.
Referenced by DefaultCommit< Impl >::setIEWQueue().
IEW* DefaultCommit< Impl >::iewStage |
The pointer to the IEW stage.
Used solely to ensure that various events (traps, interrupts, syscalls) do not occur until all stores have written back.
Definition at line 170 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), and DefaultCommit< Impl >::setIEWStage().
|
private |
IEW to Commit delay.
Definition at line 396 of file commit.hh.
Referenced by DefaultCommit< Impl >::setIEWQueue(), and DefaultCommit< Impl >::setTimeBuffer().
|
private |
The interrupt fault.
Definition at line 438 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::isDrained(), and DefaultCommit< Impl >::propagateInterrupt().
|
private |
The sequence number of the last commited instruction.
Definition at line 449 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), and DefaultCommit< Impl >::squashAll().
|
private |
|
private |
Number of Active Threads.
Definition at line 418 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::drainSanityCheck(), DefaultCommit< Impl >::getCommittingThread(), DefaultCommit< Impl >::isDrained(), DefaultCommit< Impl >::setRenameMap(), DefaultCommit< Impl >::startupStage(), and DefaultCommit< Impl >::takeOverFrom().
|
private |
The commit PC state of each thread.
Refers to the instruction that is currently being processed/committed.
Definition at line 443 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::instAddr(), DefaultCommit< Impl >::isDrained(), DefaultCommit< Impl >::microPC(), DefaultCommit< Impl >::nextInstAddr(), DefaultCommit< Impl >::pcState(), DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::squashFromTC(), and DefaultCommit< Impl >::squashFromTrap().
|
private |
Probe Points.
Definition at line 131 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts().
|
private |
Definition at line 132 of file commit.hh.
Referenced by DefaultCommit< Impl >::tick().
|
private |
To probe when an instruction is squashed.
Definition at line 134 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitInsts().
|
private |
Priority List used for Commit Policy.
Definition at line 393 of file commit.hh.
Referenced by DefaultCommit< Impl >::deactivateThread(), DefaultCommit< Impl >::DefaultCommit(), and DefaultCommit< Impl >::roundRobin().
|
private |
Rename map interface.
Definition at line 465 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::DefaultCommit(), and DefaultCommit< Impl >::setRenameMap().
|
private |
Rename instruction queue interface, for ROB.
Definition at line 351 of file commit.hh.
Referenced by DefaultCommit< Impl >::setRenameQueue().
|
private |
Rename to ROB delay.
Definition at line 402 of file commit.hh.
Referenced by DefaultCommit< Impl >::setRenameQueue().
|
private |
Rename width, in instructions.
Used so ROB knows how many instructions to get from the rename instruction queue.
Definition at line 409 of file commit.hh.
Referenced by DefaultCommit< Impl >::getInsts().
ROB* DefaultCommit< Impl >::rob |
ROB interface.
Definition at line 358 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::drainSanityCheck(), DefaultCommit< Impl >::getInsts(), DefaultCommit< Impl >::isDrained(), DefaultCommit< Impl >::numROBFreeEntries(), DefaultCommit< Impl >::oldestReady(), DefaultCommit< Impl >::roundRobin(), DefaultCommit< Impl >::setROB(), DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::startupStage(), DefaultCommit< Impl >::takeOverFrom(), and DefaultCommit< Impl >::tick().
|
private |
Wire to read information from IEW (for ROB).
Definition at line 338 of file commit.hh.
Referenced by DefaultCommit< Impl >::setTimeBuffer().
|
private |
Instruction passed to squashAfter().
The squash after implementation needs to buffer the instruction that caused a squash since this needs to be passed to the fetch stage once squashing starts.
Definition at line 390 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::squashAfter(), DefaultCommit< Impl >::squashFromSquashAfter(), and DefaultCommit< Impl >::takeOverFrom().
|
private |
|
private |
Records if a thread has to squash this cycle due to an XC write.
Definition at line 381 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::generateTCEvent(), DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::squashFromTC(), and DefaultCommit< Impl >::takeOverFrom().
|
private |
Vector of all of the threads.
Definition at line 365 of file commit.hh.
Referenced by DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::generateTrapEvent(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::setThreads(), DefaultCommit< Impl >::squashFromTC(), and DefaultCommit< Impl >::squashFromTrap().
|
private |
Time buffer interface.
Definition at line 332 of file commit.hh.
Referenced by DefaultCommit< Impl >::setTimeBuffer().
|
private |
Wire to write information heading to previous stages.
Definition at line 335 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::commitHead(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::setTimeBuffer(), DefaultCommit< Impl >::squashAll(), DefaultCommit< Impl >::squashFromSquashAfter(), DefaultCommit< Impl >::startupStage(), and DefaultCommit< Impl >::tick().
|
private |
Records if there is a trap currently in flight.
Definition at line 452 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::generateTCEvent(), DefaultCommit< Impl >::generateTrapEvent(), and DefaultCommit< Impl >::squashFromTrap().
|
private |
The latency to handle a trap.
Used when scheduling trap squash event.
Definition at line 435 of file commit.hh.
Referenced by DefaultCommit< Impl >::generateTrapEvent().
|
private |
Records if a thread has to squash this cycle due to a trap.
Definition at line 378 of file commit.hh.
Referenced by DefaultCommit< Impl >::clearStates(), DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::propagateInterrupt(), DefaultCommit< Impl >::squashFromTrap(), and DefaultCommit< Impl >::takeOverFrom().
|
private |
Records that commit has written to the time buffer this cycle.
Used for the CPU to determine if it can deschedule itself if there is no activity.
Definition at line 370 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), and DefaultCommit< Impl >::tick().
|
private |
The sequence number of the youngest valid instruction in the ROB.
Definition at line 446 of file commit.hh.
Referenced by DefaultCommit< Impl >::commit(), DefaultCommit< Impl >::DefaultCommit(), DefaultCommit< Impl >::getInsts(), and DefaultCommit< Impl >::squashAll().