SConscript revision 10383
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Steve Reinhardt
30955SN/A
315522Snate@binkert.orgImport('*')
326143Snate@binkert.org
334762Snate@binkert.orgif env['TARGET_ISA'] == 'null':
345522Snate@binkert.org    SimObject('IntrControl.py')
35955SN/A    Source('intr_control_noisa.cc')
365522Snate@binkert.org    Return()
37955SN/A
385522Snate@binkert.orgSimObject('CheckerCPU.py')
394202Sbinkertn@umich.edu
405742Snate@binkert.orgSimObject('BaseCPU.py')
41955SN/ASimObject('FuncUnit.py')
424381Sbinkertn@umich.eduSimObject('ExeTracer.py')
434381Sbinkertn@umich.eduSimObject('IntelTrace.py')
44955SN/ASimObject('IntrControl.py')
45955SN/ASimObject('NativeTrace.py')
46955SN/ASimObject('TimingExpr.py')
474202Sbinkertn@umich.edu
48955SN/ASource('activity.cc')
494382Sbinkertn@umich.eduSource('base.cc')
504382Sbinkertn@umich.eduSource('cpuevent.cc')
514382Sbinkertn@umich.eduSource('exetrace.cc')
526108Snate@binkert.orgSource('exec_context.cc')
535517Snate@binkert.orgSource('func_unit.cc')
546143Snate@binkert.orgSource('inteltrace.cc')
556143Snate@binkert.orgSource('intr_control.cc')
566143Snate@binkert.orgSource('nativetrace.cc')
576143Snate@binkert.orgSource('pc_event.cc')
586143Snate@binkert.orgSource('profile.cc')
596143Snate@binkert.orgSource('quiesce_event.cc')
606143Snate@binkert.orgSource('reg_class.cc')
616143Snate@binkert.orgSource('static_inst.cc')
626143Snate@binkert.orgSource('simple_thread.cc')
636143Snate@binkert.orgSource('thread_context.cc')
646143Snate@binkert.orgSource('thread_state.cc')
656143Snate@binkert.orgSource('timing_expr.cc')
666143Snate@binkert.org
676143Snate@binkert.orgif env['TARGET_ISA'] == 'sparc':
686143Snate@binkert.org    SimObject('LegionTrace.py')
694762Snate@binkert.org    Source('legiontrace.cc')
706143Snate@binkert.org
716143Snate@binkert.orgSimObject('DummyChecker.py')
726143Snate@binkert.orgSimObject('StaticInstFlags.py')
736143Snate@binkert.orgSource('checker/cpu.cc')
746143Snate@binkert.orgSource('dummy_checker.cc')
756143Snate@binkert.orgDebugFlag('Checker')
766143Snate@binkert.org
776143Snate@binkert.orgDebugFlag('Activity')
786143Snate@binkert.orgDebugFlag('Commit')
796143Snate@binkert.orgDebugFlag('Context')
806143Snate@binkert.orgDebugFlag('Decode')
816143Snate@binkert.orgDebugFlag('DynInst')
826143Snate@binkert.orgDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
836143Snate@binkert.orgDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
846143Snate@binkert.orgDebugFlag('ExecEffAddr', 'Format: Include effective address')
856143Snate@binkert.orgDebugFlag('ExecFaulting', 'Trace faulting instructions')
866143Snate@binkert.orgDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
876143Snate@binkert.orgDebugFlag('ExecOpClass', 'Format: Include operand class')
886143Snate@binkert.orgDebugFlag('ExecRegDelta')
896143Snate@binkert.orgDebugFlag('ExecResult', 'Format: Include results from execution')
906143Snate@binkert.orgDebugFlag('ExecSpeculative', 'Format: Include a miss-/speculation flag (-/+)')
916143Snate@binkert.orgDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
926143Snate@binkert.orgDebugFlag('ExecThread', 'Format: Include thread ID in trace')
936143Snate@binkert.orgDebugFlag('ExecTicks', 'Format: Include tick count')
946143Snate@binkert.orgDebugFlag('ExecMicro', 'Filter: Include microops')
956143Snate@binkert.orgDebugFlag('ExecMacro', 'Filter: Include macroops')
966143Snate@binkert.orgDebugFlag('ExecUser', 'Filter: Trace user mode instructions')
976143Snate@binkert.orgDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
986143Snate@binkert.orgDebugFlag('ExecAsid', 'Format: Include ASID in trace')
996143Snate@binkert.orgDebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
1006143Snate@binkert.orgDebugFlag('Fetch')
1016143Snate@binkert.orgDebugFlag('IntrControl')
1026143Snate@binkert.orgDebugFlag('O3PipeView')
1036143Snate@binkert.orgDebugFlag('PCEvent')
1046143Snate@binkert.orgDebugFlag('Quiesce')
1056143Snate@binkert.org
1066143Snate@binkert.orgCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1076143Snate@binkert.org    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1086143Snate@binkert.org    'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
1096143Snate@binkert.org    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
1106143Snate@binkert.org    'ExecAsid', 'ExecFlags' ])
1116143Snate@binkert.orgCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1126143Snate@binkert.org    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
1135522Snate@binkert.org    'ExecUser', 'ExecKernel' ])
1146143Snate@binkert.orgCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1156143Snate@binkert.org    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecFaulting',
1166143Snate@binkert.org    'ExecUser', 'ExecKernel' ])
1176143Snate@binkert.org