摘要:
A microprocessor having a buffer (10) or memory capable of holding a plurality of instructions in advance has a function to permitting the insertion of a special bus cycle for outputting the internal information of the microprocessor externally of the microprocessor in a predetermined operation mode at the time of each execution. The information inside the microprocessor, which is to be outputted to the exterior in the special bus cycle, is exemplified by the address of the executed instruction in a memory space, an instruction code or the code for identifying said executed instruction in the instruction group prefetched. In the emulation of the system using the instruction prefetch type microprocessor, according to the means described above, the instruction that has been executed can be easily known from the exterior so that an accurate emulation analysis is possible and facilitating the analysis of the trace data thereby to improve the debugging efficiency.
摘要:
A microprocessor having a buffer (10) or memory capable of holding a plurality of instructions in advance has a function to permitting the insertion of a special bus cycle for outputting the internal information of the microprocessor externally of the microprocessor in a predetermined operation mode at the time of each execution. The information inside the microprocessor, which is to be outputted to the exterior in the special bus cycle, is exemplified by the address of the executed instruction in a memory space, an instruction code or the code for identifying said executed instruction in the instruction group prefetched. In the emulation of the system using the instruction prefetch type microprocessor, according to the means described above, the instruction that has been executed can be easily known from the exterior so that an accurate emulation analysis is possible and facilitating the analysis of the trace data thereby to improve the debugging efficiency.
摘要:
The data processor 1 has a mode in which instructions are executed one module at a time, the module being a subroutine of high-level language, and a break is activated immediately after executing a return instruction at the end of the module. This mode is set in the control register (MSCNT) by an emulator. In this mode, a return address, the address to which the processing returns from the subroutine, is saved in the return address hold register (RAH) by using a return address which is stacked at a time of executing a branch instruction. The return address saved in the return address hold register (RAH) is compared by the comparator circuit 52 with the return address which is popped up from the stack into the instruction pointer (IP) at the execution of the return instruction at the end of the subroutine. When they agree, a break is activated.
摘要:
The data processor 1 has a mode in which instructions are executed one module at a time, the module being a subroutine of high-level language, and a break is activated immediately after executing a return instruction at the end of the module. This mode is set in the control register (MSCNT) by an emulator. In this mode, a return address, the address to which the processing returns from the subroutine, is saved in the return address hold register (RAH) by using a return address which is stacked at a time of executing a branch instruction. The return address saved in the return address hold register (RAH) is compared by the comparator circuit 52 with the return address which is popped up from the stack into the instruction pointer (IP) at the execution of the return instruction at the end of the subroutine. When they agree, a break is activated.