Abstract

Return-Address Stack (RAS) has been widely used in modern high-performance microprocessor to predict the return address of a routine. But speculative execution frequently corrupts the RAS, making repair mechanisms necessary. In this paper, based on analysis of RAS activities after misprediction and current RAS repair mechanisms, an effective return address prediction structure called Self-Aligning Return-Address Stack (SARAS) is proposed. SARAS is composed of a classical RAS, a self-aligning queue and a top-of-stack counter. The self-aligning queue records the contents popped from RAS for recovery. The top-of-stack counter tracks the latest correct position of the top-of-stack pointer. The experiment results show that SARAS can reduces hardware-cost and enhances prediction accuracy, with a 32-entry stack, the average prediction accuracy of SARAS is nearly 100%, improving performance by 3.91% up to 11.27% over the conventional checkpointing repair mechanisms for RAS. At the same hardware budget, this speedup is even higher.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call