arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh
authorNathan Binkert <nate@binkert.org>
Wed, 23 Sep 2009 15:34:21 +0000 (08:34 -0700)
committerNathan Binkert <nate@binkert.org>
Wed, 23 Sep 2009 15:34:21 +0000 (08:34 -0700)
125 files changed:
SConstruct
src/SConscript
src/arch/arm/stacktrace.hh
src/arch/isa_specific.hh [deleted file]
src/base/cp_annotate.cc
src/base/cp_annotate.hh
src/base/remote_gdb.cc
src/cpu/base.hh
src/cpu/base_dyn_inst.hh
src/cpu/base_dyn_inst_impl.hh
src/cpu/checker/cpu_impl.hh
src/cpu/checker/thread_context.hh
src/cpu/exetrace.cc
src/cpu/inorder/cpu.cc
src/cpu/inorder/cpu.hh
src/cpu/inorder/inorder_dyn_inst.cc
src/cpu/inorder/inorder_dyn_inst.hh
src/cpu/inorder/inorder_trace.cc
src/cpu/inorder/pipeline_stage.cc
src/cpu/inorder/reg_dep_map.cc
src/cpu/inorder/reg_dep_map.hh
src/cpu/inorder/resources/bpred_unit.cc
src/cpu/inorder/resources/branch_predictor.cc
src/cpu/inorder/resources/cache_unit.cc
src/cpu/inorder/resources/cache_unit.hh
src/cpu/inorder/resources/decode_unit.cc
src/cpu/inorder/resources/fetch_seq_unit.cc
src/cpu/inorder/resources/fetch_seq_unit.hh
src/cpu/inorder/resources/inst_buffer.cc
src/cpu/inorder/resources/inst_buffer_new.cc
src/cpu/inorder/resources/tlb_unit.cc
src/cpu/inorder/resources/tlb_unit.hh
src/cpu/inorder/resources/use_def.cc
src/cpu/inorder/thread_context.cc
src/cpu/inorder/thread_context.hh
src/cpu/inteltrace.cc
src/cpu/legiontrace.cc
src/cpu/o3/bpred_unit_impl.hh
src/cpu/o3/commit_impl.hh
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/cpu/o3/decode_impl.hh
src/cpu/o3/dyn_inst.hh
src/cpu/o3/fetch.hh
src/cpu/o3/fetch_impl.hh
src/cpu/o3/free_list.hh
src/cpu/o3/iew_impl.hh
src/cpu/o3/impl.hh
src/cpu/o3/lsq_unit.hh
src/cpu/o3/lsq_unit_impl.hh
src/cpu/o3/regfile.hh
src/cpu/o3/rename.hh
src/cpu/o3/rename_impl.hh
src/cpu/o3/rename_map.hh
src/cpu/o3/rob.hh
src/cpu/o3/scoreboard.cc
src/cpu/o3/thread_context.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/ozone/cpu.hh
src/cpu/ozone/cpu_impl.hh
src/cpu/ozone/dyn_inst.hh
src/cpu/ozone/dyn_inst_impl.hh
src/cpu/ozone/front_end.hh
src/cpu/ozone/front_end_impl.hh
src/cpu/ozone/inorder_back_end_impl.hh
src/cpu/ozone/lsq_unit.hh
src/cpu/ozone/lsq_unit_impl.hh
src/cpu/ozone/lw_back_end_impl.hh
src/cpu/ozone/lw_lsq.hh
src/cpu/ozone/lw_lsq_impl.hh
src/cpu/ozone/rename_table.hh
src/cpu/ozone/rename_table_impl.hh
src/cpu/ozone/simple_params.hh
src/cpu/ozone/thread_state.hh
src/cpu/profile.hh
src/cpu/simple/atomic.cc
src/cpu/simple/base.cc
src/cpu/simple/base.hh
src/cpu/simple/timing.cc
src/cpu/simple_thread.cc
src/cpu/simple_thread.hh
src/cpu/static_inst.hh
src/cpu/thread_context.cc
src/cpu/thread_context.hh
src/cpu/thread_state.hh
src/dev/alpha/tsunami.cc
src/dev/alpha/tsunami_cchip.cc
src/dev/alpha/tsunami_io.cc
src/dev/alpha/tsunami_pchip.cc
src/dev/baddev.cc
src/dev/ide_disk.cc
src/dev/mips/malta.cc
src/dev/mips/malta_cchip.cc
src/dev/mips/malta_io.cc
src/dev/mips/malta_pchip.cc
src/dev/ns_gige.cc
src/dev/platform.cc
src/dev/sinic.cc
src/dev/sparc/dtod.cc
src/dev/sparc/t1000.cc
src/dev/uart8250.cc
src/dev/x86/pc.cc
src/kern/linux/printk.hh
src/kern/system_events.cc
src/kern/tru64/dump_mbuf.cc
src/kern/tru64/tru64.hh
src/kern/tru64/tru64_events.cc
src/mem/cache/builder.cc
src/mem/cache/prefetch/base.cc
src/mem/packet_access.hh
src/mem/page_table.cc
src/mem/page_table.hh
src/mem/physical.cc
src/mem/port_impl.hh
src/mem/rubymem.cc
src/mem/translating_port.cc
src/mem/vport.cc
src/sim/arguments.cc
src/sim/process.cc
src/sim/process.hh
src/sim/pseudo_inst.cc
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh
src/sim/system.cc
src/sim/system.hh

index f143bca0e73f4535b1f2cb668ed983901fd1a2e8..dac317fe8f2df7937e338eef2278e20ee0dc176e 100644 (file)
@@ -742,17 +742,10 @@ def make_switching_dir(dname, switch_headers, env):
     # list of ISAs from env['ALL_ISA_LIST'].
     def gen_switch_hdr(target, source, env):
         fname = str(target[0])
-        bname = basename(fname)
         f = open(fname, 'w')
-        f.write('#include "arch/isa_specific.hh"\n')
-        cond = '#if'
-        for isa in all_isa_list:
-            f.write('%s THE_ISA == %s_ISA\n#include "%s/%s/%s"\n'
-                    % (cond, isa.upper(), dname, isa, bname))
-            cond = '#elif'
-        f.write('#else\n#error "THE_ISA not set"\n#endif\n')
+        isa = env['TARGET_ISA'].lower()
+        print >>f, '#include "%s/%s/%s"' % (dname, isa, basename(fname))
         f.close()
-        return 0
 
     # String to print when generating header
     def gen_switch_hdr_string(target, source, env):
index d3323f0a09a04c3f95c653e90d477ab2ce0ef5f9..705d76b1dcc04ba876b903551c602c93071b75d8 100644 (file)
@@ -228,9 +228,6 @@ env.Append(CPPPATH=Dir('.'))
 for extra_dir in extras_dir_list:
     env.Append(CPPPATH=Dir(extra_dir))
 
-# Add a flag defining what THE_ISA should be for all compilation
-env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
-
 # Workaround for bug in SCons version > 0.97d20071212
 # Scons bug id: 2006 M5 Bug id: 308 
 for root, dirs, files in os.walk(base_dir, topdown=True):
@@ -261,6 +258,31 @@ for extra_dir in extras_dir_list:
 for opt in export_vars:
     env.ConfigFile(opt)
 
