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.
unsigned tos
The top of stack index.
void decrTos()
Decrements the top of stack index.
void incrTos()
Increments the top of stack index.
void init(unsigned numEntries)
Initializes RAS with a specified number of entries.
GenericISA::SimplePCState< MachInst > PCState
std::vector< TheISA::PCState > addrStack
The RAS itself.