摘要 |
PROBLEM TO BE SOLVED: To provide an emulation program for properly performing emulation when a page fault occurs.SOLUTION: A first binary code 133 of a target machine is read and converted into a second binary code of a host machine 100, a third binary code added with an instruction of an HTM (hardware transaction memory) 502 to return a state of a memory to an unexecuted state in response to an interruption of the execution is created, and executed. An emulation program 132 determines whether activation is based on an interruption of a page fault in response to the return of the state of the memory to the unexecuted state of an instruction string on the basis of activation of the HTM 502, and in the case of determining to be based on the interruption by the page fault, makes a switch to interpreter execution to read a binary code 133 of the target machine, acquires a fourth binary code of the host machine corresponding to each instruction belonging to the instruction string, and re-executes the fourth binary code.SELECTED DRAWING: Figure 2 |