Retargetable Instruction Set Simulators
First Claim
1. A method of simulating an instruction set architecture (ISA) with a instruction set simulator (ISS), comprising:
- fetching a first decoded instruction during a run time, wherein the decoded instruction is decoded from an original instruction in a target application program during a compile time preceding the run time, the decoded instruction pointing to a template configured to implement the functionality of the instruction;
determining whether the fetched instruction is modified from the original instruction; and
executing the designated template if the instruction was not modified.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods for simulating an instruction set architecture (ISA) with a instruction set simulator (ISS) are provided. One exemplary embodiment of the methods includes fetching a first decoded instruction during a run time, where the decoded instruction is decoded from an original instruction in a target application program during a compile time preceding the run time. The decoded instruction can designate a template configured to implement the functionality of the original instruction. The method also preferably includes determining whether the fetched instruction is modified from the original instruction and then executing the designated template if the instruction was not modified. The method can also include decoding the original instruction during the compile time by selecting a template corresponding to the original instruction and then customizing the template based on the data in original instruction. The method can also include optimizing the customized template during the compile time.
-
Citations
27 Claims
-
1. A method of simulating an instruction set architecture (ISA) with a instruction set simulator (ISS), comprising:
-
fetching a first decoded instruction during a run time, wherein the decoded instruction is decoded from an original instruction in a target application program during a compile time preceding the run time, the decoded instruction pointing to a template configured to implement the functionality of the instruction;
determining whether the fetched instruction is modified from the original instruction; and
executing the designated template if the instruction was not modified. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A generic instruction model for use in a instruction set architecture (ISA) simulator, comprising:
-
an instruction specification usable to interpret each instruction in an ISA, the instruction specification comprising one or more operation classes;
wherein each operation class defining a set of one or more instructions, the operation class having an operation mask usable to identify instructions belonging to the class; and
further wherein the operation class comprises one or more symbols and an expression describing the class in terms of the one or more symbols, each symbol having a corresponding set of one or more symbol types, each symbol type in the set comprising information usable to determine the symbol when compared to an instruction. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A computer readable medium embodying a program of instruction executable by the machine to perform method steps for simulating an instruction set architecture (ISA), said method steps comprising:
-
fetching a first decoded instruction during a run time, wherein the decoded instruction is decoded from an original instruction in a target application program during a compile time preceding the run time, the decoded instruction pointing to a template configured to implement the functionality of the instruction;
determining whether the fetched instruction is modified from the original instruction; and
executing the designated template if the instruction was not modified. - View Dependent Claims (25, 26, 27)
-
Specification