diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 04:12:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 04:24:06 -0500 |
commit | 8a0ebee658862bec66191df192c1d3b09bf0c943 (patch) | |
tree | 4e714c457a1130fcbb2b2f79f26c23ebd0db77d5 /sim/frv | |
parent | 91d6df784db745df2b0a6827de8306246083bc94 (diff) | |
download | gdb-8a0ebee658862bec66191df192c1d3b09bf0c943.zip gdb-8a0ebee658862bec66191df192c1d3b09bf0c943.tar.gz gdb-8a0ebee658862bec66191df192c1d3b09bf0c943.tar.bz2 |
sim: move MACH/MODEL types into SIM_xxx namespace
The "MACH" and "MODEL" names are a bit generic and collide with symbols
used by other sections of code (like h8300's opcodes). Since these are
sim-specific types, they really should have a "SIM_" prefix.
Diffstat (limited to 'sim/frv')
-rw-r--r-- | sim/frv/ChangeLog | 7 | ||||
-rw-r--r-- | sim/frv/arch.c | 2 | ||||
-rw-r--r-- | sim/frv/cpuall.h | 14 | ||||
-rw-r--r-- | sim/frv/model.c | 30 |
4 files changed, 30 insertions, 23 deletions
diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog index 08c6d98..6fca1e1 100644 --- a/sim/frv/ChangeLog +++ b/sim/frv/ChangeLog @@ -1,5 +1,12 @@ 2015-12-25 Mike Frysinger <vapier@gentoo.org> + * arch.c: Rename MACH to SIM_MACH. + * cpuall.h: Likewise. + * model.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to + SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL. + +2015-12-25 Mike Frysinger <vapier@gentoo.org> + * sim-main.h (WITH_SCACHE_PBB): Move from ... * tconfig.h (WITH_SCACHE_PBB): ... here. diff --git a/sim/frv/arch.c b/sim/frv/arch.c index b84d32e..2bf516d 100644 --- a/sim/frv/arch.c +++ b/sim/frv/arch.c @@ -24,7 +24,7 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "bfd.h" -const MACH *sim_machs[] = +const SIM_MACH *sim_machs[] = { #ifdef HAVE_CPU_FRVBF & frv_mach, diff --git a/sim/frv/cpuall.h b/sim/frv/cpuall.h index e845632..04433db 100644 --- a/sim/frv/cpuall.h +++ b/sim/frv/cpuall.h @@ -32,13 +32,13 @@ This file is part of the GNU simulators. #include "decode.h" #endif -extern const MACH frv_mach; -extern const MACH fr550_mach; -extern const MACH fr500_mach; -extern const MACH tomcat_mach; -extern const MACH fr400_mach; -extern const MACH fr450_mach; -extern const MACH simple_mach; +extern const SIM_MACH frv_mach; +extern const SIM_MACH fr550_mach; +extern const SIM_MACH fr500_mach; +extern const SIM_MACH tomcat_mach; +extern const SIM_MACH fr400_mach; +extern const SIM_MACH fr450_mach; +extern const SIM_MACH simple_mach; #ifndef WANT_CPU /* The ARGBUF struct. */ diff --git a/sim/frv/model.c b/sim/frv/model.c index e23bc8c..b2ad2e1 100644 --- a/sim/frv/model.c +++ b/sim/frv/model.c @@ -107352,43 +107352,43 @@ simple_model_init (SIM_CPU *cpu) #define TIMING_DATA(td) 0 #endif -static const MODEL frv_models[] = +static const SIM_MODEL frv_models[] = { { "frv", & frv_mach, MODEL_FRV, TIMING_DATA (& frv_timing[0]), frv_model_init }, { 0 } }; -static const MODEL fr550_models[] = +static const SIM_MODEL fr550_models[] = { { "fr550", & fr550_mach, MODEL_FR550, TIMING_DATA (& fr550_timing[0]), fr550_model_init }, { 0 } }; -static const MODEL fr500_models[] = +static const SIM_MODEL fr500_models[] = { { "fr500", & fr500_mach, MODEL_FR500, TIMING_DATA (& fr500_timing[0]), fr500_model_init }, { 0 } }; -static const MODEL tomcat_models[] = +static const SIM_MODEL tomcat_models[] = { { "tomcat", & tomcat_mach, MODEL_TOMCAT, TIMING_DATA (& tomcat_timing[0]), tomcat_model_init }, { 0 } }; -static const MODEL fr400_models[] = +static const SIM_MODEL fr400_models[] = { { "fr400", & fr400_mach, MODEL_FR400, TIMING_DATA (& fr400_timing[0]), fr400_model_init }, { 0 } }; -static const MODEL fr450_models[] = +static const SIM_MODEL fr450_models[] = { { "fr450", & fr450_mach, MODEL_FR450, TIMING_DATA (& fr450_timing[0]), fr450_model_init }, { 0 } }; -static const MODEL simple_models[] = +static const SIM_MODEL simple_models[] = { { "simple", & simple_mach, MODEL_SIMPLE, TIMING_DATA (& simple_timing[0]), simple_model_init }, { 0 } @@ -107396,7 +107396,7 @@ static const MODEL simple_models[] = /* The properties of this cpu's implementation. */ -static const MACH_IMP_PROPERTIES frvbf_imp_properties = +static const SIM_MACH_IMP_PROPERTIES frvbf_imp_properties = { sizeof (SIM_CPU), #if WITH_SCACHE @@ -107438,7 +107438,7 @@ frv_init_cpu (SIM_CPU *cpu) #endif } -const MACH frv_mach = +const SIM_MACH frv_mach = { "frv", "frv", MACH_FRV, 32, 32, & frv_models[0], & frvbf_imp_properties, @@ -107464,7 +107464,7 @@ fr550_init_cpu (SIM_CPU *cpu) #endif } -const MACH fr550_mach = +const SIM_MACH fr550_mach = { "fr550", "fr550", MACH_FR550, 32, 32, & fr550_models[0], & frvbf_imp_properties, @@ -107490,7 +107490,7 @@ fr500_init_cpu (SIM_CPU *cpu) #endif } -const MACH fr500_mach = +const SIM_MACH fr500_mach = { "fr500", "fr500", MACH_FR500, 32, 32, & fr500_models[0], & frvbf_imp_properties, @@ -107516,7 +107516,7 @@ tomcat_init_cpu (SIM_CPU *cpu) #endif } -const MACH tomcat_mach = +const SIM_MACH tomcat_mach = { "tomcat", "tomcat", MACH_TOMCAT, 32, 32, & tomcat_models[0], & frvbf_imp_properties, @@ -107542,7 +107542,7 @@ fr400_init_cpu (SIM_CPU *cpu) #endif } -const MACH fr400_mach = +const SIM_MACH fr400_mach = { "fr400", "fr400", MACH_FR400, 32, 32, & fr400_models[0], & frvbf_imp_properties, @@ -107568,7 +107568,7 @@ fr450_init_cpu (SIM_CPU *cpu) #endif } -const MACH fr450_mach = +const SIM_MACH fr450_mach = { "fr450", "fr450", MACH_FR450, 32, 32, & fr450_models[0], & frvbf_imp_properties, @@ -107594,7 +107594,7 @@ simple_init_cpu (SIM_CPU *cpu) #endif } -const MACH simple_mach = +const SIM_MACH simple_mach = { "simple", "simple", MACH_SIMPLE, 32, 32, & simple_models[0], & frvbf_imp_properties, |