mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user