forked from Imagelibrary/binutils-gdb
sim: lm32: invert sim_cpu storage
The cpu.h change is in generated cgen code, but that has been sent upstream too, so the next regen should include it automatically.
This commit is contained in:
@@ -101,7 +101,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||
|
||||
/* The cpu data is kept in a separately allocated chunk of memory. */
|
||||
if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
|
||||
if (sim_cpu_alloc_all_extra (sd, 1, sizeof (struct lm32_sim_cpu))
|
||||
!= SIM_RC_OK)
|
||||
{
|
||||
free_state (sd);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user