+def makeTheISA(source, target, env):
+    f = file(str(target[0]), 'w')
+
+    isas = [ src.get_contents() for src in source ]
+    target = env['TARGET_ISA']
+    def define(isa):
+        return isa.upper() + '_ISA'
+    
+    def namespace(isa):
+        return isa[0].upper() + isa[1:].lower() + 'ISA' 
+
+
+    print >>f, '#ifndef __CONFIG_THE_ISA_HH__'
+    print >>f, '#define __CONFIG_THE_ISA_HH__'
+    print >>f
+    for i,isa in enumerate(isas):
+        print >>f, '#define %s %d' % (define(isa), i + 1)
+    print >>f
+    print >>f, '#define THE_ISA %s' % (define(target))
+    print >>f, '#define TheISA %s' % (namespace(target))
+    print >>f
+    print >>f, '#endif // __CONFIG_THE_ISA_HH__'  
+
+env.Command('config/the_isa.hh', map(Value, all_isa_list), makeTheISA)
+
 ########################################################################
 #
 # Prevent any SimObjects from being added after this point, they
index 3f9c9109698a976202772d66af7c848aa6891c5a..c5225455c5be4530fb02a4abadcad7fe20d0a3a3 100644 (file)
@@ -34,6 +34,7 @@
 #define __ARCH_ARM_STACKTRACE_HH__
 
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/static_inst.hh"
 
 class ThreadContext;
diff --git a/src/arch/isa_specific.hh b/src/arch/isa_specific.hh
deleted file mode 100644 (file)
index de070bb..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2003-2005 The Regents of The University of Michigan
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Gabe Black
- */
-
-#ifndef __ARCH_ISA_SPECIFIC_HH__
-#define __ARCH_ISA_SPECIFIC_HH__
-
-//This file provides a mechanism for other source code to bring in
-//files from the ISA being compiled in.
-
-//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 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.
-#if THE_ISA == ALPHA_ISA
-    #define TheISA AlphaISA
-#elif THE_ISA == SPARC_ISA
-    #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
-
-#endif
index 0aba2d9998c69c1c63c8a01ff67a353911097301..4e138a6dd9f8d2dc82c4b1e626ab22be3d296978 100644 (file)
@@ -35,6 +35,7 @@
 #include "base/loader/object_file.hh"
 #include "base/output.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "sim/arguments.hh"
 #include "sim/core.hh"
index 05d8129d036366fa515ee2058293198c3d658bb7..4248c070a63a8261ce80e866c6d48bcb80d70e96 100644 (file)
@@ -41,6 +41,7 @@
 #include "base/trace.hh"
 #include "base/types.hh"
 #include "config/cp_annotate.hh"
+#include "config/the_isa.hh"
 #include "sim/serialize.hh"
 #include "sim/startup.hh"
 #include "sim/system.hh"
index 6c301b10e2c2c6f74102223979e71b6c8581ac75..c54379c23a27fd1765fccbfe16318c16251c5771 100644 (file)
 #include "base/remote_gdb.hh"
 #include "base/socket.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/static_inst.hh"
-//#include "mem/physical.hh"
 #include "mem/port.hh"
 #include "mem/translating_port.hh"
 #include "sim/system.hh"
index 441d9b5ddc8f42c7f9c8dc695a9e9b5c34e2d1be..bfeec087015a1a58bac3985330bd5652d181fa50 100644 (file)
@@ -38,6 +38,7 @@
 #include "arch/microcode_rom.hh"
 #include "base/statistics.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "sim/eventq.hh"
 #include "sim/insttracer.hh"
 #include "mem/mem_object.hh"
index f4ff88209988e172dfc14f8130e6aa4f7d9b7e06..31206c81e79b6920468ed259add27fd88390bdcb 100644 (file)
@@ -39,6 +39,7 @@
 #include "base/fast_alloc.hh"
 #include "base/trace.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/comm.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/inst_seq.hh"
index 4ee7d2f2c91cd98a6202253c01e947e6a0fec533..70c91cedaa1e0b6f18a98b5e883752c48ec342db 100644 (file)
 
 #include "base/cprintf.hh"
 #include "base/trace.hh"
-
-#include "sim/faults.hh"
+#include "config/the_isa.hh"
+#include "cpu/base_dyn_inst.hh"
 #include "cpu/exetrace.hh"
 #include "mem/request.hh"
-
-#include "cpu/base_dyn_inst.hh"
+#include "sim/faults.hh"
 
 #define NOHASH
 #ifndef NOHASH
index 26571ed6886f51c74ee86b46be26b9b03eca2cce..81f49463042416075550120a66ec04555009700e 100644 (file)
@@ -32,6 +32,7 @@
 #include <string>
 
 #include "base/refcnt.hh"
+#include "config/the_isa.hh"
 #include "cpu/base_dyn_inst.hh"
 #include "cpu/checker/cpu.hh"
 #include "cpu/simple_thread.hh"
index d38bd2915a22e46ca59172c60cb6b4d9116c8ea2..ef7d4c6430de7c8b34f1eb2c41b8c3c15e1dbb1f 100644 (file)
@@ -32,6 +32,7 @@
 #define __CPU_CHECKER_THREAD_CONTEXT_HH__
 
 #include "arch/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/checker/cpu.hh"
 #include "cpu/simple_thread.hh"
 #include "cpu/thread_context.hh"
index ea53fb6f5c42ceb4977444738b6b5ad548e9d307..07be700bbd309fd406a1df5373b18086f3e53f68 100644 (file)
@@ -38,6 +38,7 @@
 #include "cpu/exetrace.hh"
 #include "cpu/static_inst.hh"
 #include "cpu/thread_context.hh"
+#include "config/the_isa.hh"
 #include "enums/OpClass.hh"
 
 using namespace std;
index 4107ac3b40aceb836df2f483ca3c077ff4d6b258..486edc87b7c24e6b6af9ae06bc4d53b2192d7ca7 100644 (file)
 
 #include "arch/utility.hh"
 #include "config/full_system.hh"
-#include "cpu/exetrace.hh"
+#include "config/the_isa.hh"
 #include "cpu/activity.hh"
-#include "cpu/simple_thread.hh"
-#include "cpu/thread_context.hh"
 #include "cpu/base.hh"
-#include "cpu/inorder/inorder_dyn_inst.hh"
-#include "cpu/inorder/thread_context.hh"
-#include "cpu/inorder/thread_state.hh"
+#include "cpu/exetrace.hh"
 #include "cpu/inorder/cpu.hh"
-#include "params/InOrderCPU.hh"
-#include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/first_stage.hh"
-#include "cpu/inorder/resources/resource_list.hh"
+#include "cpu/inorder/inorder_dyn_inst.hh"
+#include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/resource_pool.hh"
+#include "cpu/inorder/resources/resource_list.hh"
+#include "cpu/inorder/thread_context.hh"
+#include "cpu/inorder/thread_state.hh"
+#include "cpu/simple_thread.hh"
+#include "cpu/thread_context.hh"
 #include "mem/translating_port.hh"
+#include "params/InOrderCPU.hh"
 #include "sim/process.hh"
 #include "sim/stat_control.hh"
 
index 9fb8e0df458e4d102781f56b9b591db4d3f77b17..3320532ba4c674908707354a76a73635c04597ea 100644 (file)
@@ -45,6 +45,7 @@
 #include "base/timebuf.hh"
 #include "base/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/activity.hh"
 #include "cpu/base.hh"
 #include "cpu/simple_thread.hh"
