SConscript revision 9850
1955SN/A# -*- mode:python -*- 2955SN/A 313576Sciro.santilli@arm.com# Copyright (c) 2006 The Regents of The University of Michigan 413576Sciro.santilli@arm.com# All rights reserved. 513576Sciro.santilli@arm.com# 613576Sciro.santilli@arm.com# Redistribution and use in source and binary forms, with or without 713576Sciro.santilli@arm.com# modification, are permitted provided that the following conditions are 813576Sciro.santilli@arm.com# met: redistributions of source code must retain the above copyright 913576Sciro.santilli@arm.com# notice, this list of conditions and the following disclaimer; 1013576Sciro.santilli@arm.com# redistributions in binary form must reproduce the above copyright 1113576Sciro.santilli@arm.com# notice, this list of conditions and the following disclaimer in the 1213576Sciro.santilli@arm.com# documentation and/or other materials provided with the distribution; 1313576Sciro.santilli@arm.com# neither the name of the copyright holders nor the names of its 141762SN/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. 28955SN/A# 29955SN/A# Authors: Nathan Binkert 30955SN/A 31955SN/AImport('*') 32955SN/A 33955SN/Aif env['CP_ANNOTATE']: 34955SN/A SimObject('CPA.py') 35955SN/A Source('cp_annotate.cc') 36955SN/ASource('atomicio.cc') 37955SN/ASource('bigint.cc') 38955SN/ASource('bitmap.cc') 392665Ssaidi@eecs.umich.eduSource('callback.cc') 404762Snate@binkert.orgSource('circlebuf.cc') 41955SN/ASource('cprintf.cc') 4212563Sgabeblack@google.comSource('debug.cc') 4312563Sgabeblack@google.comif env['USE_FENV']: 445522Snate@binkert.org Source('fenv.c') 456143Snate@binkert.orgSource('hostinfo.cc') 4612371Sgabeblack@google.comSource('inet.cc') 474762Snate@binkert.orgSource('inifile.cc') 485522Snate@binkert.orgSource('intmath.cc') 49955SN/ASource('match.cc') 505522Snate@binkert.orgSource('misc.cc') 5111974Sgabeblack@google.comSource('output.cc') 52955SN/ASource('pollevent.cc') 535522Snate@binkert.orgSource('random.cc') 544202Sbinkertn@umich.eduSource('random_mt.cc') 555742Snate@binkert.orgif env['TARGET_ISA'] != 'null': 56955SN/A Source('remote_gdb.cc') 574381Sbinkertn@umich.eduSource('socket.cc') 584381Sbinkertn@umich.eduSource('statistics.cc') 5912246Sgabeblack@google.comSource('str.cc') 6012246Sgabeblack@google.comSource('time.cc') 618334Snate@binkert.orgSource('trace.cc') 62955SN/ASource('types.cc') 63955SN/ASource('userinfo.cc') 644202Sbinkertn@umich.edu 65955SN/ASource('loader/aout_object.cc') 664382Sbinkertn@umich.eduSource('loader/dtb_object.cc') 674382Sbinkertn@umich.eduSource('loader/ecoff_object.cc') 684382Sbinkertn@umich.eduSource('loader/elf_object.cc') 696654Snate@binkert.orgSource('loader/hex_file.cc') 705517Snate@binkert.orgSource('loader/object_file.cc') 718614Sgblack@eecs.umich.eduSource('loader/raw_object.cc') 727674Snate@binkert.orgSource('loader/symtab.cc') 736143Snate@binkert.org 746143Snate@binkert.orgSource('stats/text.cc') 756143Snate@binkert.org 7612302Sgabeblack@google.comDebugFlag('Annotate', "State machine annotation debugging") 7712302Sgabeblack@google.comDebugFlag('AnnotateQ', "State machine annotation queue debugging") 7812302Sgabeblack@google.comDebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 7912371Sgabeblack@google.comDebugFlag('GDBAcc', "Remote debugger accesses") 8012371Sgabeblack@google.comDebugFlag('GDBExtra', "Dump extra information on reads and writes") 8112371Sgabeblack@google.comDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 8212371Sgabeblack@google.comDebugFlag('GDBRead', "Reads to the remote address space") 8312371Sgabeblack@google.comDebugFlag('GDBRecv', "Messages received from the remote application") 8412371Sgabeblack@google.comDebugFlag('GDBSend', "Messages sent to the remote application") 8512371Sgabeblack@google.comDebugFlag('GDBWrite', "Writes to the remote address space") 8612371Sgabeblack@google.comDebugFlag('SQL', "SQL queries sent to the server") 8712371Sgabeblack@google.comDebugFlag('StatEvents', "Statistics event tracking") 8812371Sgabeblack@google.com 8912371Sgabeblack@google.comCompoundFlag('GDBAll', 9012371Sgabeblack@google.com [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 9112371Sgabeblack@google.com 'GDBExtra' ], 9212371Sgabeblack@google.com desc="All Remote debugging flags") 9312371Sgabeblack@google.comCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 9412371Sgabeblack@google.com desc="All Annotation flags") 9512371Sgabeblack@google.com 9612371Sgabeblack@google.com