Binary translation of self-modifying code
Abstract
A simulator includes a binary translator to translate target code into host instructions to be executed on a host processor. To identify target instructions which may be modified by self-modifying code, the simulator determines whether a target instruction to be translated resides in a writeable page, and if so, inserts a run-time check into a translation cache along with translated instructions corresponding to such target instructions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 39.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: identifying an original instruction having a memory address in a memory block with a write permission; copying said original instruction to form a copy; using a processor for translating said copy into one or more translated instructions; and inserting said one or more translated instructions and a check instruction which allows checking of said translated instruction at run time of the translated instruction into a translation block in a memory.
- Claim 2Depends on #1
The method of claim 1 , further comprising: executing said check instruction.
- Claim 3Depends on #2
The method of claim 2 , wherein said executing comprises: loading a current instruction at the memory address; comparing the current instruction to the copy; and invalidating said one or more translated instructions.
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 39 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (4)
- Kim et al, "Implementing optimizations at decode time", IEEE, ISCA, pp. 221-232, 2002.
- Kupferman et al, "An automatic theoretic approach to barnching time model checking", Jour. of the ACM, vol. 47, No. 2, pp. 312-360, 2000.
- Oi, "On the design of the local varibable cache in a hardware translation based Java Virtual Machine", ACM LCTES, pp. 87-94, 2005.
- Wood et al, "An in cache address translation mechanism", IEEE, pp. 358-365, 1986.