aboutsummaryrefslogtreecommitdiff
path: root/sim/pru/interp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/pru/interp.c')
-rw-r--r--sim/pru/interp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/pru/interp.c b/sim/pru/interp.c
index f243df9..af72a21 100644
--- a/sim/pru/interp.c
+++ b/sim/pru/interp.c
@@ -831,6 +831,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
+ host_callback *cb = STATE_CALLBACK (sd);
SIM_ADDR addr;
addr = bfd_get_start_address (prog_bfd);
@@ -854,5 +855,8 @@ sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
STATE_PROG_ENVP (sd) = dupargv (env);
}
+ cb->argv = STATE_PROG_ARGV (sd);
+ cb->envp = STATE_PROG_ENVP (sd);
+
return SIM_RC_OK;
}