Renesas SuperH Family E10A-USB User Manual
Page 36
28
Software Trace Function:
Note: This function can be supported with SHC/C++ compiler (manufactured by Renesas
Technology Corp.; including OEM and bundle products) V6.0 or later.
However, SHC/C++ compiler (including OEM and bundle products) V8.0 or later is
needed when instructions other than those compatible with SH4 are output.
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 SuperH
TM
RISC engine C/C++ Compiler,
Assembler, Optimizing Linkage Editor User’s Manual.
When the load module is downloaded on the emulator and is executed while a software trace
function is valid, the PC value that has executed the Trace(x) function, the general register value
for x, and the source lines are displayed.
To activate the software trace function, select the [Acquire Software trace] radio button in the
[Software trace] dialog box that is opened by double-clicking on the software Trace column of the
[Eventpoint] window.
Note: To cancel settings, select the [Don’t care] radio button in the [Software trace] dialog box
or select [Delete] from the popup menu that is opened by clicking on the software Trace
column with the right-mouse button.
Internal Trace Function: This function is activated by selecting the [Internal trace] radio button
in the [Trace type] group box of the [Trace mode] page. Set the trace condition to be used.
Notes: 1. If an interrupt is generated at the program execution start or end, including a step
operation, the emulator address may be acquired. In such a case, the following
message will be displayed. Ignore this address because it is not a user program address.
*** EML ***
2. If a completion-type exception occurs during exception branch acquisition, the next
address to the address in which an exception occurs is acquired.
3. Trace information cannot be acquired for the following branch instructions:
•
The BF and BT instructions whose displacement value is 0
•
Branch to H'A0000000 by reset