X86: fix some simple compile issues
[gem5.git] / src / arch / isa_specific.hh
index 181e813026433e4cf40192f27c939ca1d81b52b3..de070bbf9087af88ab941740dc11e14dc55ff184 100644 (file)
 #define __ARCH_ISA_SPECIFIC_HH__
 
 //This file provides a mechanism for other source code to bring in
-//files from the ISA being compiled with
+//files from the ISA being compiled in.
 
-//These are constants so you can selective compile code based on the isa
-//To use them, do something like
+//These are constants so you can selectively compile code based on the isa.
+//To use them, do something like:
 //
 //#if THE_ISA == YOUR_FAVORITE_ISA
-//     conditional_code
+//      conditional_code
 //#endif
 //
-//Note that this is how this file sets up the other isa "hooks"
+//Note that this is how this file sets up the TheISA macro.
 
 //These macros have numerical values because otherwise the preprocessor
 //would treat them as 0 in comparisons.
 #define ALPHA_ISA 21064
 #define SPARC_ISA 42
 #define MIPS_ISA 34000
+#define X86_ISA 8086
+#define ARM_ISA 6
 
 //These tell the preprocessor where to find the files of a particular
 //ISA, and set the "TheISA" macro for use elsewhere.
     #define TheISA SparcISA
 #elif THE_ISA == MIPS_ISA
     #define TheISA MipsISA
+#elif THE_ISA == X86_ISA
+    #define TheISA X86ISA
+#elif THE_ISA == ARM_ISA
+    #define TheISA ArmISA
 #else
     #error "THE_ISA not set"
 #endif