index 9f0927b2fbf4a0fd45ce51f33bca33f51056ea0f..5ab8396151ec6140588234573b353c0aad277f61 100644 (file)
 #include <string>
 #include <sstream>
 
+#include "arch/faults.hh"
 #include "base/cprintf.hh"
 #include "base/trace.hh"
-
-#include "arch/faults.hh"
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
-#include "mem/request.hh"
-
-#include "cpu/inorder/inorder_dyn_inst.hh"
 #include "cpu/inorder/cpu.hh"
+#include "cpu/inorder/inorder_dyn_inst.hh"
+#include "mem/request.hh"
 
 using namespace std;
 using namespace TheISA;
index a91c6a763ca1991d41c2e7e839f529cc58511ec6..522b4e8d7274160f4003c46adbe6936f8a5a7cf7 100644 (file)
 #include <list>
 #include <string>
 
-#include "arch/isa_traits.hh"
 #include "arch/faults.hh"
-#include "arch/types.hh"
+#include "arch/isa_traits.hh"
 #include "arch/mt.hh"
+#include "arch/types.hh"
 #include "base/fast_alloc.hh"
 #include "base/trace.hh"
 #include "base/types.hh"
-#include "cpu/inorder/inorder_trace.hh"
 #include "config/full_system.hh"
-#include "cpu/thread_context.hh"
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
+#include "cpu/inorder/inorder_trace.hh"
+#include "cpu/inorder/pipeline_traits.hh"
+#include "cpu/inorder/resource.hh"
+#include "cpu/inorder/thread_state.hh"
 #include "cpu/inst_seq.hh"
 #include "cpu/op_class.hh"
 #include "cpu/static_inst.hh"
-#include "cpu/inorder/thread_state.hh"
-#include "cpu/inorder/resource.hh"
-#include "cpu/inorder/pipeline_traits.hh"
+#include "cpu/thread_context.hh"
 #include "mem/packet.hh"
 #include "sim/system.hh"
-#include "sim/faults.hh"
 
-#if THE_ISA==ALPHA_ISA
+#if THE_ISA == ALPHA_ISA
 #include "arch/alpha/ev5.hh"
 #endif
 
index f12a1b7a952a41b41ea0a5b59ebbd63f95e7bb91..90c94a4f567c29be7b1dec20f5526254efcc5742 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <iomanip>
 
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/inorder/inorder_trace.hh"
 #include "cpu/static_inst.hh"
index 46b1cbad0aa8caa2975516f481c9dc8cdc2cfa84..dc0378bf38efcecd722647682d0607f67b0b4ac6 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "base/str.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_stage.hh"
 #include "cpu/inorder/resource_pool.hh"
 #include "cpu/inorder/cpu.hh"
index a405b1fb9ca696e07924ecff71be1f0cc89c68f0..51782a588a19b94c953b2c7e0131455f0f86bcae 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/reg_dep_map.hh"
 #include "cpu/inorder/inorder_dyn_inst.hh"
index ba2a8c8a3857d003d48cbf99e9b41def2b0f9ede..b78e211bbf99eefdb2ce7f68f453816c98f2e938 100644 (file)
@@ -36,6 +36,7 @@
 #include <vector>
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 
 class InOrderCPU;
index 2ed8586aa3321fbeef554d79f383a4aededa0692..0e8526fa137b248552ae1ccbc40f27ce701a332f 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "base/trace.hh"
 #include "base/traceflags.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/bpred_unit.hh"
 
 using namespace std;
index 905de07943c89e5c750abbd4cdd413092de5b02c..ecac5fff0b3dbeb5dad0ca62cd6f117927b028ba 100644 (file)
@@ -29,6 +29,7 @@
  *
  */
 
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/branch_predictor.hh"
 
 using namespace std;
index 5677810f653217918d3b50f95611e076f3b10a44..eb66e10f82a88a1c036a64d9b0ec9f1d77c1c063 100644 (file)
 
 #include <vector>
 #include <list>
+
 #include "arch/isa_traits.hh"
 #include "arch/locked_mem.hh"
 #include "arch/utility.hh"
 #include "arch/predecoder.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/cache_unit.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/cpu.hh"
index 8946ad5d38a95f99f67d4d5e123041a8be3e55b4..c467e977188f7d69ba9a708072a7fb1b074ab57c 100644 (file)
 #include <list>
 #include <string>
 
-#include "arch/tlb.hh"
 #include "arch/predecoder.hh"
-#include "cpu/inorder/resource.hh"
+#include "arch/tlb.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/inorder_dyn_inst.hh"
+#include "cpu/inorder/pipeline_traits.hh"
+#include "cpu/inorder/resource.hh"
 #include "mem/packet.hh"
 #include "mem/packet_access.hh"
 #include "mem/port.hh"
-#include "cpu/inorder/pipeline_traits.hh"
-#include "sim/sim_object.hh"
-
 #include "params/InOrderCPU.hh"
+#include "sim/sim_object.hh"
 
 class CacheRequest;
 typedef CacheRequest* CacheReqPtr;
index 033c318f2732edc6097321511a22292618a7a242..33f5aba1a3cef321e67bdd82e98fba750158c20b 100644 (file)
@@ -29,6 +29,7 @@
  *
  */
 
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/decode_unit.hh"
 
 using namespace TheISA;
index bc809b040350e2195b8a989afaf01712525afe0b..1d0b9207523bddc1ae5f47575db5152f0f277eb9 100644 (file)
@@ -29,6 +29,7 @@
  *
  */
 
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/fetch_seq_unit.hh"
 #include "cpu/inorder/resource_pool.hh"
 
index 3e18d47cb51af583ebbb8d03a7b8766d896a3b48..a4495564b6a4e333df637eae917b663f8f6e1055 100644 (file)
@@ -36,6 +36,7 @@
 #include <list>
 #include <string>
 
+#include "config/the_isa.hh"
 #include "cpu/inorder/resource.hh"
 #include "cpu/inorder/inorder_dyn_inst.hh"
 #include "cpu/inorder/pipeline_traits.hh"
index 21df1d053e8e88f8356c31b46923759100b52b99..bb308b0ea2f6ba9357454d2513a925f7de1dfc08 100644 (file)
@@ -31,7 +31,9 @@
 
 #include <vector>
 #include <list>
+
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/resources/inst_buffer.hh"
 #include "cpu/inorder/cpu.hh"
index cc534ef3e5a05d1c83927bdd4965357da55facdb..2e5a9666a5452478ae3c94bc7e3a92caabb4506b 100644 (file)
@@ -31,7 +31,9 @@
 
 #include <vector>
 #include <list>
+
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/resources/inst_buffer.hh"
 #include "cpu/inorder/cpu.hh"
index 95bade36a2fcc97578bc6acb8d450391fe02526a..0410d6b24ffffd2559546ecd45d6f59d3c29e7bb 100644 (file)
@@ -31,7 +31,9 @@
 
 #include <vector>
 #include <list>
+
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/first_stage.hh"
 #include "cpu/inorder/resources/tlb_unit.hh"
index 1c08bd822ae035d0f78913d7e11a34ba7cc0fc7e..5c62c7751f9aa4ca342b6703c7d4c673daf9744e 100644 (file)
@@ -36,6 +36,7 @@
 #include <list>
 #include <string>
 
+#include "config/the_isa.hh"
 #include "cpu/inorder/resources/inst_buffer.hh"
 #include "cpu/inorder/inorder_dyn_inst.hh"
 #include "cpu/inorder/pipeline_traits.hh"
