]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/cris/sim-if.c
sim: namespace sim_machs
[thirdparty/binutils-gdb.git] / sim / cris / sim-if.c
index 992493935212de24288a112ec3aadf0a328c1ef2..37a1d5b558a0c4110d4b1f3cbbaf4fe973e3bb9b 100644 (file)
@@ -608,6 +608,8 @@ cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd)
   return ok;
 }
 
+extern const SIM_MACH * const cris_sim_machs[];
+
 /* Create an instance of the simulator.  */
 
 SIM_DESC
@@ -656,6 +658,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
   bfd_byte sp_init[4] = {0, 0, 0, 0};
 
   /* Set default options before parsing user options.  */
+  STATE_MACHS (sd) = cris_sim_machs;
   current_target_byte_order = BFD_ENDIAN_LITTLE;
 
   /* The cpu data is kept in a separately allocated chunk of memory.  */