
Hitachi Embedded Workshop User Manual
157
Table 2.5
Register States at Simulation Error Stop
Error Message
PC Value
Memory Access Error
When an instruction is read:
SH2-DSP and SH3-DSP series
The third instruction address before the instruction that caused the
error.
SH-1, SH-2, SH-2E, SH-3, SH-3E, and SH-4 series
The instruction address before the instruction that caused the error.
The slot address if an error occurs when a branch destination is
read.
When an instruction is executed:
The instruction address following the instruction that caused the error.
Illegal Operation
The instruction address following the instruction that caused the error.
Illegal DSP Operation The second instruction address following the instruction that caused the
error.
Invalid DSP
Instruction Code
The second instruction address following the instruction that caused the
error.
TLB Multiple Hit
The address of the instruction that caused the error.
Use the following procedure when debugging programs that include instructions that generate simulation errors.
1. First execute the program in the stop mode and confirm that there are no errors except those in the intended
locations.
2. After confirming the above, execute the program in the continuation mode.
Note: If an error occurs in the stop mode and simulation is continued after changing the simulator mode
to the continuation mode, simulation may not be performed correctly. When restarting a
simulation, always restore the register contents and the memory contents to the state prior to the
occurrence of the error.
Break Due to a Trace Buffer Overflow: After the [Break] mode is specified with [Trace Buffer Full Handling]
in the [Trace Acquisition] dialog box, the simulator/debugger stops execution when the trace buffer becomes full.
The following message is displayed in the [Output] window when execution is stopped.
Trace Buffer Full
Break Due to Execution of the SLEEP Instruction: When the SLEEP instruction is executed during
instruction execution, the simulator/debugger stops execution. The following message is displayed in the
[Output] window when execution is stopped.
Sleep
Note: When restarting execution, change the PC value to the instruction address at the restart location.
Break Due to the [Halt] Button: Users can forcibly terminate execution by clicking the [HALT] button during
instruction execution. The following message is displayed on the status bar when execution is stopped.
Stop
Execution can be resumed with the GO or STEP command.