summaryrefslogtreecommitdiff
path: root/sim/lm32/arch.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-28 21:42:56 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-30 01:52:51 -0400
commit1c636da093f335cd57e7fca0fc25ae9f9e849264 (patch)
treee33d33c678ae988d2ad31027bb2b23c8f009e34e /sim/lm32/arch.c
parentf8261de1b22cc1a72ae18a2300df8b2cf7f027db (diff)
downloadbinutils-gdb-1c636da093f335cd57e7fca0fc25ae9f9e849264.tar.gz
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/lm32/arch.c')
-rw-r--r--sim/lm32/arch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/lm32/arch.c b/sim/lm32/arch.c
index 72fe4b43b87..4c485140fdb 100644
--- a/sim/lm32/arch.c
+++ b/sim/lm32/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 lm32_sim_machs[] =
{
#ifdef HAVE_CPU_LM32BF
& lm32_mach,