SConscript revision 12015
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
334486Sbinkertn@umich.eduif env['TARGET_ISA'] == 'null':
344486Sbinkertn@umich.edu    SimObject('IntrControl.py')
358981Sandreas.hansson@arm.com    Source('intr_control_noisa.cc')
366165Ssanchezd@stanford.edu    Return()
376168Snate@binkert.org
384202Sbinkertn@umich.edu# Only build the protocol buffer instructions tracer if we have protobuf support
394202Sbinkertn@umich.eduif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
408981Sandreas.hansson@arm.com    SimObject('InstPBTrace.py')
414202Sbinkertn@umich.edu    Source('inst_pb_trace.cc')
428761Sgblack@eecs.umich.edu
434202Sbinkertn@umich.eduSimObject('CheckerCPU.py')
444202Sbinkertn@umich.edu
458914Sandreas.hansson@arm.comSimObject('BaseCPU.py')
464202Sbinkertn@umich.eduSimObject('CPUTracers.py')
478853Sandreas.hansson@arm.comSimObject('FuncUnit.py')
488799Sgblack@eecs.umich.eduSimObject('IntrControl.py')
498799Sgblack@eecs.umich.eduSimObject('TimingExpr.py')
506168Snate@binkert.org
517768SAli.Saidi@ARM.comSource('activity.cc')
528931Sandreas.hansson@arm.comSource('base.cc')
538931Sandreas.hansson@arm.comSource('cpuevent.cc')
548931Sandreas.hansson@arm.comSource('exetrace.cc')
558931Sandreas.hansson@arm.comSource('exec_context.cc')
568763Sgblack@eecs.umich.eduSource('func_unit.cc')
577768SAli.Saidi@ARM.comSource('inteltrace.cc')
587768SAli.Saidi@ARM.comSource('intr_control.cc')
598335Snate@binkert.orgSource('nativetrace.cc')
608335Snate@binkert.orgSource('pc_event.cc')
618335Snate@binkert.orgSource('profile.cc')
628981Sandreas.hansson@arm.comSource('quiesce_event.cc')
638335Snate@binkert.orgSource('reg_class.cc')
648335Snate@binkert.orgSource('static_inst.cc')
658335Snate@binkert.orgSource('simple_thread.cc')
668914Sandreas.hansson@arm.comSource('thread_context.cc')
677780Snilay@cs.wisc.eduSource('thread_state.cc')
688335Snate@binkert.orgSource('timing_expr.cc')
698335Snate@binkert.org
708683Snilay@cs.wisc.eduSimObject('DummyChecker.py')
718335Snate@binkert.orgSimObject('StaticInstFlags.py')
728335Snate@binkert.orgSource('checker/cpu.cc')
738335Snate@binkert.orgSource('dummy_checker.cc')
748335Snate@binkert.orgDebugFlag('Checker')
758335Snate@binkert.org
768335Snate@binkert.orgDebugFlag('Activity')
778615Snilay@cs.wisc.eduDebugFlag('Commit')
788335Snate@binkert.orgDebugFlag('Context')
798687Snilay@cs.wisc.eduDebugFlag('Decode')
808335Snate@binkert.orgDebugFlag('DynInst')
817780Snilay@cs.wisc.eduDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
827780Snilay@cs.wisc.eduDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
838687Snilay@cs.wisc.eduDebugFlag('ExecEffAddr', 'Format: Include effective address')
848683Snilay@cs.wisc.eduDebugFlag('ExecFaulting', 'Trace faulting instructions')
85DebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
86DebugFlag('ExecOpClass', 'Format: Include operand class')
87DebugFlag('ExecRegDelta')
88DebugFlag('ExecResult', 'Format: Include results from execution')
89DebugFlag('ExecSymbol', 'Format: Try to include symbol names')
90DebugFlag('ExecThread', 'Format: Include thread ID in trace')
91DebugFlag('ExecTicks', 'Format: Include tick count')
92DebugFlag('ExecMicro', 'Filter: Include microops')
93DebugFlag('ExecMacro', 'Filter: Include macroops')
94DebugFlag('ExecUser', 'Filter: Trace user mode instructions')
95DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
96DebugFlag('ExecAsid', 'Format: Include ASID in trace')
97DebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
98DebugFlag('Fetch')
99DebugFlag('IntrControl')
100DebugFlag('O3PipeView')
101DebugFlag('PCEvent')
102DebugFlag('Quiesce')
103DebugFlag('Mwait')
104
105CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
106    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
107    'ExecResult', 'ExecSymbol', 'ExecThread',
108    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
109    'ExecAsid', 'ExecFlags' ])
110CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
111    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
112    'ExecFaulting', 'ExecUser', 'ExecKernel' ])
113CompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
114    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting',
115    'ExecUser', 'ExecKernel' ])
116