SConscript revision 10801
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 337768SAli.Saidi@ARM.comif env['TARGET_ISA'] == 'null': 347768SAli.Saidi@ARM.com SimObject('IntrControl.py') 357768SAli.Saidi@ARM.com Source('intr_control_noisa.cc') 362178SN/A Return() 372178SN/A 382178SN/A# Only build the protocol buffer instructions tracer if we have protobuf support 392178SN/Aif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86': 402178SN/A SimObject('InstPBTrace.py') 412178SN/A Source('inst_pb_trace.cc') 422178SN/A 432178SN/ASimObject('CheckerCPU.py') 442178SN/A 452178SN/ASimObject('BaseCPU.py') 462178SN/ASimObject('CPUTracers.py') 472155SN/ASimObject('FuncUnit.py') 485865Sksewell@umich.eduSimObject('IntrControl.py') 496181Sksewell@umich.eduSimObject('TimingExpr.py') 506181Sksewell@umich.edu 515865Sksewell@umich.eduSource('activity.cc') 523918Ssaidi@eecs.umich.eduSource('base.cc') 535865Sksewell@umich.eduSource('cpuevent.cc') 542623SN/ASource('exetrace.cc') 553918Ssaidi@eecs.umich.eduSource('exec_context.cc') 562155SN/ASource('func_unit.cc') 572155SN/ASource('inteltrace.cc') 582292SN/ASource('intr_control.cc') 596181Sksewell@umich.eduSource('nativetrace.cc') 606181Sksewell@umich.eduSource('pc_event.cc') 613918Ssaidi@eecs.umich.eduSource('profile.cc') 622292SN/ASource('quiesce_event.cc') 632292SN/ASource('reg_class.cc') 642292SN/ASource('static_inst.cc') 653918Ssaidi@eecs.umich.eduSource('simple_thread.cc') 662292SN/ASource('thread_context.cc') 672292SN/ASource('thread_state.cc') 682766Sktlim@umich.eduSource('timing_expr.cc') 692766Sktlim@umich.edu 702766Sktlim@umich.eduSimObject('DummyChecker.py') 712921Sktlim@umich.eduSimObject('StaticInstFlags.py') 722921Sktlim@umich.eduSource('checker/cpu.cc') 732766Sktlim@umich.eduSource('dummy_checker.cc') 742766Sktlim@umich.eduDebugFlag('Checker') 755529Snate@binkert.org 762766Sktlim@umich.eduDebugFlag('Activity') 774762Snate@binkert.orgDebugFlag('Commit') 782155SN/ADebugFlag('Context') 792155SN/ADebugFlag('Decode') 802155SN/ADebugFlag('DynInst') 812155SN/ADebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)') 822155SN/ADebugFlag('ExecCPSeq', 'Format: Instruction sequence number') 832155SN/ADebugFlag('ExecEffAddr', 'Format: Include effective address') 842766Sktlim@umich.eduDebugFlag('ExecFaulting', 'Trace faulting instructions') 852155SN/ADebugFlag('ExecFetchSeq', 'Format: Fetch sequence number') 865865Sksewell@umich.eduDebugFlag('ExecOpClass', 'Format: Include operand class') 872155SN/ADebugFlag('ExecRegDelta') 882155SN/ADebugFlag('ExecResult', 'Format: Include results from execution') 892155SN/ADebugFlag('ExecSymbol', 'Format: Try to include symbol names') 902155SN/ADebugFlag('ExecThread', 'Format: Include thread ID in trace') 912178SN/ADebugFlag('ExecTicks', 'Format: Include tick count') 922178SN/ADebugFlag('ExecMicro', 'Filter: Include microops') 937756SAli.Saidi@ARM.comDebugFlag('ExecMacro', 'Filter: Include macroops') 942766Sktlim@umich.eduDebugFlag('ExecUser', 'Filter: Trace user mode instructions') 952178SN/ADebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions') 962178SN/ADebugFlag('ExecAsid', 'Format: Include ASID in trace') 976994Snate@binkert.orgDebugFlag('ExecFlags', 'Format: Include instruction flags in trace') 982178SN/ADebugFlag('Fetch') 992766Sktlim@umich.eduDebugFlag('IntrControl') 1002766Sktlim@umich.eduDebugFlag('O3PipeView') 1012766Sktlim@umich.eduDebugFlag('PCEvent') 1022788Sktlim@umich.eduDebugFlag('Quiesce') 1032178SN/ADebugFlag('Mwait') 1042733Sktlim@umich.edu 1052733Sktlim@umich.eduCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', 1062817Sksewell@umich.edu 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', 1072733Sktlim@umich.edu 'ExecResult', 'ExecSymbol', 'ExecThread', 1084486Sbinkertn@umich.edu 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', 1094486Sbinkertn@umich.edu 'ExecAsid', 'ExecFlags' ]) 1104776Sgblack@eecs.umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', 1114776Sgblack@eecs.umich.edu 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting', 1126365Sgblack@eecs.umich.edu 'ExecUser', 'ExecKernel' ]) 1134486Sbinkertn@umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', 1144202Sbinkertn@umich.edu 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting', 1154202Sbinkertn@umich.edu 'ExecUser', 'ExecKernel' ]) 1164202Sbinkertn@umich.edu