summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2002-06-18 22:15:03 +0000
committerChris Demetriou <cgd@google.com>2002-06-18 22:15:03 +0000
commit29c3e843121fa1e149c80185dacd299de8b4bc17 (patch)
tree86787e931e134b20c3926945d094bc5321253b04 /sim
parente2f10d896ceb18c27be14d54f4247558c5e11d53 (diff)
downloadgdb-29c3e843121fa1e149c80185dacd299de8b4bc17.tar.gz
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.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog7
-rw-r--r--sim/mips/mdmx.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 56e5de7c8f8..9b757823155 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2002-06-18 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_firmware_command): Initialize `address'.
diff --git a/sim/mips/mdmx.c b/sim/mips/mdmx.c
index 96abe1ddc12..4955e821246 100644
--- a/sim/mips/mdmx.c
+++ b/sim/mips/mdmx.c
@@ -25,7 +25,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* 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;