index 2f1652c0813a92b170be62d63aa0f20224fe89c4..36392d054ae9e6db926d463702064e3340ab3594 100644 (file)
@@ -31,7 +31,9 @@
 
 #include <vector>
 #include <list>
+
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/inorder/pipeline_traits.hh"
 #include "cpu/inorder/resources/use_def.hh"
 #include "cpu/inorder/cpu.hh"
index 8247bf1fb57958a342d9ff560829d0dbeded1666..41d16b633fa62e8644bf671eca69933a232c5188 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/inorder/thread_context.hh"
 
index 2489c525f1f233fdf2eb7fa9db007563f8c69f6a..820f3077fb03842b93a19e00bfee759a250b7437 100644 (file)
@@ -32,6 +32,7 @@
 #ifndef __CPU_INORDER_THREAD_CONTEXT_HH__
 #define __CPU_INORDER_THREAD_CONTEXT_HH__
 
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/inorder/thread_state.hh"
index 145075dc1669a61a6f9a33b3ab686d81e4e844df..ec51b80e773ddbcb4c17c3055d210d8bcc80f9cb 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <iomanip>
 
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/inteltrace.hh"
 #include "cpu/static_inst.hh"
index 5face4391a80cc3cee59db1ada2078820e50588a..f1980c713b10de1f99d86fd30482efdd2def2a11 100644 (file)
@@ -31,7 +31,7 @@
  *          Steve Raasch
  */
 
-#include "arch/isa_specific.hh"
+#include "config/the_isa.hh"
 #if THE_ISA != SPARC_ISA
     #error Legion tracing only works with SPARC simulations!
 #endif
index 1378ac135bda9d0ed48a0a206796ec73d95aa0e0..ed347176196f80eb7023f0ee564de10aeb2b9346 100644 (file)
  * Authors: Kevin Lim
  */
 
+#include <algorithm>
+
 #include "arch/types.hh"
 #include "arch/isa_traits.hh"
 #include "base/trace.hh"
 #include "base/traceflags.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/bpred_unit.hh"
-
 #include "params/DerivO3CPU.hh"
 
-#include <algorithm>
-
 template<class Impl>
 BPredUnit<Impl>::BPredUnit(DerivO3CPUParams *params)
     : _name(params->name + ".BPredUnit"),
index 7286f1b6fd29f99b3678afc4829e57a173db5ea9..aa0f792726f2e40a3fbcc672a6b294236ad3003e 100644 (file)
@@ -37,6 +37,7 @@
 #include "base/loader/symtab.hh"
 #include "base/timebuf.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/o3/commit.hh"
index 6722941e4be692cb4b332bd06695cc69d95eb46c..de1e242019b81fb3f75561d7369693ecac9dde0f 100644 (file)
@@ -30,8 +30,8 @@
  */
 
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
-
 #include "cpu/activity.hh"
 #include "cpu/simple_thread.hh"
 #include "cpu/thread_context.hh"
index 0cc8eab785c2006115c127a2d279033fc6da0adf..65170d8b2f82792fef348f55c33b91124c96805a 100644 (file)
@@ -42,6 +42,7 @@
 #include "base/statistics.hh"
 #include "base/timebuf.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
 #include "cpu/activity.hh"
 #include "cpu/base.hh"
index 86f87991c4c12e3a9fb7f126af55e442857fadf1..1b76de1320e632cd00626d6985e253510d970865 100644 (file)
@@ -28,6 +28,7 @@
  * Authors: Kevin Lim
  */
 
+#include "config/the_isa.hh"
 #include "cpu/o3/decode.hh"
 #include "params/DerivO3CPU.hh"
 
index 3ef42e91f30cc26ec9a3509cf4fab98eb074911c..e1279f82b5a77695cef613fd0d4887027e309680 100644 (file)
@@ -32,6 +32,7 @@
 #define __CPU_O3_DYN_INST_HH__
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/base_dyn_inst.hh"
 #include "cpu/inst_seq.hh"
 #include "cpu/o3/cpu.hh"
index 9cbc5089953bcb44de962fa6e026ce96c4d057e1..425c34428e3ff4b55d96af89bf5a75b5046293f6 100644 (file)
@@ -36,6 +36,7 @@
 #include "arch/predecoder.hh"
 #include "base/statistics.hh"
 #include "base/timebuf.hh"
+#include "config/the_isa.hh"
 #include "cpu/pc_event.hh"
 #include "mem/packet.hh"
 #include "mem/port.hh"
index 3781113bdbd5379da88891aabcf4ce448334ff2c..5c6e287dcb421657625ad234ad258d4fd724b9ad 100644 (file)
@@ -35,6 +35,7 @@
 #include "arch/isa_traits.hh"
 #include "arch/utility.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
 #include "cpu/checker/cpu.hh"
 #include "cpu/exetrace.hh"
index e28c4910e0d86950abdb353f4ee7362a3a432cbd..96289f64196b45b4881f866b06778c9a42baa7db 100644 (file)
@@ -38,6 +38,7 @@
 #include "base/misc.hh"
 #include "base/trace.hh"
 #include "base/traceflags.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/comm.hh"
 
 /**
index ba29df19651dee8090dbf554ce9bfcb1807149cf..751a26afd87ea52b9955bcb5bf3b10c170d0d76f 100644 (file)
@@ -35,6 +35,7 @@
 #include <queue>
 
 #include "base/timebuf.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/fu_pool.hh"
 #include "cpu/o3/iew.hh"
 #include "params/DerivO3CPU.hh"
index 4b29b4daa47264e09469701deb0d15be43a1630e..ffccd4a84b1f2f85581a1bf941712a017af8d9b1 100644 (file)
@@ -32,7 +32,7 @@
 #define __CPU_O3_IMPL_HH__
 
 #include "arch/isa_traits.hh"
-
+#include "config/the_isa.hh"
 #include "cpu/o3/cpu_policy.hh"
 
 
index a917caef367d6fdd23a34f7628623df707fb1520..6ff36d929354457739808fbd489c824b128b3986 100644 (file)
@@ -40,6 +40,7 @@
 #include "arch/faults.hh"
 #include "arch/locked_mem.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "base/fast_alloc.hh"
 #include "base/hashmap.hh"
 #include "cpu/inst_seq.hh"
index edc8c9b3f56393bd3884bce6f52bf352c15365ce..9ee1de45ae6317f5fa4c731ac9b3300b323558af 100644 (file)
@@ -30,8 +30,8 @@
  */
 
 #include "arch/locked_mem.hh"
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
-
 #include "cpu/o3/lsq.hh"
 #include "cpu/o3/lsq_unit.hh"
 #include "base/str.hh"
index d6beecdc50d930fa3b53de526e0067af1863e58e..e252fa362bf99e83ab8625c24da069a271a1908b 100644 (file)
 #ifndef __CPU_O3_REGFILE_HH__
 #define __CPU_O3_REGFILE_HH__
 
+#include <vector>
+
 #include "arch/isa_traits.hh"
 #include "arch/types.hh"
 #include "base/trace.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/comm.hh"
 
 #if FULL_SYSTEM
 #include "arch/kernel_stats.hh"
 #endif
 
