aboutsummaryrefslogtreecommitdiff
path: root/sim/or1k/sim-if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/or1k/sim-if.c')
-rw-r--r--sim/or1k/sim-if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/or1k/sim-if.c b/sim/or1k/sim-if.c
index 798a60a..a60c881 100644
--- a/sim/or1k/sim-if.c
+++ b/sim/or1k/sim-if.c
@@ -168,7 +168,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 or1k_sim_cpu))
+ != SIM_RC_OK)
{
free_state (sd);
return 0;