diff options
author | Doug Evans <dje@google.com> | 1998-05-15 23:31:22 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-05-15 23:31:22 +0000 |
commit | bcb829fdbd9711e4770dbff9bfade789b2989d50 (patch) | |
tree | ec4a12c96ee9e334069c9781d69c311acaf4ed7a /sim/common/cgen-trace.c | |
parent | 9c73b8e49cff0b8719dd31badb4cd4c1eb580e5c (diff) | |
download | gdb-bcb829fdbd9711e4770dbff9bfade789b2989d50.zip gdb-bcb829fdbd9711e4770dbff9bfade789b2989d50.tar.gz gdb-bcb829fdbd9711e4770dbff9bfade789b2989d50.tar.bz2 |
* 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.
Diffstat (limited to 'sim/common/cgen-trace.c')
-rw-r--r-- | sim/common/cgen-trace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 1766980..c389014 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 |