-#include <vector>
-
 /**
  * Simple physical register file class.
  * Right now this is specific to Alpha until we decide if/how to make things
index 734b63105ad81d99d9ef8aae0b09566ad5930d51..8c21dda0a2f9d8cfbd2d406cf030d6bf994255eb 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "base/statistics.hh"
 #include "base/timebuf.hh"
+#include "config/the_isa.hh"
 
 class DerivO3CPUParams;
 
index e4cc2674b955964da2fe9b1cd0a20dba947e7d4c..ce206435c0a9047afd0776714e9fdef8fe3cdaef 100644 (file)
@@ -34,6 +34,7 @@
 #include "arch/isa_traits.hh"
 #include "arch/registers.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/rename.hh"
 #include "params/DerivO3CPU.hh"
 
index 896c66f3e10322098f66d0b98e61e1063bd0f2f3..51d8db4d812148c96c8029bef85ab15f9f7eaf90 100644 (file)
@@ -39,8 +39,9 @@
 #include <utility>
 #include <vector>
 
-#include "cpu/o3/free_list.hh"
 #include "arch/types.hh"
+#include "config/the_isa.hh"
+#include "cpu/o3/free_list.hh"
 
 class SimpleRenameMap
 {
index 657bc8d0671fd4c7e5464a0916342874d108c2ee..bdea07d1a45e7c7fe23dcdd311c9989784038ea3 100644 (file)
@@ -36,6 +36,8 @@
 #include <utility>
 #include <vector>
 
+#include "config/the_isa.hh"
+
 /**
  * ROB class.  The ROB is largely what drives squashing.
  */
index e7f8b7949f37e9061722080052b5b88bdb365898..ae1e13717c1536ffcbdc464a5d2b2668ea31091f 100644 (file)
@@ -29,7 +29,7 @@
  *          Kevin Lim
  */
 
