forked from Imagelibrary/binutils-gdb
sim: cgen: move cgen_cpu_max_extra_bytes logic into the common code
Every arch handles this the same way, so move it to the common code. This will also make unifying the sim_cpu structure easier.
This commit is contained in:
@@ -350,7 +350,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb,
|
||||
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
|
||||
|
||||
/* The cpu data is kept in a separately allocated chunk of memory. */
|
||||
if (sim_cpu_alloc_all (sd, 1, /*cgen_cpu_max_extra_bytes ()*/0) != SIM_RC_OK)
|
||||
if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
|
||||
return 0;
|
||||
|
||||
cpu = STATE_CPU (sd, 0); /* FIXME */
|
||||
|
||||
Reference in New Issue
Block a user