SConscript revision 10614
14202Sbinkertn@umich.edu# -*- mode:python -*-
24202Sbinkertn@umich.edu
34202Sbinkertn@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
44202Sbinkertn@umich.edu# All rights reserved.
54202Sbinkertn@umich.edu#
64202Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
74202Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
84202Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
94202Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
104202Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
114202Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
124202Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
134202Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
144202Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
154202Sbinkertn@umich.edu# this software without specific prior written permission.
164202Sbinkertn@umich.edu#
174202Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184202Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214202Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244202Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264202Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284202Sbinkertn@umich.edu#
294202Sbinkertn@umich.edu# Authors: Steve Reinhardt
304202Sbinkertn@umich.edu
314202Sbinkertn@umich.eduImport('*')
324202Sbinkertn@umich.edu
335628Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'null':
344486Sbinkertn@umich.edu    SimObject('IntrControl.py')
354776Sgblack@eecs.umich.edu    Source('intr_control_noisa.cc')
364486Sbinkertn@umich.edu    Return()
374202Sbinkertn@umich.edu
384202Sbinkertn@umich.eduSimObject('CheckerCPU.py')
394202Sbinkertn@umich.edu
404202Sbinkertn@umich.eduSimObject('BaseCPU.py')
415522Snate@binkert.orgSimObject('FuncUnit.py')
428233Snate@binkert.orgSimObject('ExeTracer.py')
434202Sbinkertn@umich.eduSimObject('IntelTrace.py')
444202Sbinkertn@umich.eduSimObject('IntrControl.py')
454202Sbinkertn@umich.eduSimObject('NativeTrace.py')
464202Sbinkertn@umich.eduSimObject('TimingExpr.py')
474202Sbinkertn@umich.edu
484202Sbinkertn@umich.eduSource('activity.cc')
497768SAli.Saidi@ARM.comSource('base.cc')
507768SAli.Saidi@ARM.comSource('cpuevent.cc')
517768SAli.Saidi@ARM.comSource('exetrace.cc')
527768SAli.Saidi@ARM.comSource('exec_context.cc')
537768SAli.Saidi@ARM.comSource('func_unit.cc')
547768SAli.Saidi@ARM.comSource('inteltrace.cc')
554202Sbinkertn@umich.eduSource('intr_control.cc')
564202Sbinkertn@umich.eduSource('nativetrace.cc')
574826Ssaidi@eecs.umich.eduSource('pc_event.cc')
587768SAli.Saidi@ARM.comSource('profile.cc')
595016Sgblack@eecs.umich.eduSource('quiesce_event.cc')
604486Sbinkertn@umich.eduSource('reg_class.cc')
614486Sbinkertn@umich.eduSource('static_inst.cc')
624202Sbinkertn@umich.eduSource('simple_thread.cc')
634202Sbinkertn@umich.eduSource('thread_context.cc')
645192Ssaidi@eecs.umich.eduSource('thread_state.cc')
658335Snate@binkert.orgSource('timing_expr.cc')
668335Snate@binkert.org
678335Snate@binkert.orgif env['TARGET_ISA'] == 'sparc':
688335Snate@binkert.org    SimObject('LegionTrace.py')
698335Snate@binkert.org    Source('legiontrace.cc')
708335Snate@binkert.org
718335Snate@binkert.orgSimObject('DummyChecker.py')
728335Snate@binkert.orgSimObject('StaticInstFlags.py')
738335Snate@binkert.orgSource('checker/cpu.cc')
748335Snate@binkert.orgSource('dummy_checker.cc')
758335Snate@binkert.orgDebugFlag('Checker')
768335Snate@binkert.org
778335Snate@binkert.orgDebugFlag('Activity')
788335Snate@binkert.orgDebugFlag('Commit')
798335Snate@binkert.orgDebugFlag('Context')
808335Snate@binkert.orgDebugFlag('Decode')
818335Snate@binkert.orgDebugFlag('DynInst')
82DebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
83DebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
84DebugFlag('ExecEffAddr', 'Format: Include effective address')
85DebugFlag('ExecFaulting', 'Trace faulting instructions')
86DebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
87DebugFlag('ExecOpClass', 'Format: Include operand class')
88DebugFlag('ExecRegDelta')
89DebugFlag('ExecResult', 'Format: Include results from execution')
90DebugFlag('ExecSpeculative', 'Format: Include a miss-/speculation flag (-/+)')
91DebugFlag('ExecSymbol', 'Format: Try to include symbol names')
92DebugFlag('ExecThread', 'Format: Include thread ID in trace')
93DebugFlag('ExecTicks', 'Format: Include tick count')
94DebugFlag('ExecMicro', 'Filter: Include microops')
95DebugFlag('ExecMacro', 'Filter: Include macroops')
96DebugFlag('ExecUser', 'Filter: Trace user mode instructions')
97DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
98DebugFlag('ExecAsid', 'Format: Include ASID in trace')
99DebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
100DebugFlag('Fetch')
101DebugFlag('IntrControl')
102DebugFlag('O3PipeView')
103DebugFlag('PCEvent')
104DebugFlag('Quiesce')
105DebugFlag('Mwait')
106
107CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
108    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
109    'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
110    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
111    'ExecAsid', 'ExecFlags' ])
112CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
113    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
114    'ExecUser', 'ExecKernel' ])
115CompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
116    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting',
117    'ExecUser', 'ExecKernel' ])
118