SConscript revision 10663
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')
4110663SAli.Saidi@ARM.comSimObject('CPUTracers.py')
424486Sbinkertn@umich.eduSimObject('FuncUnit.py')
438739Sgblack@eecs.umich.eduSimObject('IntrControl.py')
4410259SAndrew.Bardsley@arm.comSimObject('TimingExpr.py')
454486Sbinkertn@umich.edu
464202Sbinkertn@umich.eduSource('activity.cc')
474202Sbinkertn@umich.eduSource('base.cc')
484202Sbinkertn@umich.eduSource('cpuevent.cc')
494202Sbinkertn@umich.eduSource('exetrace.cc')
5010319SAndreas.Sandberg@ARM.comSource('exec_context.cc')
514202Sbinkertn@umich.eduSource('func_unit.cc')
524776Sgblack@eecs.umich.eduSource('inteltrace.cc')
538739Sgblack@eecs.umich.eduSource('intr_control.cc')
546365Sgblack@eecs.umich.eduSource('nativetrace.cc')
554202Sbinkertn@umich.eduSource('pc_event.cc')
568777Sgblack@eecs.umich.eduSource('profile.cc')
574202Sbinkertn@umich.eduSource('quiesce_event.cc')
589913Ssteve.reinhardt@amd.comSource('reg_class.cc')
594202Sbinkertn@umich.eduSource('static_inst.cc')
604202Sbinkertn@umich.eduSource('simple_thread.cc')
615217Ssaidi@eecs.umich.eduSource('thread_context.cc')
624202Sbinkertn@umich.eduSource('thread_state.cc')
6310259SAndrew.Bardsley@arm.comSource('timing_expr.cc')
642155SN/A
658887Sgeoffrey.blake@arm.comSimObject('DummyChecker.py')
6610201SAndrew.Bardsley@arm.comSimObject('StaticInstFlags.py')
678887Sgeoffrey.blake@arm.comSource('checker/cpu.cc')
689340SAndreas.Sandberg@arm.comSource('dummy_checker.cc')
698887Sgeoffrey.blake@arm.comDebugFlag('Checker')
705192Ssaidi@eecs.umich.edu
718335Snate@binkert.orgDebugFlag('Activity')
728335Snate@binkert.orgDebugFlag('Commit')
738335Snate@binkert.orgDebugFlag('Context')
748335Snate@binkert.orgDebugFlag('Decode')
758335Snate@binkert.orgDebugFlag('DynInst')
769534SAndreas.Sandberg@ARM.comDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
779534SAndreas.Sandberg@ARM.comDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
789534SAndreas.Sandberg@ARM.comDebugFlag('ExecEffAddr', 'Format: Include effective address')
798335Snate@binkert.orgDebugFlag('ExecFaulting', 'Trace faulting instructions')
809534SAndreas.Sandberg@ARM.comDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
819534SAndreas.Sandberg@ARM.comDebugFlag('ExecOpClass', 'Format: Include operand class')
828335Snate@binkert.orgDebugFlag('ExecRegDelta')
839534SAndreas.Sandberg@ARM.comDebugFlag('ExecResult', 'Format: Include results from execution')
849534SAndreas.Sandberg@ARM.comDebugFlag('ExecSpeculative', 'Format: Include a miss-/speculation flag (-/+)')
859534SAndreas.Sandberg@ARM.comDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
869534SAndreas.Sandberg@ARM.comDebugFlag('ExecThread', 'Format: Include thread ID in trace')
879534SAndreas.Sandberg@ARM.comDebugFlag('ExecTicks', 'Format: Include tick count')
889534SAndreas.Sandberg@ARM.comDebugFlag('ExecMicro', 'Filter: Include microops')
899534SAndreas.Sandberg@ARM.comDebugFlag('ExecMacro', 'Filter: Include macroops')
909534SAndreas.Sandberg@ARM.comDebugFlag('ExecUser', 'Filter: Trace user mode instructions')
919534SAndreas.Sandberg@ARM.comDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
929534SAndreas.Sandberg@ARM.comDebugFlag('ExecAsid', 'Format: Include ASID in trace')
9310383Smitch.hayenga@arm.comDebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
948335Snate@binkert.orgDebugFlag('Fetch')
958335Snate@binkert.orgDebugFlag('IntrControl')
968471SGiacomo.Gabrielli@arm.comDebugFlag('O3PipeView')
978335Snate@binkert.orgDebugFlag('PCEvent')
988335Snate@binkert.orgDebugFlag('Quiesce')
9910529Smorr@cs.wisc.eduDebugFlag('Mwait')
1005192Ssaidi@eecs.umich.edu
1018232Snate@binkert.orgCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1028232Snate@binkert.org    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1038232Snate@binkert.org    'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
1048300Schander.sudanthi@arm.com    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
10510383Smitch.hayenga@arm.com    'ExecAsid', 'ExecFlags' ])
1065192Ssaidi@eecs.umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1078300Schander.sudanthi@arm.com    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
1088300Schander.sudanthi@arm.com    'ExecUser', 'ExecKernel' ])
1096036Sksewell@umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1108300Schander.sudanthi@arm.com    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting',
1118300Schander.sudanthi@arm.com    'ExecUser', 'ExecKernel' ])
112