forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -25,7 +25,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 or1k_sim_machs[] =
|
||||
{
|
||||
#ifdef HAVE_CPU_OR1K32BF
|
||||
& or32_mach,
|
||||
|
||||
Reference in New Issue
Block a user