Patents
US 7,107,580 B2#1474265 Most CitedExpiredUnited States (USPTO)Utility

Binary translation of self-modifying code

39Forward Citations (#1474265 Global)
1.9/yrCitation Velocity (#2218677 Global)
4.55Citation PageRank (#3858414 Global)
14Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

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)

  1. 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.

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising: executing said check instruction.

  3. 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)

PatentTitleYearCitations
US 2003093775 A1Processing of self-modifying code under emulation—47
US 7,904,891 B2Checking for instruction invariance to execute previously obtained translation code by comparing instruction to a copy stored when write operation to the memory portion occur20111
US 2018189041 A1Prediction mechanism for subroutine returns in binary translation sub-systems of computers—0
US 8,392,171 B2Register mapping in emulation of a target system on a host system20130
US 8,370,797 B2Data processing apparatus, method therefor, and computer program20132
US 2005015754 A1Method and system for multimode simulator generation from an instruction set architecture specification—36
WO 2013/147868 A1Hardware profiling mechanism to enable page level automatic binary translation—3
US 2009319986 A1Data processing apparatus, method therefor, and computer program—2
US 9,686,288 B2Method and apparatus for constructing security policies for web content instrumentation against browser-based attacks20174
US 10,635,465 B2Apparatuses and methods to prevent execution of a modified instruction20200
US 2003217248 A1Method and system for instruction-set architecture simulation using just in time compilation—27
US 2012110558 A1Customized binaries on-the-fly—12
US 8,086,438 B2Method and system for instruction-set architecture simulation using just in time compilation201110
US 9,542,191 B2Hardware profiling mechanism to enable page level automatic binary translation20173
US 10,545,744 B2Prediction mechanism for subroutine returns in binary translation sub-systems of computers20200

References Cited — Backward Prior Art (14)

PatentTitleYearCitations
US 5,507,030 ASuccessive translation, execution and interpretation of computer program having code at unknown locations due to execution transfer instructions having computed destination addresses1996114
US 5,560,013 AMethod of using a target processor to execute programs of a source architecture that uses multiple address spaces1996199
US 5,761,477 AMethods for safe and efficient implementations of virtual machines1998240
US 6,031,992 ACombining hardware and software to provide an improved microprocessor2000226
US 6,397,379 B1Recording in a program execution profile references to a memory-mapped active device2002181
US 6,502,237 B1Method and apparatus for performing binary translation method and apparatus for performing binary translation2002116
US 6,634,023 B1Compile method, exception handling method and computer200376
US 6,704,925 B1Dynamic binary translator with a system and method for updating and maintaining coherency of a translation cache2004210
US 6,732,220 B2Method for emulating hardware features of a foreign architecture in a host operating system environment200461
US 6,820,255 B2Method for fast execution of translated binary code utilizing database cache for low-level code correspondence200465
US 6,941,545 B1Profiling of computer programs executing in virtual memory systems2005146
US 6,954,923 B1Recording classification of instructions executed by a computer2005143
US 6,993,751 B2Placing exception throwing instructions in compiled code200668
US 7,047,394 B1Computer for execution of RISC and CISC instruction sets2006226

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.