Invention Grant
- Patent Title: Providing efficient recursion handling using compressed return address stacks (CRASs) in processor-based systems
-
Application No.: US15690812Application Date: 2017-08-30
-
Publication No.: US10331447B2Publication Date: 2019-06-25
- Inventor: Vignyan Reddy Kothinti Naresh , Anil Krishna
- Applicant: QUALCOMM Incorporated
- Applicant Address: US CA San Diego
- Assignee: QUALCOMM Incorporated
- Current Assignee: QUALCOMM Incorporated
- Current Assignee Address: US CA San Diego
- Agency: Withrow & Terranova, PLLC
- Main IPC: G06F9/38
- IPC: G06F9/38 ; G06F12/02 ; G06F9/42 ; G06F9/30 ; G06F12/0875

Abstract:
Providing efficient recursion handling using compressed return address stacks (CRASs) in processor-based systems is disclosed. In one aspect, a processor-based system provides a branch prediction circuit including a CRAS. Each CRAS entry within the CRAS includes an address field and a counter field. When a call instruction is encountered, a return address of the call instruction is compared to the address field of a top CRAS entry indicated by a CRAS top-of-stack (TOS) index. If the return address matches the top CRAS entry, the counter field of the top CRAS entry is incremented instead of adding a new CRAS entry for the return address. When a return instruction is subsequently encountered in the instruction stream, the counter field of the top CRAS entry is decremented if its value is greater than zero (0), or, if not, the top CRAS entry is removed from the CRAS.
Public/Granted literature
Information query