diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-01 12:00:34 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-21 00:00:01 -0500 |
commit | 5409cab77ed607c4bb87160cf98861fad1e97381 (patch) | |
tree | da379b08e4fc0c341ab249a9a8604239bffa453b /sim/riscv/interp.c | |
parent | 3d165c11f0a91b9b32da30ac4ec42a3da2da6218 (diff) | |
download | fsf-binutils-gdb-5409cab77ed607c4bb87160cf98861fad1e97381.zip fsf-binutils-gdb-5409cab77ed607c4bb87160cf98861fad1e97381.tar.gz fsf-binutils-gdb-5409cab77ed607c4bb87160cf98861fad1e97381.tar.bz2 |
sim: riscv: invert sim_cpu storage
Diffstat (limited to 'sim/riscv/interp.c')
-rw-r--r-- | sim/riscv/interp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/riscv/interp.c b/sim/riscv/interp.c index 937dc56..46f1916 100644 --- a/sim/riscv/interp.c +++ b/sim/riscv/interp.c @@ -73,7 +73,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, callback->syscall_map = cb_riscv_syscall_map; /* 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 riscv_sim_cpu)) + != SIM_RC_OK) { free_state (sd); return 0; |