31 #ifndef __CPU_PRED_RAS_HH__
32 #define __CPU_PRED_RAS_HH__
36 #include "arch/types.hh"
38 #include "config/the_isa.hh"
102 #endif // __CPU_PRED_RAS_HH__
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.
unsigned numEntries
The number of entries in the RAS.
unsigned usedEntries
The number of used entries in the RAS.
void pop()
Pops the top address from the RAS.
void push(const TheISA::PCState &return_addr)
Pushes an address onto the RAS.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
TheISA::PCState top()
Returns the top address on the RAS.
unsigned tos
The top of stack index.
void decrTos()
Decrements the top of stack index.
void incrTos()
Increments the top of stack index.
Return address stack class, implements a simple RAS.
void init(unsigned numEntries)
Initializes RAS with a specified number of entries.
unsigned topIdx()
Returns the index of the top of the RAS.
GenericISA::SimplePCState< MachInst > PCState
ReturnAddrStack()
Creates a return address stack, but init() must be called prior to use.
std::vector< TheISA::PCState > addrStack
The RAS itself.