SConscript revision 11012
12139SN/A# -*- mode:python -*-
22139SN/A
312109SRekai.GonzalezAlberquilla@arm.com# Copyright (c) 2006 The Regents of The University of Michigan
412109SRekai.GonzalezAlberquilla@arm.com# All rights reserved.
512109SRekai.GonzalezAlberquilla@arm.com#
612109SRekai.GonzalezAlberquilla@arm.com# Redistribution and use in source and binary forms, with or without
712109SRekai.GonzalezAlberquilla@arm.com# modification, are permitted provided that the following conditions are
812109SRekai.GonzalezAlberquilla@arm.com# met: redistributions of source code must retain the above copyright
912109SRekai.GonzalezAlberquilla@arm.com# notice, this list of conditions and the following disclaimer;
1012109SRekai.GonzalezAlberquilla@arm.com# redistributions in binary form must reproduce the above copyright
1112109SRekai.GonzalezAlberquilla@arm.com# notice, this list of conditions and the following disclaimer in the
1212109SRekai.GonzalezAlberquilla@arm.com# documentation and/or other materials provided with the distribution;
1312109SRekai.GonzalezAlberquilla@arm.com# neither the name of the copyright holders nor the names of its
1412109SRekai.GonzalezAlberquilla@arm.com# contributors may be used to endorse or promote products derived from
152139SN/A# this software without specific prior written permission.
162139SN/A#
172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282139SN/A#
292139SN/A# Authors: Steve Reinhardt
302139SN/A
312139SN/AImport('*')
322139SN/A
332139SN/Aif env['TARGET_ISA'] == 'null':
342139SN/A    SimObject('IntrControl.py')
352139SN/A    Source('intr_control_noisa.cc')
362139SN/A    Return()
372139SN/A
382139SN/A# Only build the protocol buffer instructions tracer if we have protobuf support
392139SN/Aif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
402665Ssaidi@eecs.umich.edu    SimObject('InstPBTrace.py')
412665Ssaidi@eecs.umich.edu    Source('inst_pb_trace.cc')
422139SN/A
434202Sbinkertn@umich.eduSimObject('CheckerCPU.py')
448961Sgblack@eecs.umich.edu
4510196SCurtis.Dunham@arm.comSimObject('BaseCPU.py')
462139SN/ASimObject('CPUTracers.py')
4712246Sgabeblack@google.comSimObject('FuncUnit.py')
4812246Sgabeblack@google.comSimObject('IntrControl.py')
494202Sbinkertn@umich.eduSimObject('TimingExpr.py')
502152SN/A
512152SN/ASource('activity.cc')
522139SN/ASource('base.cc')
532139SN/ASource('cpuevent.cc')
542139SN/ASource('exetrace.cc')
552139SN/ASource('exec_context.cc')
562139SN/ASource('func_unit.cc')
572152SN/ASource('inteltrace.cc')
582152SN/ASource('intr_control.cc')
592139SN/ASource('nativetrace.cc')
6012015Sgabeblack@google.comSource('pc_event.cc')
6112015Sgabeblack@google.comSource('profile.cc')
629020Sgblack@eecs.umich.eduSource('quiesce_event.cc')
634781Snate@binkert.orgSource('reg_class.cc')
647799Sgblack@eecs.umich.eduSource('static_inst.cc')
654781Snate@binkert.orgSource('simple_thread.cc')
664781Snate@binkert.orgSource('thread_context.cc')
673170Sstever@eecs.umich.eduSource('thread_state.cc')
685664Sgblack@eecs.umich.eduSource('timing_expr.cc')
698105Sgblack@eecs.umich.edu
706179Sksewell@umich.eduSimObject('DummyChecker.py')
714781Snate@binkert.orgSimObject('StaticInstFlags.py')
7210553Salexandru.dutu@amd.comSource('checker/cpu.cc')
736329Sgblack@eecs.umich.eduSource('dummy_checker.cc')
744781Snate@binkert.orgDebugFlag('Checker')
754781Snate@binkert.org
764781Snate@binkert.orgDebugFlag('Activity')
774781Snate@binkert.orgDebugFlag('Commit')
784781Snate@binkert.orgDebugFlag('Context')
7912015Sgabeblack@google.comDebugFlag('Decode')
8012015Sgabeblack@google.comDebugFlag('DynInst')
812152SN/ADebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
8211308Santhony.gutierrez@amd.comDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
8312016Sgabeblack@google.comDebugFlag('ExecEffAddr', 'Format: Include effective address')
8412016Sgabeblack@google.comDebugFlag('ExecFaulting', 'Trace faulting instructions')
8511308Santhony.gutierrez@amd.comDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
8611696Santhony.gutierrez@amd.comDebugFlag('ExecOpClass', 'Format: Include operand class')
8711308Santhony.gutierrez@amd.comDebugFlag('ExecRegDelta')
8812016Sgabeblack@google.comDebugFlag('ExecResult', 'Format: Include results from execution')
8912016Sgabeblack@google.comDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
9011308Santhony.gutierrez@amd.comDebugFlag('ExecThread', 'Format: Include thread ID in trace')
912152SN/ADebugFlag('ExecTicks', 'Format: Include tick count')
922152SN/ADebugFlag('ExecMicro', 'Filter: Include microops')
932152SN/ADebugFlag('ExecMacro', 'Filter: Include macroops')
942152SN/ADebugFlag('ExecUser', 'Filter: Trace user mode instructions')
952152SN/ADebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
962152SN/ADebugFlag('ExecAsid', 'Format: Include ASID in trace')
972152SN/ADebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
982152SN/ADebugFlag('Fetch')
992152SN/ADebugFlag('IntrControl')
1002152SN/ADebugFlag('O3PipeView')
10112222Sgabeblack@google.comDebugFlag('PCEvent')
1022152SN/ADebugFlag('Quiesce')
10312222Sgabeblack@google.comDebugFlag('Mwait')
10412222Sgabeblack@google.com
10512222Sgabeblack@google.comCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
10612222Sgabeblack@google.com    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1072152SN/A    'ExecResult', 'ExecSymbol', 'ExecThread',
10812222Sgabeblack@google.com    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
10912222Sgabeblack@google.com    'ExecAsid', 'ExecFlags' ])
11012222Sgabeblack@google.comCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
11112222Sgabeblack@google.com    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
1122152SN/A    'ExecUser', 'ExecKernel' ])
1132152SN/ACompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1142152SN/A    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting',
1152152SN/A    'ExecUser', 'ExecKernel' ])
1162152SN/A