aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-04-02 03:27:24 +0000
committerAndrew Cagney <cagney@redhat.com>1998-04-02 03:27:24 +0000
commit725fc5d927e599b2a7785e2318cf3012e2c98ee0 (patch)
treecb4ce48cdbfbf7f2e72dc2c5954eb8716cad5d9a /sim/mips
parent3dcac15f1f3f940d7f5dad402155dec74291432b (diff)
downloadgdb-725fc5d927e599b2a7785e2318cf3012e2c98ee0.zip
gdb-725fc5d927e599b2a7785e2318cf3012e2c98ee0.tar.gz
gdb-725fc5d927e599b2a7785e2318cf3012e2c98ee0.tar.bz2
For mips get_mem_size call. Force the return of a 32 bit value
regardless of the target's word bitsize.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog12
-rw-r--r--sim/mips/interp.c7
-rw-r--r--sim/mips/mips.igen43
3 files changed, 16 insertions, 46 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index ce6e9e5..fd91728 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,9 +1,19 @@
+Thu Apr 2 10:59:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
+ not an address sized quantity. Return zero for cache sizes.
+
+Wed Apr 1 23:47:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * mips.igen (r3900): r3900 does not support 64 bit integer
+ operations.
+
start-sanitize-sky
Wed Apr 1 08:20:31 1998 Frank Ch. Eigler <fche@cygnus.com>
* mips.igen (SQC2/LQC2): Make bodies sky-target-only also.
-end-sanitize-sky
+end-sanitize-sky
start-sanitize-sky
Mon Mar 30 18:41:43 1998 Frank Ch. Eigler <fche@cygnus.com>
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index 3268ab1..7be7ac6 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -1123,9 +1123,12 @@ sim_monitor (SIM_DESC sd,
/* [A0 + 4] = instruction cache size */
/* [A0 + 8] = data cache size */
{
- address_word value = MEM_SIZE /* FIXME STATE_MEM_SIZE (sd) */;
+ unsigned_4 value = MEM_SIZE /* FIXME STATE_MEM_SIZE (sd) */;
+ unsigned_4 zero = 0;
H2T (value);
- sim_write (sd, A0, (char *)&value, sizeof (value));
+ sim_write (sd, A0 + 0, (char *)&value, 4);
+ sim_write (sd, A0 + 4, (char *)&zero, 4);
+ sim_write (sd, A0 + 8, (char *)&zero, 4);
/* sim_io_eprintf (sd, "sim: get_mem_info() depreciated\n"); */
break;
}
diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen
index 37c4deb..60a37e6 100644
--- a/sim/mips/mips.igen
+++ b/sim/mips/mips.igen
@@ -696,7 +696,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -722,7 +721,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -747,7 +745,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -770,7 +767,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -793,7 +789,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -826,7 +821,6 @@
"ddivu r<RS>, r<RT>"
*mipsIII:
*mipsIV:
-*r3900:
*vr5000:
// start-sanitize-vr4320
*vr4320:
@@ -995,7 +989,6 @@
000000,5.RS,5.RT,0000000000011100:SPECIAL:64::DMULT
"dmult r<RS>, r<RT>"
*mipsIII,mipsIV:
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1022,7 +1015,6 @@
000000,5.RS,5.RT,0000000000011101:SPECIAL:64::DMULTU
"dmultu r<RS>, r<RT>"
*mipsIII,mipsIV:
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1060,7 +1052,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1084,7 +1075,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1108,7 +1098,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1132,7 +1121,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1156,7 +1144,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1180,7 +1167,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1204,7 +1190,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1228,7 +1213,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1252,7 +1236,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1276,7 +1259,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1301,7 +1283,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1536,7 +1517,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1654,7 +1634,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1702,7 +1681,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1856,7 +1834,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -1907,7 +1884,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2180,7 +2156,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2599,7 +2574,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2650,7 +2624,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2697,7 +2670,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2743,7 +2715,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2826,7 +2797,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -2874,7 +2844,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3468,7 +3437,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3493,7 +3461,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3518,7 +3485,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3543,7 +3509,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3568,7 +3533,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3593,7 +3557,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3618,7 +3581,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3643,7 +3605,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3668,7 +3629,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3693,7 +3653,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3718,7 +3677,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19
@@ -3743,7 +3701,6 @@
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
-*r3900:
// start-sanitize-tx19
*tx19:
// end-sanitize-tx19