diff options
Diffstat (limited to 'sim/igen/igen.c')
-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"); |