SConscript revision 12740
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 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') 472178SN/ASimObject('FuncUnit.py') 482178SN/ASimObject('IntrControl.py') 492155SN/ASimObject('TimingExpr.py') 505865Sksewell@umich.edu 516181Sksewell@umich.eduSource('activity.cc') 526181Sksewell@umich.eduSource('base.cc') 535865Sksewell@umich.eduSource('cpuevent.cc') 543918Ssaidi@eecs.umich.eduSource('exetrace.cc') 555865Sksewell@umich.eduSource('exec_context.cc') 562623SN/ASource('func_unit.cc') 573918Ssaidi@eecs.umich.eduSource('inteltrace.cc') 582155SN/ASource('intr_control.cc') 592155SN/ASource('nativetrace.cc') 602292SN/ASource('pc_event.cc') 616181Sksewell@umich.eduSource('profile.cc') 626181Sksewell@umich.eduSource('quiesce_event.cc') 633918Ssaidi@eecs.umich.eduSource('reg_class.cc') 642292SN/ASource('static_inst.cc') 652292SN/ASource('simple_thread.cc') 662292SN/ASource('thread_context.cc') 673918Ssaidi@eecs.umich.eduSource('thread_state.cc') 682292SN/ASource('timing_expr.cc') 692292SN/A 702766Sktlim@umich.eduSimObject('DummyChecker.py') 712766Sktlim@umich.eduSimObject('StaticInstFlags.py') 722766Sktlim@umich.eduSource('checker/cpu.cc') 732921Sktlim@umich.eduSource('dummy_checker.cc') 748887Sgeoffrey.blake@arm.comDebugFlag('Checker') 758887Sgeoffrey.blake@arm.com 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') 1012788Sktlim@umich.eduDebugFlag('PCEvent') 1022178SN/ADebugFlag('Quiesce') 1034486Sbinkertn@umich.eduDebugFlag('Mwait') 1044486Sbinkertn@umich.edu 1054776Sgblack@eecs.umich.eduCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', 1064776Sgblack@eecs.umich.edu 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', 1078739Sgblack@eecs.umich.edu 'ExecResult', 'ExecSymbol', 'ExecThread', 1086365Sgblack@eecs.umich.edu 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', 1094486Sbinkertn@umich.edu 'ExecAsid', 'ExecFlags' ]) 1104202Sbinkertn@umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', 1114202Sbinkertn@umich.edu 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro', 1124202Sbinkertn@umich.edu 'ExecFaulting', 'ExecUser', 'ExecKernel' ]) 1134202Sbinkertn@umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', 1144202Sbinkertn@umich.edu 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting', 1154776Sgblack@eecs.umich.edu 'ExecUser', 'ExecKernel' ]) 1168739Sgblack@eecs.umich.edu