SConscript revision 10319
12155SN/A# -*- mode:python -*-
22155SN/A
32155SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42155SN/A# All rights reserved.
52155SN/A#
62155SN/A# Redistribution and use in source and binary forms, with or without
72155SN/A# modification, are permitted provided that the following conditions are
82155SN/A# met: redistributions of source code must retain the above copyright
92155SN/A# notice, this list of conditions and the following disclaimer;
102155SN/A# redistributions in binary form must reproduce the above copyright
112155SN/A# notice, this list of conditions and the following disclaimer in the
122155SN/A# documentation and/or other materials provided with the distribution;
132155SN/A# neither the name of the copyright holders nor the names of its
142155SN/A# contributors may be used to endorse or promote products derived from
152155SN/A# this software without specific prior written permission.
162155SN/A#
172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Steve Reinhardt
302155SN/A
314202Sbinkertn@umich.eduImport('*')
322155SN/A
339850Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'null':
349850Sandreas.hansson@arm.com    SimObject('IntrControl.py')
359850Sandreas.hansson@arm.com    Source('intr_control_noisa.cc')
367768SAli.Saidi@ARM.com    Return()
377768SAli.Saidi@ARM.com
388887Sgeoffrey.blake@arm.comSimObject('CheckerCPU.py')
392766Sktlim@umich.edu
404486Sbinkertn@umich.eduSimObject('BaseCPU.py')
414486Sbinkertn@umich.eduSimObject('FuncUnit.py')
424776Sgblack@eecs.umich.eduSimObject('ExeTracer.py')
434776Sgblack@eecs.umich.eduSimObject('IntelTrace.py')
448739Sgblack@eecs.umich.eduSimObject('IntrControl.py')
456365Sgblack@eecs.umich.eduSimObject('NativeTrace.py')
4610259SAndrew.Bardsley@arm.comSimObject('TimingExpr.py')
474486Sbinkertn@umich.edu
484202Sbinkertn@umich.eduSource('activity.cc')
494202Sbinkertn@umich.eduSource('base.cc')
504202Sbinkertn@umich.eduSource('cpuevent.cc')
514202Sbinkertn@umich.eduSource('exetrace.cc')
5210319SAndreas.Sandberg@ARM.comSource('exec_context.cc')
534202Sbinkertn@umich.eduSource('func_unit.cc')
544776Sgblack@eecs.umich.eduSource('inteltrace.cc')
558739Sgblack@eecs.umich.eduSource('intr_control.cc')
566365Sgblack@eecs.umich.eduSource('nativetrace.cc')
574202Sbinkertn@umich.eduSource('pc_event.cc')
588777Sgblack@eecs.umich.eduSource('profile.cc')
594202Sbinkertn@umich.eduSource('quiesce_event.cc')
609913Ssteve.reinhardt@amd.comSource('reg_class.cc')
614202Sbinkertn@umich.eduSource('static_inst.cc')
624202Sbinkertn@umich.eduSource('simple_thread.cc')
635217Ssaidi@eecs.umich.eduSource('thread_context.cc')
644202Sbinkertn@umich.eduSource('thread_state.cc')
6510259SAndrew.Bardsley@arm.comSource('timing_expr.cc')
662155SN/A
678793Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'sparc':
688793Sgblack@eecs.umich.edu    SimObject('LegionTrace.py')
698793Sgblack@eecs.umich.edu    Source('legiontrace.cc')
704776Sgblack@eecs.umich.edu
718887Sgeoffrey.blake@arm.comSimObject('DummyChecker.py')
7210201SAndrew.Bardsley@arm.comSimObject('StaticInstFlags.py')
738887Sgeoffrey.blake@arm.comSource('checker/cpu.cc')
749340SAndreas.Sandberg@arm.comSource('dummy_checker.cc')
758887Sgeoffrey.blake@arm.comDebugFlag('Checker')
765192Ssaidi@eecs.umich.edu
778335Snate@binkert.orgDebugFlag('Activity')
788335Snate@binkert.orgDebugFlag('Commit')
798335Snate@binkert.orgDebugFlag('Context')
808335Snate@binkert.orgDebugFlag('Decode')
818335Snate@binkert.orgDebugFlag('DynInst')
829534SAndreas.Sandberg@ARM.comDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
839534SAndreas.Sandberg@ARM.comDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
849534SAndreas.Sandberg@ARM.comDebugFlag('ExecEffAddr', 'Format: Include effective address')
858335Snate@binkert.orgDebugFlag('ExecFaulting', 'Trace faulting instructions')
869534SAndreas.Sandberg@ARM.comDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
879534SAndreas.Sandberg@ARM.comDebugFlag('ExecOpClass', 'Format: Include operand class')
888335Snate@binkert.orgDebugFlag('ExecRegDelta')
899534SAndreas.Sandberg@ARM.comDebugFlag('ExecResult', 'Format: Include results from execution')
909534SAndreas.Sandberg@ARM.comDebugFlag('ExecSpeculative', 'Format: Include a miss-/speculation flag (-/+)')
919534SAndreas.Sandberg@ARM.comDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
929534SAndreas.Sandberg@ARM.comDebugFlag('ExecThread', 'Format: Include thread ID in trace')
939534SAndreas.Sandberg@ARM.comDebugFlag('ExecTicks', 'Format: Include tick count')
949534SAndreas.Sandberg@ARM.comDebugFlag('ExecMicro', 'Filter: Include microops')
959534SAndreas.Sandberg@ARM.comDebugFlag('ExecMacro', 'Filter: Include macroops')
969534SAndreas.Sandberg@ARM.comDebugFlag('ExecUser', 'Filter: Trace user mode instructions')
979534SAndreas.Sandberg@ARM.comDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
989534SAndreas.Sandberg@ARM.comDebugFlag('ExecAsid', 'Format: Include ASID in trace')
998335Snate@binkert.orgDebugFlag('Fetch')
1008335Snate@binkert.orgDebugFlag('IntrControl')
1018471SGiacomo.Gabrielli@arm.comDebugFlag('O3PipeView')
1028335Snate@binkert.orgDebugFlag('PCEvent')
1038335Snate@binkert.orgDebugFlag('Quiesce')
1045192Ssaidi@eecs.umich.edu
1058232Snate@binkert.orgCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1068232Snate@binkert.org    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1078232Snate@binkert.org    'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
1088300Schander.sudanthi@arm.com    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
1098300Schander.sudanthi@arm.com    'ExecAsid' ])
1105192Ssaidi@eecs.umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1118300Schander.sudanthi@arm.com    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
1128300Schander.sudanthi@arm.com    'ExecUser', 'ExecKernel' ])
1136036Sksewell@umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1148300Schander.sudanthi@arm.com    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting',
1158300Schander.sudanthi@arm.com    'ExecUser', 'ExecKernel' ])
116