]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/iq2000/sim-if.c
sim: split program path out of argv vector
[thirdparty/binutils-gdb.git] / sim / iq2000 / sim-if.c
index 8cfc1e0ca3e6888e16c0ad29c648a0a18ea67ffb..21ed8217bb07d1887ec96cff8fa17afac8884204 100644 (file)
@@ -93,11 +93,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
   sim_do_commandf (sd, "memory region 0x%x,0x%x", IQ2000_DATA_VALUE, IQ2000_DATA_MEM_SIZE); 
 
   /* check for/establish the 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;