E SHSRN 0 B
E SHSRN 0 B
Please note the following when using this version of the simulator/debugger.
1. Source-Level Execution
1.1 Step
Even standard C libraries are executed by steps. To return to a higher-level function, enter the
[Step Out] button. In a for statement or a while statement, executing a single step does not move
execution to the next line. To move to the next line, execute two steps.
2. Line Assembly
2.1 Radix
Regardless of the Radix setting, the default for line assembly input is decimal. Specify H' or 0x as
the radix for a hexadecimal input.
3. Watch
Depending on the generated object code, local variables in a C source file that is compiled with the
optimization option enabled will not be displayed correctly. Check the generated object code by
opening the disassembly window.
If the allocation area of the specified local variable does not exist, displays as follows.
page 1 of 7
3.2 Variable Name Specification
When a name other than a variable name, such as a symbol name or a function name, is specified,
no data is displayed.
main =
When array elements exceed 1000, elements after 1000 will not be displayed.
When modifying variable contents, do not select the Japanese character string as the input data
type. For Japanese character string input, use the [Localized Dump] window.
Enclose the symbol name within braces ({ }) when using, in an expression, a symbol that satisfies
all of the following conditions.
Note that the specifications of the memory resource modification function of the
simulator/debugger differ from those of Hitachi emulators.
• When the memory attribute (Read, Write, or Read/Write) is the same after the memory
resource is modified:
The simulator/debugger assumes the memory resource size has been modified and changes the
memory resource size to the specified value.
page 2 of 7
• When the memory attribute (Read, Write, Read/Write) changes due to modification of the
memory resource:
The simulator/debugger assumes the memory resource attribute has been modified and
changes the memory resource attribute of the specified range to the specified value.
When an instruction is executed to write data in the FPU, MAC, or DSP register, the
simulator/debugger does not display access information in the trace information.
When data is written to the memory using the FMOV instruction, the simulator/debugger does not
display access information in the trace information.
For instructions that programming manuals do not describe as writing back data to registers, and if
data is written to registers as a result of the execution of such instructions, the simulator/debugger
displays such an operation as a stage of memory access and write back in the trace information.
The cycle numbers are correctly displayed.
IF DE EX MA SW IF DE EX MA SW
05 NOP 06 05 06 05
06 TRAPA #H'10 07 06 05 -- 06
-- - - - - - -- -- 06 -- -- 06
-- - - - - - -- -- 06 06 -- -- 06
-- - - - - - -- -- 06 06 -- -- 06
-- - - - - - -- -- 06 06 06 (06):SSR<-60000001 -- -- 06
-- - - - - - 08 -- -- 06 06 (06):SPC<-00001006 07 -- --
-- - - - - - 09 08 -- -- -- 08 07 --
page 3 of 7
7. Entry Point
Even when an entry point is specified by the ENTRY option of the linkage editor, the entry point
address is not set for the PC during program downloading. Set the PC before program execution.
When using an HDI with a different debugging platform, initiate the HDI with the following
procedure:
• Open the [Run...] menu from the [Start] menu on the task bar.
• In the [Run...] menu, enter the following to initiate this HDI with the /n option selected.
<Directory path name in which the HDI is installed>\hdi /n (RET)
/n initiates the HDI without loading the previously used session files.
If session files for a different debugging platform exist, the following error message is displayed
when initiating this HDI.
page 4 of 7
11. The Number of Breakpoints and the Number of Stop-at Points in the
Run... Menu
Up to a total of 255 PC breakpoints and Stop-at points in the Run... menu can be specified. If 255
breakpoints are specified, no Stop-at points in the Run... menu can be specified. Specify 255 or
fewer points for the total numbers of PC breakpoints and Stop-at points in the Run... menu.
The default input radix in the [Register] dialog box is hexadecimal regardless of the Radix setting.
If you want to input the radix other than hexadecimal, specify the prefix code such as B’. The
Radix is changed to hexadecimal setting after a value has been input in the [Register] dialog box.
If you want to use the radix other than hexadecimal as default, reset the Radix.
14. Note on Moving Source File Position after Creating Load Module
When the source file is moved after the load module has been created, the [Open] dialog box,
which specifies the source file, may be displayed during debugging the created load module.
Select the corresponding source file and click the [Open] button.
When the stack trace window is displayed with the interruption function executed, the display
before the interruption function becomes incorrect.
page 5 of 7
17. Limitation of profiler
Profiler does not support overlay function.
• In SH4BSC simulator/debugger, if the lower three bits of the source and destination addresses
differ in a DMA transfer, the last data transferred will be invalid.
e.g. SAR0=2000 DAR0=4004 DMATCR0=2 CHCR0=5491
Memory contents of address H'2000: 0102030405060708
Contents of address H'4004 after DMA transfer: 0106
• In SH4 and SH4BSC simulator/debugger, even if an instruction is modified for an address
where decoding has been completed, the pipeline is not reset and executed.
• In SH4BSC simulator/debugger, if memory is accessed by a data size that differs from the size
specified by the break data, the program may not break when the break conditions are satisfied.
To avoid this, specify the same data size for the memory access data size and break data size.
• In SH4 and SH4BSC simulator/debugger, the pipeline execution for double precision FDIV
and FSQRT instructions in the SH4 simulator/debugger are different from those in the user
system. For the SH4 simulator/debugger, one more cycle is displayed for the F3 stage pipeline.
page 6 of 7
• Pipeline Execution from an Address other than a Multiple of Four
If a pipeline execution is performed from an address other than a multiple of four, the fetch
stages will differ from those described in the programming manual.
e.g. When pipeline execution is performed from an address other than a multiple of four
Programming Manual Simulator
IF IF ID EX IF ID EX
IF ID EX IF ID EX
if ID EX if ID EX
page 7 of 7