replaced call to CGEN_INSN_SYNTAX()->mnemonic with CGEN_INSN_MNEMONIC()
authorNick Clifton <nickc@redhat.com>
Fri, 16 Jan 1998 20:36:07 +0000 (20:36 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 16 Jan 1998 20:36:07 +0000 (20:36 +0000)
sim/common/ChangeLog
sim/common/cgen-trace.c

index 32cffeb..acfabae 100644 (file)
@@ -1,3 +1,17 @@
+Fri Jan 16 12:33:09 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
+       CGEN_INSN_SYNTAX().
+
+Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * configure: Regenerated to track ../common/aclocal.m4 changes.
+       * config.in: Ditto.
+
+Mon Dec 15 23:16:03 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * aclocal.m4 (AR): Check for sigaction.
+
 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
 
        * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
@@ -61,7 +75,7 @@ Fri Nov 28 20:10:09 1997  Michael Meissner  <meissner@cygnus.com>
 
 Fri Nov 28 11:15:05 1997  Doug Evans  <devans@canuck.cygnus.com>
 
-       * gennltvals.sh: Redo syscall support to allow sanitization.
+       * gennltvals.sh: Redo syscall support.
        * nltvals.def: Regenerated.
 
 Wed Nov 26 16:49:38 1997  Michael Meissner  <meissner@cygnus.com>
index c18cdda..1766980 100644 (file)
@@ -69,13 +69,13 @@ trace_insn_fini (SIM_CPU *cpu)
   if (CPU_PROFILE_FLAGS (cpu) [PROFILE_MODEL_IDX])
     {
       unsigned long total = PROFILE_TOTAL_CYCLE_COUNT (CPU_PROFILE_DATA (cpu));
-      trace_printf (cpu, "%-*ld %-*ld ",
+      trace_printf (CPU_STATE (cpu), cpu, "%-*ld %-*ld ",
                    SIZE_CYCLE_COUNT, total - last_cycle_count,
                    SIZE_TOTAL_CYCLE_COUNT, total);
       last_cycle_count = total;
     }
 
-  trace_printf (cpu, "%s\n", trace_buf);
+  trace_printf (CPU_STATE (cpu), cpu, "%s\n", trace_buf);
 }
 
 /* For communication between trace_insn and trace_result.  */
@@ -95,7 +95,7 @@ trace_insn (SIM_CPU *cpu, const struct cgen_insn *opcode,
       cgen_trace_printf (cpu, "0x%.*x %-*s ",
                         SIZE_PC, (unsigned) pc,
                         SIZE_INSTRUCTION,
-                        CGEN_INSN_SYNTAX (opcode)->mnemonic);
+                        CGEN_INSN_MNEMONIC (opcode));
       return;
     }
 
@@ -143,7 +143,7 @@ trace_insn (SIM_CPU *cpu, const struct cgen_insn *opcode,
        }
     }
 
-  sim_disassemble_insn (opcode, abuf, pc, disasm_buf);
+  sim_disassemble_insn (cpu, opcode, abuf, pc, disasm_buf);
 
   cgen_trace_printf (cpu, "0x%.*x %-*.*s %-*s ",
                     SIZE_PC, (unsigned) pc,
@@ -168,7 +168,7 @@ trace_extract (SIM_CPU *cpu, PCADDR pc, char *name, ...)
 
   va_start (args, name);
 
-  trace_printf (cpu, "Extract: 0x%.*x: %s ", SIZE_PC, pc, name);
+  trace_printf (CPU_STATE (cpu), cpu, "Extract: 0x%.*x: %s ", SIZE_PC, pc, name);
 
   do {
     int type,ival;
@@ -178,14 +178,14 @@ trace_extract (SIM_CPU *cpu, PCADDR pc, char *name, ...)
     if (fmt)
       {
        if (printed_one_p)
-         trace_printf (cpu, ", ");
+         trace_printf (CPU_STATE (cpu), cpu, ", ");
        printed_one_p = 1;
        type = va_arg (args, int);
        switch (type)
          {
          case 'x' :
            ival = va_arg (args, int);
-           trace_printf (cpu, fmt, ival);
+           trace_printf (CPU_STATE (cpu), cpu, fmt, ival);
            break;
          default :
            abort ();
@@ -194,7 +194,7 @@ trace_extract (SIM_CPU *cpu, PCADDR pc, char *name, ...)
   } while (fmt);
 
   va_end (args);
-  trace_printf (cpu, "\n");
+  trace_printf (CPU_STATE (cpu), cpu, "\n");
 }
 
 void