mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
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:
@@ -122,8 +122,7 @@ sim_open (SIM_OPEN_KIND kind,
|
||||
|
||||
SIM_DESC sd = sim_state_alloc (kind, callback);
|
||||
|
||||
if (sim_cpu_alloc_all (sd, 1, cgen_cpu_max_extra_bytes ())
|
||||
!= SIM_RC_OK)
|
||||
if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
|
||||
goto error;
|
||||
|
||||
if (sim_pre_argv_init (sd, argv[0]) != SIM_RC_OK)
|
||||
|
||||
Reference in New Issue
Block a user