summaryrefslogtreecommitdiff
path: root/arch/isa_specific.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-02-22 22:22:06 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-02-22 22:22:06 -0500
commitf67a99d1c96fab60e16a8739803de27a3fba6420 (patch)
tree7b35ca89e8fae82897c609d1b88eefe6e8d140c9 /arch/isa_specific.hh
parent9a4c0f12ef63a701f9ce0918e604bcdcc679fe32 (diff)
downloadgem5-f67a99d1c96fab60e16a8739803de27a3fba6420.tar.xz
Auto-generate arch/foo.hh "switch headers" in scons.
SConscript: Include new arch/SConscript file. arch/isa_specific.hh: Get rid of unnecessary ISA_INCLUDE() macro and other things that were used only for that purpose. build/SConstruct: Move list of ISAs to env var ALL_ISA_LIST. --HG-- extra : convert_revision : 612c7ee4279d57209662be88dc577d80fdbd692c
Diffstat (limited to 'arch/isa_specific.hh')
-rw-r--r--arch/isa_specific.hh14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/isa_specific.hh b/arch/isa_specific.hh
index e11e6c292..44f8e9d64 100644
--- a/arch/isa_specific.hh
+++ b/arch/isa_specific.hh
@@ -50,27 +50,13 @@
//These tell the preprocessor where to find the files of a particular
//ISA, and set the "TheISA" macro for use elsewhere.
#if THE_ISA == ALPHA_ISA
- #define ISA_PATH arch/alpha/
#define TheISA AlphaISA
#elif THE_ISA == SPARC_ISA
- #define ISA_PATH arch/sparc/
#define TheISA SparcISA
#elif THE_ISA == MIPS_ISA
- #define ISA_PATH arch/mips/
#define TheISA MipsISA
#else
#error "THE_ISA not set"
#endif
-//The following is some preprocessor voodoo to allow redirectable includes
-//The end result is the ISA_INCLUDE() macro which is used inside stub
-//include files in arch and which redirect to the isa in use.
-#define STRINGIFY(token) #token
-#define EXPAND(token) token
-#define STICK_TOGETHER(firstpart, secondpart) \
- EXPAND(firstpart)EXPAND(secondpart)
-#define EXPAND_AND_STRINGIFY(pathAndFile) \
- STRINGIFY(pathAndFile)
-#define ISA_INCLUDE(filename) \
- EXPAND_AND_STRINGIFY(STICK_TOGETHER(ISA_PATH, filename))
#endif