Support profiling.
[gem5.git] / SConscript
index 966cb6d3e86193d0a4a4e437a8ed9b5e05e86cbf..e5ca7c380bae3baf4a84e3beecb4ff92594a3eb7 100644 (file)
@@ -80,11 +80,13 @@ base_sources = Split('''
        base/stats/visit.cc
        base/stats/text.cc
 
+        cpu/activity.cc
        cpu/base.cc
         cpu/base_dyn_inst.cc
-       cpu/exec_context.cc
+       cpu/cpu_exec_context.cc
        cpu/exetrace.cc
        cpu/pc_event.cc
+        cpu/quiesce_event.cc
        cpu/static_inst.cc
         cpu/sampler/sampler.cc
         cpu/trace/reader/mem_trace_reader.cc
@@ -137,6 +139,9 @@ base_sources = Split('''
        mem/cache/tags/split_lifo.cc
        mem/functional/functional.cc
        mem/timing/base_memory.cc
+        mem/timing/dram_memory.cc
+        mem/timing/dram_mem_bank.cc
+        mem/timing/dram_memory_builder.cc
        mem/timing/memory_builder.cc
        mem/timing/simple_mem_bank.cc
         mem/trace/itx_writer.cc
@@ -251,15 +256,13 @@ full_system_sources = Split('''
        kern/kernel_binning.cc
        kern/kernel_stats.cc
        kern/system_events.cc
-       kern/freebsd/freebsd_system.cc
+       kern/linux/events.cc
        kern/linux/linux_syscalls.cc
-       kern/linux/linux_system.cc
        kern/linux/printk.cc
        kern/tru64/dump_mbuf.cc
        kern/tru64/printf.cc
        kern/tru64/tru64_events.cc
        kern/tru64/tru64_syscalls.cc
-       kern/tru64/tru64_system.cc
 
        mem/functional/memory_control.cc
        mem/functional/physical.cc
@@ -300,29 +303,6 @@ syscall_emulation_sources = Split('''
        sim/syscall_emul.cc
         ''')
 
-# The following stuff (targetarch code and global define of THE_ISA)
-# are legacy things that assume we're only compiling one ISA at a
-# time.  These will have to go away if we want to build a binary that
-# supports multiple ISAs.
-
-targetarch_files = Split('''
-        alpha_linux_process.hh
-        alpha_memory.hh
-        alpha_tru64_process.hh
-        aout_machdep.h
-        arguments.hh
-        ecoff_machdep.h
-        ev5.hh
-        faults.hh
-        stacktrace.hh
-        vtophys.hh
-        ''')
-
-# Set up bridging headers to the architecture specific versions
-for f in targetarch_files:
-    env.Command('targetarch/' + f, 'arch/%s/%s' % (env['TARGET_ISA'], f),
-                '''echo '#include "arch/%s/%s"' > $TARGET''' % (env['TARGET_ISA'], f))
-
 # Add a flag defining what THE_ISA should be for all compilation
 env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
 
@@ -397,11 +377,12 @@ def make_objs(sources, env):
 # the corresponding build directory to pick up generated include
 # files.
 env.Append(CPPPATH='.')
+env.Append(CPPPATH='./libelf')
 
 # Debug binary
 debugEnv = env.Copy(OBJSUFFIX='.do')
 debugEnv.Label = 'debug'
-debugEnv.Append(CCFLAGS=Split('-g -gstabs+ -O0'))
+debugEnv.Append(CCFLAGS=Split('-g -gdwarf-2 -O0'))
 debugEnv.Append(CPPDEFINES='DEBUG')
 tlist = debugEnv.Program(target = 'm5.debug',
                          source = make_objs(sources, debugEnv))