For mips get_mem_size call. Force the return of a 32 bit value

regardless of the target's word bitsize.
This commit is contained in:
Andrew Cagney
1998-04-02 03:27:24 +00:00
parent 3dcac15f1f
commit 725fc5d927
3 changed files with 16 additions and 46 deletions

View File

@@ -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;
}