summaryrefslogtreecommitdiff
path: root/src/arch/isa_specific.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-03 16:01:48 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-03-03 16:01:48 +0000
commit10871b734256677208388aad2bb3d8c4f8afac07 (patch)
tree294b8f907b3d63cdb62ca3ca728690e3fa4921b5 /src/arch/isa_specific.hh
parent94133657a1b9ff889da93e5c4ad6d858c8f21bf6 (diff)
downloadgem5-10871b734256677208388aad2bb3d8c4f8afac07.tar.xz
Add build hooks for x86.
--HG-- extra : convert_revision : 438eb74f14e6ea60bab5012110f3946c9213786e
Diffstat (limited to 'src/arch/isa_specific.hh')
-rw-r--r--src/arch/isa_specific.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/arch/isa_specific.hh b/src/arch/isa_specific.hh
index 181e81302..c241e5c62 100644
--- a/src/arch/isa_specific.hh
+++ b/src/arch/isa_specific.hh
@@ -32,22 +32,23 @@
#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
//#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
//These tell the preprocessor where to find the files of a particular
//ISA, and set the "TheISA" macro for use elsewhere.
@@ -57,6 +58,8 @@
#define TheISA SparcISA
#elif THE_ISA == MIPS_ISA
#define TheISA MipsISA
+#elif THE_ISA == X86_ISA
+ #define TheISA X86ISA
#else
#error "THE_ISA not set"
#endif