Go to the documentation of this file.
29 #ifndef __CPU_PRED_RAS_HH__
30 #define __CPU_PRED_RAS_HH__
34 #include "arch/types.hh"
36 #include "config/the_isa.hh"
100 #endif // __CPU_PRED_RAS_HH__
void init(unsigned numEntries)
Initializes RAS with a specified number of entries.
void decrTos()
Decrements the top of stack index.
unsigned tos
The top of stack index.
std::vector< TheISA::PCState > addrStack
The RAS itself.
unsigned usedEntries
The number of used entries in the RAS.
unsigned topIdx()
Returns the index of the top of the RAS.
void restore(unsigned top_entry_idx, const TheISA::PCState &restored)
Changes index to the top of the RAS, and replaces the top address with a new target.
void incrTos()
Increments the top of stack index.
Return address stack class, implements a simple RAS.
GenericISA::DelaySlotPCState< MachInst > PCState
unsigned numEntries
The number of entries in the RAS.
ReturnAddrStack()
Creates a return address stack, but init() must be called prior to use.
void push(const TheISA::PCState &return_addr)
Pushes an address onto the RAS.
void pop()
Pops the top address from the RAS.
TheISA::PCState top()
Returns the top address on the RAS.
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17