diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-28 21:42:56 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-30 01:52:51 -0400 |
commit | 1c636da093f335cd57e7fca0fc25ae9f9e849264 (patch) | |
tree | e33d33c678ae988d2ad31027bb2b23c8f009e34e /sim/common/ChangeLog | |
parent | f8261de1b22cc1a72ae18a2300df8b2cf7f027db (diff) | |
download | binutils-1c636da093f335cd57e7fca0fc25ae9f9e849264.zip binutils-1c636da093f335cd57e7fca0fc25ae9f9e849264.tar.gz binutils-1c636da093f335cd57e7fca0fc25ae9f9e849264.tar.bz2 |
sim: namespace sim_machs
We want to do a single build with all arches in one binary which means
we need to namespace sim_machs on a per-arch basis. Move it from a
global variable to the sim description structure so it can be setup at
runtime.
Changing the SIM_MODEL->num from an enum to an int is unfortunate, but
we specifically don't want to maintain a centralized list anymore, and
this was never used directly in common code, just passed to per-arch
callbacks.
Diffstat (limited to 'sim/common/ChangeLog')
-rw-r--r-- | sim/common/ChangeLog | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 5d86dcb..63e7f3b 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,27 @@ +2021-06-30 Mike Frysinger <vapier@gentoo.org> + + * cgen-defs.h (cgen_cpu_max_extra_bytes): Add SIM_DESC arg. + * cgen-utils.c (cgen_cpu_max_extra_bytes): Likewise. Change sim_machs + to STATE_MACHS. + * sim-base.h (struct sim_state): Add machs. + (STATE_MACHS): New define. + * sim-cpu.c (sim_cpu_alloc): Pass sd to cgen_cpu_max_extra_bytes. + * sim-model.c (model_option_handler): Pass sd to sim_model_lookup. + Change sim_machs to STATE_MACHS. + (sim_model_lookup): Add SIM_DESC arg. Change sim_machs to + STATE_MACHS. + (sim_mach_lookup): Likewiwse. + (sim_mach_lookup_bfd_name): Likewise. + (sim_model_init): Pass sd to sim_model_lookup and + sim_mach_lookup_bfd_name. + (sim_machs): Delete. + * sim-model.h (enum mach_attr): Delete. + (SIM_MODEL): Change num to int. + (sim_machs): Delete. + (sim_model_lookup): Add SIM_DESC arg. + (sim_mach_lookup): Likewise. + (sim_mach_lookup_bfd_name): Likewise. + 2021-06-29 Mike Frysinger <vapier@gentoo.org> * Make-common.in (Makefile): Replace $(arch) and pass more files to |