diff options
Diffstat (limited to 'sim/iq2000')
-rw-r--r-- | sim/iq2000/ChangeLog | 7 | ||||
-rw-r--r-- | sim/iq2000/arch.c | 2 | ||||
-rw-r--r-- | sim/iq2000/sim-if.c | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/sim/iq2000/ChangeLog b/sim/iq2000/ChangeLog index cc5d594..130c6bf 100644 --- a/sim/iq2000/ChangeLog +++ b/sim/iq2000/ChangeLog @@ -1,3 +1,10 @@ +2021-06-30 Mike Frysinger <vapier@gentoo.org> + + * arch.c (sim_machs): Rename to ... + (iq2000_sim_machs): ... this. + * sim-if.c (iq2000_sim_machs): New decl. + (sim_open): Set STATE_MACH. + 2021-06-29 Mike Frysinger <vapier@gentoo.org> * arch.c (sim_machs): Mark const. diff --git a/sim/iq2000/arch.c b/sim/iq2000/arch.c index 22dc565..523dfe1 100644 --- a/sim/iq2000/arch.c +++ b/sim/iq2000/arch.c @@ -24,7 +24,7 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "bfd.h" -const SIM_MACH * const sim_machs[] = +const SIM_MACH * const iq2000_sim_machs[] = { #ifdef HAVE_CPU_IQ2000BF & iq2000_mach, diff --git a/sim/iq2000/sim-if.c b/sim/iq2000/sim-if.c index 1129cee..6df4b94 100644 --- a/sim/iq2000/sim-if.c +++ b/sim/iq2000/sim-if.c @@ -50,6 +50,8 @@ free_state (SIM_DESC sd) sim_state_free (sd); } +extern const SIM_MACH * const iq2000_sim_machs[]; + /* Create an instance of the simulator. */ SIM_DESC @@ -61,6 +63,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, SIM_DESC sd = sim_state_alloc (kind, callback); /* Set default options before parsing user options. */ + STATE_MACHS (sd) = iq2000_sim_machs; current_alignment = STRICT_ALIGNMENT; current_target_byte_order = BFD_ENDIAN_BIG; |