SConscript revision 12222
14484Sbinkertn@umich.edu# -*- mode:python -*-
24484Sbinkertn@umich.edu
34484Sbinkertn@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
44484Sbinkertn@umich.edu# All rights reserved.
54484Sbinkertn@umich.edu#
64484Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
74484Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
84484Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
94484Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
104484Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
114484Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
124484Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
134484Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
144484Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
154484Sbinkertn@umich.edu# this software without specific prior written permission.
164484Sbinkertn@umich.edu#
174484Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184484Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194484Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204484Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214484Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224484Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234484Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244484Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254484Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264484Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274484Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284484Sbinkertn@umich.edu#
294484Sbinkertn@umich.edu# Authors: Steve Reinhardt
304484Sbinkertn@umich.edu
314494Ssaidi@eecs.umich.eduImport('*')
324484Sbinkertn@umich.edu
334484Sbinkertn@umich.eduif env['TARGET_ISA'] == 'null':
344484Sbinkertn@umich.edu    SimObject('IntrControl.py')
354484Sbinkertn@umich.edu    Source('intr_control_noisa.cc')
364484Sbinkertn@umich.edu    Return()
374484Sbinkertn@umich.edu
384781Snate@binkert.org# Only build the protocol buffer instructions tracer if we have protobuf support
394484Sbinkertn@umich.eduif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
404484Sbinkertn@umich.edu    SimObject('InstPBTrace.py')
414484Sbinkertn@umich.edu    Source('inst_pb_trace.cc')
424484Sbinkertn@umich.edu
434484Sbinkertn@umich.eduSimObject('CheckerCPU.py')
444484Sbinkertn@umich.edu
454484Sbinkertn@umich.eduSimObject('BaseCPU.py')
464484Sbinkertn@umich.eduSimObject('CPUTracers.py')
474484Sbinkertn@umich.eduSimObject('FuncUnit.py')
484484Sbinkertn@umich.eduSimObject('IntrControl.py')
494484Sbinkertn@umich.eduSimObject('TimingExpr.py')
504484Sbinkertn@umich.edu
514484Sbinkertn@umich.eduSource('activity.cc')
524484Sbinkertn@umich.eduSource('base.cc')
534484Sbinkertn@umich.eduSource('cpuevent.cc')
544484Sbinkertn@umich.eduSource('exetrace.cc')
554484Sbinkertn@umich.eduSource('exec_context.cc')
564484Sbinkertn@umich.eduSource('func_unit.cc')
574484Sbinkertn@umich.eduSource('inteltrace.cc')
584484Sbinkertn@umich.eduSource('intr_control.cc')
594484Sbinkertn@umich.eduSource('nativetrace.cc')
604484Sbinkertn@umich.eduSource('pc_event.cc')
614484Sbinkertn@umich.eduSource('profile.cc')
624484Sbinkertn@umich.eduSource('quiesce_event.cc')
634484Sbinkertn@umich.eduSource('reg_class.cc')
644484Sbinkertn@umich.eduSource('static_inst.cc')
654484Sbinkertn@umich.eduSource('simple_thread.cc')
664484Sbinkertn@umich.eduSource('thread_context.cc')
674484Sbinkertn@umich.eduSource('thread_state.cc')
684484Sbinkertn@umich.eduSource('timing_expr.cc')
694484Sbinkertn@umich.edu
704484Sbinkertn@umich.eduSimObject('DummyChecker.py')
714484Sbinkertn@umich.eduSimObject('StaticInstFlags.py')
724484Sbinkertn@umich.eduSource('checker/cpu.cc')
734484Sbinkertn@umich.eduSource('dummy_checker.cc')
744484Sbinkertn@umich.eduDebugFlag('Checker')
754484Sbinkertn@umich.edu
764484Sbinkertn@umich.eduDebugFlag('Activity')
774484Sbinkertn@umich.eduDebugFlag('Commit')
784484Sbinkertn@umich.eduDebugFlag('Context')
794484Sbinkertn@umich.eduDebugFlag('Decode')
804484Sbinkertn@umich.eduDebugFlag('DynInst')
814484Sbinkertn@umich.eduDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
824484Sbinkertn@umich.eduDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
834484Sbinkertn@umich.eduDebugFlag('ExecEffAddr', 'Format: Include effective address')
844484Sbinkertn@umich.eduDebugFlag('ExecFaulting', 'Trace faulting instructions')
854484Sbinkertn@umich.eduDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
864484Sbinkertn@umich.eduDebugFlag('ExecOpClass', 'Format: Include operand class')
874484Sbinkertn@umich.eduDebugFlag('ExecRegDelta')
884484Sbinkertn@umich.eduDebugFlag('ExecResult', 'Format: Include results from execution')
894484Sbinkertn@umich.eduDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
904484Sbinkertn@umich.eduDebugFlag('ExecThread', 'Format: Include thread ID in trace')
914494Ssaidi@eecs.umich.eduDebugFlag('ExecTicks', 'Format: Include tick count')
924494Ssaidi@eecs.umich.eduDebugFlag('ExecMicro', 'Filter: Include microops')
934494Ssaidi@eecs.umich.eduDebugFlag('ExecMacro', 'Filter: Include macroops')
944494Ssaidi@eecs.umich.eduDebugFlag('ExecUser', 'Filter: Trace user mode instructions')
954496Ssaidi@eecs.umich.eduDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
964494Ssaidi@eecs.umich.eduDebugFlag('ExecAsid', 'Format: Include ASID in trace')
974504Ssaidi@eecs.umich.eduDebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
984494Ssaidi@eecs.umich.eduDebugFlag('Fetch')
994494Ssaidi@eecs.umich.eduDebugFlag('IntrControl')
1004496Ssaidi@eecs.umich.eduDebugFlag('O3PipeView')
1014504Ssaidi@eecs.umich.eduDebugFlag('PCEvent')
1024504Ssaidi@eecs.umich.eduDebugFlag('Quiesce')
1034500Sbinkertn@umich.eduDebugFlag('Mwait')
1044500Sbinkertn@umich.edu
1054496Ssaidi@eecs.umich.eduCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1064496Ssaidi@eecs.umich.edu    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1074487Sstever@eecs.umich.edu    'ExecResult', 'ExecSymbol', 'ExecThread',
1084487Sstever@eecs.umich.edu    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
1094484Sbinkertn@umich.edu    'ExecAsid', 'ExecFlags' ])
1104484Sbinkertn@umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1114484Sbinkertn@umich.edu    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
1124484Sbinkertn@umich.edu    'ExecFaulting', 'ExecUser', 'ExecKernel' ])
1134484Sbinkertn@umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1144484Sbinkertn@umich.edu    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting',
1154484Sbinkertn@umich.edu    'ExecUser', 'ExecKernel' ])
1164484Sbinkertn@umich.edu