User`s manual

SuperH Family E10A-USB Emulator for Multi-core Microcomputers Section 7 Tutorial SH-4A
R20UT0363EJ0500 Rev. 5.00 Page 250 of 296
Aug 10, 2012
7.20 Trace Functions
The emulator has three branch-instruction trace functions.
Trace function can acquired the event shown in below.
(a) Branch generation information
The branch source and branch destination addresses are acquired.
(b) Memory access information within the specified range
Memory access in the specified range can be acquired by trace.
Two memory ranges can be specified for channels Ch5(OA) or Ch6(OA). The read, write, or
read/write cycle can be selected as the bus cycle for trace acquisition.
This function is called the window trace function.
(c) Software trace
When a specific instruction is executed, the PC value at execution and the contents of one
general register are acquired by trace. Describe the Trace(x) function (x is a variable name) to
be compiled and linked beforehand. For details, refer to the SHC/C++ compiler manual.
When the load module is loaded on the emulator and a valid software trace function is
executed, the PC value that has executed the Trace(x) function, the variable for x, and the
source lines are displayed.
7.20.1 Internal Trace Function
This function is achieved by using the MPU’s internal trace buffer.
Notes: 1. The number of branch instructions that can be acquired by a trace differs according to
the product. For the number that can be specified for each product, refer to the online
help.
2. The internal trace function is not supported for all products. For details on the
specifications of each product, refer to the online help.
3. The internal trace function is not extended for all products. For details on the
specifications of each product, refer to the online help.