-#include "arch/isa_specific.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/scoreboard.hh"
 
 Scoreboard::Scoreboard(unsigned activeThreads,
index ed5c6ac2000929164793c77bb297780296f77eb8..695b3b91a600a1e9d95f529b7e2755f64d20c34d 100755 (executable)
@@ -31,6 +31,7 @@
 #ifndef __CPU_O3_THREAD_CONTEXT_HH__
 #define __CPU_O3_THREAD_CONTEXT_HH__
 
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/o3/isa_specific.hh"
 
index e631c9244e19d423010f39974baf0ad2d94b58bb..940d460ced9d3801b0fba7a6a088dadf1423943f 100755 (executable)
@@ -30,6 +30,7 @@
  */
 
 #include "arch/registers.hh"
+#include "config/the_isa.hh"
 #include "cpu/o3/thread_context.hh"
 #include "cpu/quiesce_event.hh"
 
index 5e36332afb0cdac3107de42383a5f46785e2a4ef..a16986c997a4ca12f709c165282bad4563c9df01 100644 (file)
@@ -36,6 +36,7 @@
 #include "base/statistics.hh"
 #include "base/timebuf.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/inst_seq.hh"
index f86b882d1bf485b2e0c98be60cdba45120b88398..c09dd9046fd5278a649976217a0d117dfe257045 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "arch/isa_traits.hh" // For MachInst
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/simple_thread.hh"
 #include "cpu/thread_context.hh"
index a39f383ba9f84a545460e8d3a511c735e31e2445..cca72ef18fcc4023b18a023e5cd8391b535543a3 100644 (file)
@@ -34,6 +34,7 @@
 #include "arch/isa_traits.hh"
 #include "arch/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/base_dyn_inst.hh"
 #include "cpu/inst_seq.hh"
 #include "cpu/ozone/cpu.hh"   // MUST include this
index 8519917f5accb0a00a390f56ad628583ff4ead92..bfefb9428cab4b7bf5f5698c1cf190f601bd8e22 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "sim/faults.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/ozone/dyn_inst.hh"
 
 #if FULL_SYSTEM
index 38fc89e3fecdb46b9a39f4f8b02395aee94fa7ba..3809db00db3aee572ac0a106a77f3740a3153069 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "arch/utility.hh"
 #include "base/timebuf.hh"
+#include "config/the_isa.hh"
 #include "cpu/inst_seq.hh"
 #include "cpu/o3/bpred_unit.hh"
 #include "cpu/ozone/rename_table.hh"
index 516823b47163ac7e76abe2f4a6b851fa329637df..88413692761484b4dcf82403c931f4a75139530a 100644 (file)
  * Authors: Kevin Lim
  */
 
-#include "config/use_checker.hh"
-
 #include "sim/faults.hh"
 #include "arch/isa_traits.hh"
 #include "arch/utility.hh"
 #include "base/statistics.hh"
+#include "config/the_isa.hh"
+#include "config/use_checker.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/ozone/front_end.hh"
index 798b628d65c4fc2f1ad71a96fb185bad3fa3c1b5..2d4d225c7494ff605f011a2d7937b7ed57882649 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "sim/faults.hh"
 #include "arch/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/ozone/inorder_back_end.hh"
 #include "cpu/ozone/thread_state.hh"
 
index 47be245e5e5324a692eaeb23a8c4063fed94a58a..d8e402b652dbdb519ae7d2f3bb5abd1baec43e21 100644 (file)
@@ -38,6 +38,7 @@
 #include "arch/faults.hh"
 #include "arch/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "base/hashmap.hh"
 #include "cpu/inst_seq.hh"
 #include "mem/mem_interface.hh"
index 833aa0581231626598128fb8c1718321d3ef0c1d..dd44adf6edad8e6fff635bddc0b14c00b1f70d3e 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "arch/faults.hh"
 #include "base/str.hh"
+#include "config/the_isa.hh"
 #include "cpu/ozone/lsq_unit.hh"
 
 template <class Impl>
index 86d4531a0a7969e7daa5831783ae2e350d69830e..cbc386cb0fff49e87651d9524f4cb572d3247cf7 100644 (file)
@@ -28,8 +28,8 @@
  * Authors: Kevin Lim
  */
 
+#include "config/the_isa.hh"
 #include "config/use_checker.hh"
-
 #include "cpu/ozone/lw_back_end.hh"
 #include "cpu/op_class.hh"
 
index 6e9bb77af54f659ed1c35cad1057c4db831564a8..ee03129694e0b095ae753ee4b3d7185e255df8dd 100644 (file)
@@ -39,6 +39,7 @@
 #include "arch/faults.hh"
 #include "arch/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "base/fast_alloc.hh"
 #include "base/hashmap.hh"
 #include "cpu/inst_seq.hh"
index 4d290a1e999526947eb4c0f3c40a00e0954e18a3..c714c5d382c32c6caeeeefa9acde40902a510a35 100644 (file)
  * Authors: Kevin Lim
  */
 
-#include "config/use_checker.hh"
-
 #include "arch/faults.hh"
 #include "base/str.hh"
+#include "config/the_isa.hh"
+#include "config/use_checker.hh"
 #include "cpu/ozone/lw_lsq.hh"
 #include "cpu/checker/cpu.hh"
 
index 0b67d9635cc2df60b25ebd74f908f9039229be03..9a5579158be09c6ed48e2386a335d48a45194f8c 100644 (file)
@@ -32,6 +32,7 @@
 #define __CPU_OZONE_RENAME_TABLE_HH__
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 
 /** Rename table that holds the rename of each architectural register to
  *  producing DynInst. Needs to support copying from one table to another.
index 67bab7337342e84ab94a1c7cea752ee8a9a1c754..e8071e2b3c85b07d801fa63378ce280c0b76da19 100644 (file)
@@ -29,6 +29,8 @@
  */
 
 #include <cstdlib>  // Not really sure what to include to get NULL
+
+#include "config/the_isa.hh"
 #include "cpu/ozone/rename_table.hh"
 
 template <class Impl>
index 7687fdf60c2b91053e64f547845b70be336e8c65..b241dea73bb061e444668ffc5850fd4690a4563d 100644 (file)
@@ -31,6 +31,7 @@
 #ifndef __CPU_OZONE_SIMPLE_PARAMS_HH__
 #define __CPU_OZONE_SIMPLE_PARAMS_HH__
 
+#include "config/the_isa.hh"
 #include "cpu/ozone/cpu.hh"
 
 //Forward declarations
index 971fba88603cb9cd29d30f690b069929f75a0740..638b9d86c20d32254d90568dc01e6f8b46060b4b 100644 (file)
 #ifndef __CPU_OZONE_THREAD_STATE_HH__
 #define __CPU_OZONE_THREAD_STATE_HH__
 
-#include "sim/faults.hh"
-#include "arch/types.hh"
 #include "arch/regfile.hh"
+#include "arch/types.hh"
 #include "base/callback.hh"
 #include "base/output.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/thread_state.hh"
+#include "sim/faults.hh"
 #include "sim/process.hh"
 #include "sim/sim_exit.hh"
 
index 9606ed24d9747387fe0935c3a341ad2930c8bff4..dd856b5a79b8c487000f10c59b62b4cbbf2a4020 100644 (file)
@@ -34,6 +34,7 @@
 #include <map>
 
 #include "arch/stacktrace.hh"
+#include "config/the_isa.hh"
 #include "cpu/static_inst.hh"
 #include "base/types.hh"
 
index 83da618f8e5c7dfe0bcd2793589f5fcb13003cab..cd4f5457ebc8d5c20c9ea44df05188234e5240c4 100644 (file)
@@ -32,6 +32,7 @@
 #include "arch/mmaped_ipr.hh"
 #include "arch/utility.hh"
 #include "base/bigint.hh"
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/simple/atomic.hh"
 #include "mem/packet.hh"
index 732bb637b8fbefea7f25d5cd78a37a95f6374b4f..0104e1b1fee4d2dcea4f5f0a75969c8b2e20223e 100644 (file)
@@ -40,6 +40,7 @@
 #include "base/stats/events.hh"
 #include "base/trace.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/profile.hh"
index 466d0d1c9dab11c9336c5c55b889426d54a2f17e..39961fb881b34823e45d6169751568c70cbb378d 100644 (file)
@@ -36,6 +36,7 @@
 #include "arch/predecoder.hh"
 #include "base/statistics.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/simple_thread.hh"
 #include "cpu/pc_event.hh"
index 672fd941476d28fbbd8d582cb3226f9dce350d98..8d3bae3f696cb3534d9f87c6a6afe0e35dca5394 100644 (file)
@@ -32,6 +32,7 @@
 #include "arch/mmaped_ipr.hh"
 #include "arch/utility.hh"
 #include "base/bigint.hh"
+#include "config/the_isa.hh"
 #include "cpu/exetrace.hh"
 #include "cpu/simple/timing.hh"
 #include "mem/packet.hh"
index 22bc283a3ede04b7a5425f5b1e5562929f03ad06..92c6ad69b58d8d5168dd842b96c1b033262319fb 100644 (file)
@@ -34,6 +34,7 @@
 #include <string>
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/simple_thread.hh"
 #include "cpu/thread_context.hh"
index 8a44eba3712d4eb0fd42904c1aab1afa5114f262..2d28607b46c9ef78c6ac88ac2868e1b176757a4e 100644 (file)
@@ -39,6 +39,7 @@
 #include "arch/types.hh"
 #include "base/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/thread_state.hh"
 #include "mem/request.hh"
index b1298e0e9ec5e2607e36903a5418fa88250a9dc9..fdec097560bca9f1c478f6aa2a1e18839c938e63 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "arch/isa_traits.hh"
 #include "arch/utility.hh"
+#include "config/the_isa.hh"
 #include "base/bitfield.hh"
 #include "base/hashmap.hh"
 #include "base/misc.hh"
index ab105a4350e992af27f381e5bfa1513e42dccf8a..f2083ef081e0d287b36b5bb7dddc4d9da66cfac9 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "base/misc.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 
 void
index 9e34204ef46dec36a7a80edaa66a70de1c9555a2..78ecdacf2d34ebffc888de44746911473211cd14 100644 (file)
@@ -35,6 +35,7 @@
 #include "arch/types.hh"
 #include "base/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "mem/request.hh"
 #include "sim/byteswap.hh"
 #include "sim/faults.hh"
index 5c7c0ea56c3e3cdf76c5fc17861e75ff97151dba..cf637aedafc941eb6cd8436d11f6afd1860a92b3 100644 (file)
@@ -32,6 +32,7 @@
 #define __CPU_THREAD_STATE_HH__
 
 #include "arch/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/profile.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/base.hh"
index b6478fe225b1b46e1687e95a1152dfadfecad9e9..b36b5977dfa3111effc7b8cfe5b4b9f549c7ee86 100644 (file)
@@ -36,6 +36,7 @@
 #include <string>
 #include <vector>
 
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "dev/alpha/tsunami_cchip.hh"
 #include "dev/alpha/tsunami_pchip.hh"
index 52a2aea14c83675fff309b37aa841319fb93f36f..fd76fd93e8b8f8236632b27764e38a0852ad155d 100644 (file)
@@ -39,6 +39,7 @@
 
 #include "arch/alpha/ev5.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "cpu/thread_context.hh"
 #include "dev/alpha/tsunami.hh"
index 9c88904e32921ddf1012c181b7e33975c5fd46fa..8b06f51702089d9f407a23682a07bce686a902c7 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "base/time.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/rtcreg.h"
 #include "dev/alpha/tsunami_cchip.hh"
 #include "dev/alpha/tsunami.hh"
index 4df7d115003cfc39a2d309d44df8bf4b8c93d42b..df980cf797fc633f6bc16dcd1a5cc4824da6c28e 100644 (file)
@@ -38,6 +38,7 @@
 #include <vector>
 
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/alpha/tsunami_pchip.hh"
 #include "dev/alpha/tsunamireg.h"
 #include "dev/alpha/tsunami.hh"
index 6cdee031026d36741daa2fd15a9966aca24d3556..356574c718593c56276619dd1664c756d309a7d2 100644 (file)
@@ -37,6 +37,7 @@
 #include <vector>
 
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/baddev.hh"
 #include "dev/platform.hh"
 #include "mem/port.hh"
index 83faf508eeec477f53dd04764d737a77cc0fdc7f..fe93924f97587373b48e2d01339cea11e9805f61 100644 (file)
@@ -39,6 +39,7 @@
 #include <string>
 
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "base/chunk_generator.hh"
 #include "base/cprintf.hh" // csprintf
 #include "base/trace.hh"
index 1401fe9ee86c09ff1a596d8273e4f0eff3476a20..73dc9f11626cbcc7afd4588aa6e38ceebdabf4a7 100755 (executable)
@@ -37,6 +37,7 @@
 #include <string>
 #include <vector>
 
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "dev/mips/malta_cchip.hh"
 #include "dev/mips/malta_pchip.hh"
@@ -46,7 +47,6 @@
 #include "params/Malta.hh"
 #include "sim/system.hh"
 
-
 using namespace std;
 using namespace TheISA;
 
index 26597766523fb3061c1607ff803e7a893e5079a9..b2d5069c52542c5545efe866b3bf1e4c72a18fc4 100755 (executable)
@@ -39,6 +39,7 @@
 
 #include "arch/mips/mips_core_specific.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "cpu/thread_context.hh"
 #include "dev/mips/malta.hh"
@@ -56,7 +57,7 @@ using namespace TheISA;
 MaltaCChip::MaltaCChip(Params *p)
     : BasicPioDevice(p), malta(p->malta)
 {
-                warn("MaltaCCHIP::MaltaCChip() not implemented.");
+    warn("MaltaCCHIP::MaltaCChip() not implemented.");
 
     pioSize = 0xfffffff;
     //Put back pointer in malta
index 7f04789dbc9f86962e14163e0c8660df5dab5518..5a738a9b45d2f99f86c6e78f5283a55f471f03b2 100755 (executable)
@@ -42,6 +42,7 @@
 
 #include "base/time.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/rtcreg.h"
 #include "dev/mips/malta_cchip.hh"
 #include "dev/mips/malta.hh"
index b357e3b61c399666b3454e47b4c1c2f2f6944e7d..0354330218135edb036e37ee3d42cc8a69e6ca47 100755 (executable)
@@ -38,6 +38,7 @@
 #include <vector>
 
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/mips/malta_pchip.hh"
 #include "dev/mips/maltareg.h"
 #include "dev/mips/malta.hh"
index 912ca7f0fd30d2afda9efc4272982029b271cafe..86f081ec5855c8992b2ae75f47e8833f3d7ab7f6 100644 (file)
@@ -39,6 +39,7 @@
 #include "base/debug.hh"
 #include "base/inet.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "dev/etherlink.hh"
 #include "dev/ns_gige.hh"
index 2b51a6245b84978ad849c414c8d9043d655212f6..a91a5abf969826f83b141fe6f7c9cd62a0635c2a 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "base/misc.hh"
+#include "config/the_isa.hh"
 #include "dev/platform.hh"
 #include "sim/sim_exit.hh"
 
index 133f70b0bff67134edee1855eeaf7c8033958fc7..86090e04837358d553c9586ae580dbcc04eba5da 100644 (file)
@@ -36,6 +36,7 @@
 #include "base/debug.hh"
 #include "base/inet.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "cpu/thread_context.hh"
 #include "dev/etherlink.hh"
index 81132ac65919e0827e3e2fc834275dbc5cefe158..c7243cfb87c5c442ab567b9d5f472226e396fcd4 100644 (file)
@@ -39,6 +39,7 @@
 
 #include "base/time.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/sparc/dtod.hh"
 #include "dev/platform.hh"
 #include "mem/packet_access.hh"
index 88fb358efc56d3f569d84eb88baf4b191f75a61e..c00d942c940bc7d7bf598614df9f9d2b9f8f68aa 100644 (file)
@@ -36,6 +36,7 @@
 #include <string>
 #include <vector>
 
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "dev/sparc/t1000.hh"
 #include "dev/terminal.hh"
index 93f71f49b4a0e62bda206294baf4effa5127b28c..e3eacaaa20bd6316a53851c2ea1877ce0bd279e3 100644 (file)
@@ -38,6 +38,7 @@
 #include "base/inifile.hh"
 #include "base/str.hh"        // for to_number
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "dev/platform.hh"
 #include "dev/terminal.hh"
 #include "dev/uart8250.hh"
index 7dc1d87115db4a9cccb1bd4eb2bc393538b6629e..e3449abf60e33b2f37e7f8dd9d7e6d91dbe7d406 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "arch/x86/intmessage.hh"
 #include "arch/x86/x86_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/intr_control.hh"
 #include "dev/terminal.hh"
 #include "dev/x86/i82094aa.hh"
index da9564b7e9b927d226fb8e53c7bd2d6bc1055088..5c6ee073d537e8bc013f9cb325950f0a6c949176 100644 (file)
@@ -32,8 +32,6 @@
 #ifndef __PRINTK_HH__
 #define __PRINTK_HH__
 
-#include "arch/isa_specific.hh"
-
 #include <sstream>
 
 class Arguments;
index 6fd9e156360a254c224d44a1f7b16af3a295487e..bd01ed9ede0a1834cd1fd6fb00a6115f4e4e5027 100644 (file)
@@ -29,9 +29,9 @@
  *          Nathan Binkert
  */
 
-//For ISA_HAS_DELAY_SLOT
 #include "arch/isa_traits.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "kern/system_events.hh"
 
index 517aad6fa9febf629efd86d0ed944d41c39fa0cb..207d307920ca33742afc316b5749e7920fb7b097 100644 (file)
@@ -37,6 +37,7 @@
 #include "base/loader/symtab.hh"
 #include "base/trace.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "kern/tru64/mbuf.hh"
 #include "sim/arguments.hh"
index bf46e0de47d0c10d7d14ecaa5710ccac4169e877..c2bdd27764af549289051fe754b7a08ea5545815 100644 (file)
@@ -31,6 +31,7 @@
 
 #ifndef __TRU64_HH__
 #define __TRU64_HH__
+
 #include "config/full_system.hh"
 #include "kern/operatingsystem.hh"
 
@@ -55,6 +56,7 @@ class Tru64 {};
 #include <string.h>     // for memset()
 #include <unistd.h>
 
+#include "config/the_isa.hh"
 #include "arch/alpha/registers.hh"
 #include "cpu/base.hh"
 #include "sim/core.hh"
index 4867df55924f6ea9d5e9ae392fbdbea25f224407..460f75dea975743461e9a727e4ad4645149dc146 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "arch/alpha/ev5.hh"
 #include "arch/isa_traits.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/base.hh"
 #include "kern/system_events.hh"
index 599353b8854e1f1d104d4268f6bf1191adc1d4b9..bd9eb9accc720c730636cce27f5f168a40387694 100644 (file)
  * @file
  * Simobject instatiation of caches.
  */
+#include <list>
 #include <vector>
 
-// Must be included first to determine which caches we want
+#include "config/the_isa.hh"
 #include "enums/Prefetch.hh"
 #include "mem/config/cache.hh"
 #include "mem/cache/base.hh"
index f20a306cbe77bf16a0144a98d02d38cb99bbd133..f0e244a09bf8364c56bcae2467ef9a76c40e5531 100644 (file)
  * Hardware Prefetcher Definition.
  */
 
+#include <list>
+
 #include "arch/isa_traits.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "mem/cache/base.hh"
 #include "mem/cache/prefetch/base.hh"
 #include "mem/request.hh"
-#include <list>
 
 BasePrefetcher::BasePrefetcher(const BaseCacheParams *p)
     : size(p->prefetcher_size), pageStop(!p->prefetch_past_page),
index f70d508b21997237bbf1840180012b028e786918..fca9606fc84a73273a4a3e54f96c9d8e0dedd98d 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "arch/isa_traits.hh"
 #include "base/bigint.hh"
+#include "config/the_isa.hh"
 #include "mem/packet.hh"
 #include "sim/byteswap.hh"
 
index bf35932a662da71661104d17004abd1faec9fc94..4bc3a4434dfe721ff477b69a693ff90b9a0730b4 100644 (file)
@@ -42,6 +42,7 @@
 #include "base/bitfield.hh"
 #include "base/intmath.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "mem/page_table.hh"
 #include "sim/process.hh"
 #include "sim/sim_object.hh"
index 3ce720ad4894b89fa85abb66d824c55da476a4e8..0d93d37c78070606138a37c3509bdcb6c138255c 100644 (file)
@@ -42,6 +42,7 @@
 #include "arch/tlb.hh"
 #include "base/hashmap.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "mem/request.hh"
 #include "sim/faults.hh"
 #include "sim/serialize.hh"
index d87ad3b2204164e0e735abaaf56477eaeb39b53d..be4086cd90e958898207608f5bf145364a846e5b 100644 (file)
@@ -44,6 +44,7 @@
 #include "base/random.hh"
 #include "base/types.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "mem/packet_access.hh"
 #include "mem/physical.hh"
 #include "sim/eventq.hh"
index 989cfd338398c74d87eb1108e67dcc400932e932..bc95921647949241fb63ddcf4a1fe1022f0a9b1f 100644 (file)
@@ -28,9 +28,8 @@
  * Authors: Ali Saidi
  */
 
-//To get endianness
 #include "arch/isa_traits.hh"
-
+#include "config/the_isa.hh"
 #include "mem/port.hh"
 #include "sim/byteswap.hh"
 
index 4d9f8051f669715af1511c7151f09c746fd76b47..2fb529e12dc6f57817ce75b9b1c933c143063967 100644 (file)
@@ -35,6 +35,7 @@
 #include "base/output.hh"
 #include "base/str.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "mem/ruby/common/Debug.hh"
 #include "mem/ruby/libruby.hh"
 #include "mem/ruby/system/RubyPort.hh"
index 54de6625e089b7416e5e087f0adce244fea277ea..700229b23f5766b8f7c0eba67b4b68c547967adb 100644 (file)
@@ -30,7 +30,9 @@
  */
 
 #include <string>
+
 #include "base/chunk_generator.hh"
+#include "config/the_isa.hh"
 #include "mem/port.hh"
 #include "mem/translating_port.hh"
 #include "mem/page_table.hh"
index 15be45c2a484e10d4a00494c6ebc8a8dc8384b7e..ab061c0192858dcc33631b470e81558c6a8e3886 100644 (file)
@@ -34,6 +34,7 @@
  */
 
 #include "base/chunk_generator.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "mem/vport.hh"
 
index 5aa57755a87ec72d0b9dc4684b64688851c14a24..339a57f909895cf4973c99e03fa3137e1ee50fae 100644 (file)
  * Authors: Nathan Binkert
  */
 
-#include "sim/arguments.hh"
 #include "arch/utility.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
-
-using namespace TheISA;
+#include "sim/arguments.hh"
 
 Arguments::Data::~Data()
 {
index 55bd2f209b24043de9c910c03611631f28956dff..ec6ac04492f2bfcef9296f7cc1051a2ed9297fdf 100644 (file)
@@ -40,6 +40,7 @@
 #include "base/loader/symtab.hh"
 #include "base/statistics.hh"
 #include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "mem/page_table.hh"
 #include "mem/physical.hh"
@@ -53,7 +54,6 @@
 #include "sim/syscall_emul.hh"
 #include "sim/system.hh"
 
-#include "arch/isa_specific.hh"
 #if THE_ISA == ALPHA_ISA
 #include "arch/alpha/linux/process.hh"
 #include "arch/alpha/tru64/process.hh"
index 05a48071a3dec68f1cd02ed0a6bd78c50308eed1..7922ce0732a50bc88ae105de3ee9be7af61896bc 100644 (file)
 #include "arch/registers.hh"
 #include "base/statistics.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "sim/sim_object.hh"
 #include "sim/syscallreturn.hh"
 
+class BaseRemoteGDB;
 class GDBListener;
 class PageTable;
 class ProcessParams;
@@ -58,10 +60,6 @@ class SyscallDesc;
 class System;
 class ThreadContext;
 class TranslatingPort;
-namespace TheISA
-{
-    class RemoteGDB;
-}
 
 template<class IntType>
 struct AuxVector
@@ -94,7 +92,7 @@ class Process : public SimObject
     std::vector<int> contextIds;
 
     // remote gdb objects
-    std::vector<TheISA::RemoteGDB *> remoteGDB;
+    std::vector<BaseRemoteGDB *> remoteGDB;
     std::vector<GDBListener *> gdbListen;
     bool breakpoint();
 
index 6182150d40c3ab159cf167a7cd983f02d5733cdf..cf063818b8ee77a49b9b477acb26eb3a2380627b 100644 (file)
 #include <fstream>
 #include <string>
 
-#include "config/full_system.hh"
-
 #include "arch/vtophys.hh"
 #include "base/debug.hh"
+#include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/quiesce_event.hh"
index 811bdb73a8766018bafaddb5f7fad35484b541b7..bd66594afe989226fafa579cbeab0a81ce4d963b 100644 (file)
 #include "sim/syscall_emul.hh"
 #include "base/chunk_generator.hh"
 #include "base/trace.hh"
+#include "config/the_isa.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/base.hh"
 #include "mem/page_table.hh"
 #include "sim/process.hh"
 #include "sim/system.hh"
-
 #include "sim/sim_exit.hh"
 
 using namespace std;
index c00edfdc618b48bea8f7a9d58aae1f1224bf244b..c9ce4b14fb9054fb49721cbbc4a775663bced55e 100644 (file)
@@ -55,6 +55,7 @@
 #include "base/misc.hh"
 #include "base/trace.hh"
 #include "base/types.hh"
+#include "config/the_isa.hh"
 #include "cpu/base.hh"
 #include "cpu/thread_context.hh"
 #include "mem/translating_port.hh"
index f10167bba244db1f1ba04a67598d4d264819bf88..da77f19958c0bf8d58f7c63f8127bf10b22a7228 100644 (file)
 #include "base/loader/symtab.hh"
 #include "base/trace.hh"
 #include "cpu/thread_context.hh"
+#include "config/full_system.hh"
+#include "config/the_isa.hh"
 #include "mem/mem_object.hh"
 #include "mem/physical.hh"
 #include "sim/byteswap.hh"
 #include "sim/system.hh"
 #include "sim/debug.hh"
+
 #if FULL_SYSTEM
 #include "arch/vtophys.hh"
 #include "kern/kernel_stats.hh"
index aa89866bd591d5e0d836502818481432cf3635d9..eabbc835108e14b3b7a48941c7b79467bcf8e604 100644 (file)
@@ -45,6 +45,7 @@
 #include "mem/port.hh"
 #include "params/System.hh"
 #include "sim/sim_object.hh"
+
 #if FULL_SYSTEM
 #include "kern/system_events.hh"
 #include "mem/vport.hh"
@@ -59,10 +60,7 @@ class PhysicalMemory;
 class Platform;
 #endif
 class GDBListener;
-namespace TheISA
-{
-    class RemoteGDB;
-}
+class BaseRemoteGDB;
 
 class System : public SimObject
 {
@@ -187,7 +185,7 @@ class System : public SimObject
 
 #endif
   public:
-    std::vector<TheISA::RemoteGDB *> remoteGDB;
+    std::vector<BaseRemoteGDB *> remoteGDB;
     std::vector<GDBListener *> gdbListen;
     bool breakpoint();