Certain header files should only be used in FS.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 11 Nov 2006 12:15:16 +0000 (07:15 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 11 Nov 2006 12:15:16 +0000 (07:15 -0500)
src/arch/alpha/faults.hh:
    Only use pagetable.hh in FS
src/arch/alpha/pagetable.hh:
    pagetable.hh should only be included in FS, so protecting it internally should be unnecessary.
src/cpu/exetrace.cc:
    Only use tlb.hh in FS

--HG--
extra : convert_revision : 91ea61f2e7970e7146b6d407ee250fcb20cd4d48

src/arch/alpha/faults.hh
src/arch/alpha/pagetable.hh
src/cpu/exetrace.cc

index 3ef4d55219d093230b6e2a975489bfa5485636a9..e2c3441e9487fb61f7fc4b257c58c1e8247c31d0 100644 (file)
 #ifndef __ALPHA_FAULTS_HH__
 #define __ALPHA_FAULTS_HH__
 
-#include "arch/alpha/pagetable.hh"
+#include "config/full_system.hh"
 #include "sim/faults.hh"
 
+#if FULL_SYSTEM
+#include "arch/alpha/pagetable.hh"
+#endif
+
 // The design of the "name" and "vect" functions is in sim/faults.hh
 
 namespace AlphaISA
index 3108c0a3e5f2b57c116aefb9e44cc1d86cd7e118..7ec4a6a752b8ee148e823da68c5fe4889fd8e8e0 100644 (file)
@@ -38,7 +38,6 @@
 
 namespace AlphaISA {
 
-#if FULL_SYSTEM
     struct VAddr
     {
         static const int ImplBits = 43;
@@ -106,7 +105,7 @@ namespace AlphaISA {
         void serialize(std::ostream &os);
         void unserialize(Checkpoint *cp, const std::string &section);
     };
-#endif
+
 };
 #endif // __ARCH_ALPHA_PAGETABLE_H__
 
index 8662f6ae1e8e6c15bb6d35a47725e00b344b352e..113f0fe746bac849b296724a04d3a7f87abcfab9 100644 (file)
 
 #include "arch/regfile.hh"
 #include "arch/utility.hh"
-#include "arch/tlb.hh"
 #include "base/loader/symtab.hh"
+#include "config/full_system.hh"
 #include "cpu/base.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/static_inst.hh"
 #include "sim/param.hh"
 #include "sim/system.hh"
 
+#if FULL_SYSTEM
+#include "arch/tlb.hh"
+#endif
+
 //XXX This is temporary
 #include "arch/isa_specific.hh"
 #include "cpu/m5legion_interface.h"