mem-cache: Add multiple eviction stats
[gem5.git] / src / arch / x86 / SConscript
index 2742c79e85f4f096453d3b8a4210573fff194a77..6f20f54b1b682e1a306541ec2652b331f808aedd 100644 (file)
@@ -44,6 +44,8 @@ Import('*')
 
 if env['TARGET_ISA'] == 'x86':
     Source('cpuid.cc')
+    Source('decoder.cc')
+    Source('decoder_tables.cc')
     Source('emulenv.cc')
     Source('faults.cc')
     Source('insts/badmicroop.cc')
@@ -53,44 +55,36 @@ if env['TARGET_ISA'] == 'x86':
     Source('insts/microop.cc')
     Source('insts/microregop.cc')
     Source('insts/static_inst.cc')
+    Source('interrupts.cc')
     Source('isa.cc')
+    Source('linux/linux.cc')
+    Source('linux/process.cc')
+    Source('linux/system.cc')
     Source('nativetrace.cc')
     Source('pagetable.cc')
-    Source('predecoder.cc')
-    Source('predecoder_tables.cc')
+    Source('pagetable_walker.cc')
+    Source('process.cc')
+    Source('pseudo_inst.cc')
     Source('remote_gdb.cc')
+    Source('stacktrace.cc')
+    Source('system.cc')
     Source('tlb.cc')
     Source('types.cc')
     Source('utility.cc')
+    Source('vtophys.cc')
 
+    SimObject('X86ISA.py')
+    SimObject('X86LocalApic.py')
     SimObject('X86NativeTrace.py')
-
+    SimObject('X86System.py')
     SimObject('X86TLB.py')
-    DebugFlag('Predecoder', "Predecoder debug output")
-    DebugFlag('X86', "Generic X86 ISA debugging")
-
-    if env['FULL_SYSTEM']:
-        DebugFlag('LocalApic', "Local APIC debugging")
-        DebugFlag('PageTableWalker', \
-                  "Page table walker state machine debugging")
-        DebugFlag('Faults', "Trace all faults/exceptions/traps")
 
-        SimObject('X86LocalApic.py')
-        SimObject('X86System.py')
-
-        # Full-system sources
-        Source('interrupts.cc')
-        Source('linux/system.cc')
-        Source('pagetable_walker.cc')
-        Source('system.cc')
-        Source('stacktrace.cc')
-        Source('vtophys.cc')
-    else:
-        Source('process.cc')
-
-        Source('linux/linux.cc')
-        Source('linux/process.cc')
-        Source('linux/syscalls.cc')
+    DebugFlag('Faults', "Trace all faults/exceptions/traps")
+    DebugFlag('LocalApic', "Local APIC debugging")
+    DebugFlag('PageTableWalker', \
+              "Page table walker state machine debugging")
+    DebugFlag('Decoder', "Decoder debug output")
+    DebugFlag('X86', "Generic X86 ISA debugging")
 
     python_files = (
         '__init__.py',
@@ -313,11 +307,8 @@ if env['TARGET_ISA'] == 'x86':
 
 
     # Add in files generated by the ISA description.
-    isa_desc_files = env.ISADesc('isa/main.isa')
+    isa_desc_files = ISADesc('isa/main.isa')
     for f in isa_desc_files:
         # Add in python file dependencies that won't be caught otherwise
         for pyfile in python_files:
             env.Depends(f, "isa/insts/%s" % pyfile)
-        # Only non-header files need to be compiled.
-        if not f.path.endswith('.hh'):
-            Source(f)