This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[applied mips sim patch] fix warnings in MDMX code.
- From: cgd at broadcom dot com
- To: gdb-patches at sources dot redhat dot com
- Cc: cgd at broadcom dot com
- Date: Tue, 18 Jun 2002 15:15:42 -0700 (PDT)
- Subject: [applied mips sim patch] fix warnings in MDMX code.
[ thanks to Andrew for pointing them out to me. ]
2002-06-18 Chris Demetriou <cgd@broadcom.com>
* mdmx.c (SD_): Delete.
(Unpredictable): Re-define, for now, to directly invoke
unpredictable_action().
(mdmx_acc_op): Fix error in .ob immediate handling.
Index: mdmx.c
===================================================================
RCS file: /cvs/src/src/sim/mips/mdmx.c,v
retrieving revision 1.2
diff -u -p -r1.2 mdmx.c
--- mdmx.c 3 Jun 2002 21:00:29 -0000 1.2
+++ mdmx.c 18 Jun 2002 22:14:28 -0000
@@ -25,7 +25,11 @@ with this program; if not, write to the
/* Within mdmx.c we refer to the sim_cpu directly. */
#define CPU cpu
#define SD (CPU_STATE(CPU))
-#define SD_ cpu, cia, -1
+
+/* XXX FIXME: temporary hack while the impact of making unpredictable()
+ a "normal" (non-igen) function is evaluated. */
+#undef Unpredictable
+#define Unpredictable() unpredictable_action (cpu, cia)
/* MDMX Representations
@@ -874,7 +878,7 @@ mdmx_acc_op(sim_cpu *cpu,
ob_vector_acc(ACC.ob, op1, ValueFPR(vt, fmt_mdmx), ob_acc[op]);
break;
case sel_imm:
- ob_map_acc(ACC.ob, op1, op2, ob_acc[op]);
+ ob_map_acc(ACC.ob, op1, vt, ob_acc[op]);
break;
}
break;