forked from Imagelibrary/binutils-gdb
* sim-core.c (sim_core_attach): Revise last patch.
Use 0xa5 as initial value.
This commit is contained in:
@@ -339,7 +339,10 @@ sim_core_attach (SIM_DESC sd,
|
||||
if (optional_buffer == NULL)
|
||||
{
|
||||
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;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user