摘要 |
PROBLEM TO BE SOLVED: To solve such a problem that when an instruction is directly edited by a memory window or the like of a debugger in a conventional simulator (simulation apparatus), the edited contents may be made different from the contents of a decode cache and a correct instruction cannot be executed. SOLUTION: A simulator (simulation apparatus 10) includes: an instruction change notification part 1211 which, when the contents of a memory are rewritten and the contents are an instruction, sets a change flag in a decode cache of the corresponding instruction; and an execution simulation part 123 for detecting whether the change flag exists in the decode cache during execution of the instruction, and when the change flag exists, performing re-fetch and decoding. COPYRIGHT: (C)2011,JPO&INPIT
|