diff options
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 559b39a..1b2b09f 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -2367,10 +2367,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, } /* Check for/establish the a reference program image. */ - if (sim_analyze_program (sd, - (STATE_PROG_ARGV (sd) != NULL - ? *STATE_PROG_ARGV (sd) - : NULL), abfd) != SIM_RC_OK) + if (sim_analyze_program (sd, STATE_PROG_FILE (sd), abfd) != SIM_RC_OK) { free_state (sd); return 0; |