From bcb829fdbd9711e4770dbff9bfade789b2989d50 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 15 May 1998 23:31:22 +0000 Subject: [PATCH] * cgen-trace.c (trace_insn_init): New arg first_p. All callers updated. (trace_insn_fini): New arg last_p. All callers updated. * cgen-trace.h (trace_insn_init,trace_insn_fini): Update. (TRACE_INSN_INIT,TRACE_INSN_FINI): Update. * genmloop.sh (engine_resume): Update. --- sim/common/ChangeLog | 9 +++++++++ sim/common/cgen-trace.c | 7 ++++--- sim/common/genmloop.sh | 4 ++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 6fe723977fa..ee51dd94351 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,12 @@ +Fri May 15 16:06:05 1998 Doug Evans + + * cgen-trace.c (trace_insn_init): New arg first_p. + All callers updated. + (trace_insn_fini): New arg last_p. All callers updated. + * cgen-trace.h (trace_insn_init,trace_insn_fini): Update. + (TRACE_INSN_INIT,TRACE_INSN_FINI): Update. + * genmloop.sh (engine_resume): Update. + Fri May 15 15:59:00 1998 Joyce Janczyn * Make-common.in (install-common): Run ranlib on installed copy of diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 1766980cb7e..c38901467b4 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -57,14 +57,14 @@ static char *bufptr; static unsigned long last_cycle_count; void -trace_insn_init (SIM_CPU *cpu) +trace_insn_init (SIM_CPU *cpu, int first_p) { bufptr = trace_buf; *bufptr = 0; } void -trace_insn_fini (SIM_CPU *cpu) +trace_insn_fini (SIM_CPU *cpu, int last_p) { if (CPU_PROFILE_FLAGS (cpu) [PROFILE_MODEL_IDX]) { @@ -96,6 +96,7 @@ trace_insn (SIM_CPU *cpu, const struct cgen_insn *opcode, SIZE_PC, (unsigned) pc, SIZE_INSTRUCTION, CGEN_INSN_MNEMONIC (opcode)); + printed_result_p = 0; return; } @@ -150,7 +151,7 @@ trace_insn (SIM_CPU *cpu, const struct cgen_insn *opcode, SIZE_LOCATION, SIZE_LOCATION, buf, SIZE_INSTRUCTION, #if 0 - CGEN_INSN_SYNTAX (opcode)->mnemonic + CGEN_INSN_NAME (opcode) #else disasm_buf #endif diff --git a/sim/common/genmloop.sh b/sim/common/genmloop.sh index e2a283cbec9..591eb66c979 100644 --- a/sim/common/genmloop.sh +++ b/sim/common/genmloop.sh @@ -192,7 +192,7 @@ engine_resume (SIM_DESC sd, int step, int siggnal) ++insn_count; engine->jmpbuf = NULL; - TRACE_INSN_FINI ((sim_cpu *) cpu); + TRACE_INSN_FINI ((sim_cpu *) cpu, 1); PROFILE_EXEC_TIME (CPU_PROFILE_DATA (cpu)) += sim_elapsed_time_since (start_time); PROFILE_TOTAL_INSN_COUNT (CPU_PROFILE_DATA (cpu)) @@ -313,7 +313,7 @@ cat <