Dynamic execution layer interface for replacing instructions requiring unavailable hardware functionality with patch code and caching
Abstract
A system and method for dynamically patching code. In one embodiment, a method includes intercepting original program instructions during execution of the program using a software interface, determining whether associated instructions have been cached in a code cache of the software interface and, if so, executing the cached instructions from the code cache, if associated instructions have not been cached, determining if the original program instructions require unavailable hardware functionality, and dynamically replacing the original program instructions with replacement instructions that do not require unavailable hardware functionality if it is determined that the original program instructions require unavailable hardware functionality, the dynamic replacing including fetching replacing instructions, storing the replacement instructions in the code cache, and executing the replacement instructions from the code cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 47.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for dynamically patching code, comprising: gaining control over the execution of a program using a software interface; intercepting original program instructions during execution of the program using the software interface; determining whether associated instructions have been cached in a code cache of the software interface and, if so, executing the cached instructions from the code cache; if associated instructions have not been cached, determining if the original program instructions require unavailable hardware functionality; and dynamically replacing the original program instruct
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 47 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (2)
- Application entitled "System and Method for Facilitating Profiling an Application" by Fisher, et al.; assigned application Ser. No. 10/606,867; filed on Jun. 26, 2003.
- Bala, et al.; "Dynamo: A transparent Dynamic Optimization System"; pp. 1-12.