sim: namespace sim_machs
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jun 2021 01:42:56 +0000 (21:42 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jun 2021 05:52:51 +0000 (01:52 -0400)
commit1c636da093f335cd57e7fca0fc25ae9f9e849264
treee33d33c678ae988d2ad31027bb2b23c8f009e34e
parentf8261de1b22cc1a72ae18a2300df8b2cf7f027db
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.
35 files changed:
sim/bfin/ChangeLog
sim/bfin/interp.c
sim/bfin/machs.c
sim/bfin/machs.h
sim/bpf/ChangeLog
sim/bpf/arch.c
sim/bpf/sim-if.c
sim/common/ChangeLog
sim/common/cgen-defs.h
sim/common/cgen-utils.c
sim/common/sim-base.h
sim/common/sim-cpu.c
sim/common/sim-model.c
sim/common/sim-model.h
sim/cris/ChangeLog
sim/cris/arch.c
sim/cris/sim-if.c
sim/frv/ChangeLog
sim/frv/arch.c
sim/frv/sim-if.c
sim/iq2000/ChangeLog
sim/iq2000/arch.c
sim/iq2000/sim-if.c
sim/lm32/ChangeLog
sim/lm32/arch.c
sim/lm32/sim-if.c
sim/m32r/ChangeLog
sim/m32r/arch.c
sim/m32r/sim-if.c
sim/or1k/ChangeLog
sim/or1k/arch.c
sim/or1k/sim-if.c
sim/riscv/ChangeLog
sim/riscv/interp.c
sim/riscv/machs.c