* sim-core.c (sim_core_attach): Revise last patch.
Use 0xa5 as initial value.
This commit is contained in:
parent
69d2f4a744
commit
0471756934
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
|
Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
|
||||||
|
|
||||||
* sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.
|
* sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.
|
||||||
|
Use 0xa5 as initial value.
|
||||||
(sim_core_map_detach): Use free instead of zfree.
|
(sim_core_map_detach): Use free instead of zfree.
|
||||||
|
|
||||||
Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
|
Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
|
||||||
|
|
|
@ -339,7 +339,10 @@ sim_core_attach (SIM_DESC sd,
|
||||||
if (optional_buffer == NULL)
|
if (optional_buffer == NULL)
|
||||||
{
|
{
|
||||||
int padding = (addr % sizeof (unsigned64));
|
int padding = (addr % sizeof (unsigned64));
|
||||||
free_buffer = xmalloc ((modulo == 0 ? nr_bytes : modulo) + padding);
|
unsigned int bytes = (modulo == 0 ? nr_bytes : modulo) + padding;
|
||||||
|
free_buffer = xmalloc (bytes);
|
||||||
|
/* #if WITH_DETERMINISTIC_SIMULATION? */
|
||||||
|
memset (free_buffer, 0xa5, bytes);
|
||||||
buffer = (char*) free_buffer + padding;
|
buffer = (char*) free_buffer + padding;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue