Invention Grant
- Patent Title: Method and apparatus for guest return address stack emulation supporting speculation
-
Application No.: US16251941Application Date: 2019-01-18
-
Publication No.: US10810014B2Publication Date: 2020-10-20
- Inventor: Mohammad A. Abdallah
- Applicant: Intel Corporation
- Applicant Address: US CA Santa Clara
- Assignee: INTEL CORPORATION
- Current Assignee: INTEL CORPORATION
- Current Assignee Address: US CA Santa Clara
- Agency: Nicholson De Vos Webster & Elliot LLP
- Main IPC: G06F9/38
- IPC: G06F9/38 ; G06F9/30 ; G06F9/455

Abstract:
A microprocessor implemented method of speculatively maintaining a guest return address stack (GRAS) in a fetch stage of a microprocessor pipeline. The method includes mapping instructions in a guest address space to corresponding instructions in a native address space. For each of one or more function calls made in the native address space, performing the following: (a) pushing a current entry into the GRAS responsive to the function call, where the current entry includes a guest target return address and a corresponding native target return address associated with the function call; (b) popping the current entry from the GRAS responsive to processing a return instruction; (c) comparing the current entry with an entry popped from a return address stack (RAS) maintained at a later stage of the pipeline; and (d) responsive to a mismatch, fetching instructions from the return address in the entry popped from the RAS.
Public/Granted literature
- US20190155609A1 METHOD AND APPARATUS FOR GUEST RETURN ADDRESS STACK EMULATION SUPPORTING SPECULATION Public/Granted day:2019-05-23
Information query