diff options
author | Michael Meissner <gnu@the-meissners.org> | 1997-05-06 19:27:57 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1997-05-06 19:27:57 +0000 |
commit | 7b167b09004bb574619edad0deca66313954687f (patch) | |
tree | 7846d687ccf14e083520195731a3446dc4f388f7 /sim/igen | |
parent | baa83bcc809c6cca57711033ffc3d169aded294a (diff) | |
download | gdb-7b167b09004bb574619edad0deca66313954687f.zip gdb-7b167b09004bb574619edad0deca66313954687f.tar.gz gdb-7b167b09004bb574619edad0deca66313954687f.tar.bz2 |
Add semantic tracing to the tic80
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/igen.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sim/igen/igen.c b/sim/igen/igen.c index fb9008d..605e1f9 100644 --- a/sim/igen/igen.c +++ b/sim/igen/igen.c @@ -255,13 +255,12 @@ print_itrace(lf *file, lf_printf(file, "#if defined(WITH_TRACE)\n"); lf_printf(file, "/* trace the instructions execution if enabled */\n"); lf_printf(file, "if (TRACE_%s_P (CPU)) {\n", phase); - lf_printf(file, " static const TRACE_INSN_DATA my_insn_data = { \"%s\", &itable[MY_INDEX].file, &itable[MY_INDEX].name, %d };\n", - phase_lc, - file_entry->line_nr); - - lf_printf(file, " trace_one_insn (SD, CPU, %s, TRACE_LINENUM_P (CPU), &my_insn_data);\n", + lf_printf(file, " trace_one_insn (SD, CPU, %s, TRACE_LINENUM_P (CPU),\n", (code & generate_with_semantic_delayed_branch) ? "cia.ip" : "cia"); - + + lf_printf(file, " itable[MY_INDEX].file, MY_INDEX, \"%s\",\n", phase_lc); + lf_printf(file, " itable[MY_INDEX].name);\n"); + lf_printf(file, "}\n"); lf_indent_suppress(file); lf_printf(file, "#endif\n"); |