cpu: Factor the page size out of the decode cache.
[gem5.git] / src / cpu / SConscript
1 # -*- mode:python -*-
2
3 # Copyright (c) 2006 The Regents of The University of Michigan
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are
8 # met: redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer;
10 # redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution;
13 # neither the name of the copyright holders nor the names of its
14 # contributors may be used to endorse or promote products derived from
15 # this software without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 Import('*')
30
31 DebugFlag('Activity')
32 DebugFlag('Commit')
33 DebugFlag('Context')
34 DebugFlag('Decode')
35 DebugFlag('DynInst')
36 DebugFlag('ExecEnable',
37 'Filter: Enable exec tracing (no tracing without this)')
38 DebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
39 DebugFlag('ExecEffAddr', 'Format: Include effective address')
40 DebugFlag('ExecFaulting', 'Trace faulting instructions')
41 DebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
42 DebugFlag('ExecOpClass', 'Format: Include operand class')
43 DebugFlag('ExecRegDelta')
44 DebugFlag('ExecResult', 'Format: Include results from execution')
45 DebugFlag('ExecSymbol', 'Format: Try to include symbol names')
46 DebugFlag('ExecThread', 'Format: Include thread ID in trace')
47 DebugFlag('ExecMicro', 'Filter: Include microops')
48 DebugFlag('ExecMacro', 'Filter: Include macroops')
49 DebugFlag('ExecUser', 'Filter: Trace user mode instructions')
50 DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
51 DebugFlag('ExecAsid', 'Format: Include ASID in trace')
52 DebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
53 DebugFlag('Fetch')
54 DebugFlag('IntrControl')
55 DebugFlag('O3PipeView')
56 DebugFlag('PCEvent')
57 DebugFlag('Quiesce')
58 DebugFlag('Mwait')
59
60 CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
61 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
62 'ExecResult', 'ExecSymbol', 'ExecThread',
63 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
64 'ExecAsid', 'ExecFlags' ])
65 CompoundFlag('Exec', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
66 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
67 'ExecFaulting', 'ExecUser', 'ExecKernel' ])
68 CompoundFlag('ExecNoTicks', [ 'Exec', 'FmtTicksOff' ])
69
70 Source('pc_event.cc')
71
72 if env['TARGET_ISA'] == 'null':
73 SimObject('IntrControl.py')
74 Source('intr_control_noisa.cc')
75 Return()
76
77 # Only build the protocol buffer instructions tracer if we have protobuf support
78 if env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
79 SimObject('InstPBTrace.py')
80 Source('inst_pb_trace.cc')
81
82 SimObject('CheckerCPU.py')
83
84 SimObject('BaseCPU.py')
85 SimObject('CPUTracers.py')
86 SimObject('FuncUnit.py')
87 SimObject('IntrControl.py')
88 SimObject('TimingExpr.py')
89
90 Source('activity.cc')
91 Source('base.cc')
92 Source('exetrace.cc')
93 Source('exec_context.cc')
94 Source('func_unit.cc')
95 Source('inteltrace.cc')
96 Source('intr_control.cc')
97 Source('nativetrace.cc')
98 Source('profile.cc')
99 Source('reg_class.cc')
100 Source('static_inst.cc')
101 Source('simple_thread.cc')
102 Source('thread_context.cc')
103 Source('thread_state.cc')
104 Source('timing_expr.cc')
105
106 SimObject('DummyChecker.py')
107 SimObject('StaticInstFlags.py')
108 Source('checker/cpu.cc')
109 Source('dummy_checker.cc')
110 DebugFlag('Checker')