SConscript revision 10839
19363Snilay@cs.wisc.edu# -*- mode:python -*- 29363Snilay@cs.wisc.edu 39363Snilay@cs.wisc.edu# Copyright (c) 2006 The Regents of The University of Michigan 49363Snilay@cs.wisc.edu# All rights reserved. 59363Snilay@cs.wisc.edu# 69363Snilay@cs.wisc.edu# Redistribution and use in source and binary forms, with or without 79363Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are 89363Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright 99363Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer; 109363Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright 119363Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer in the 129363Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution; 139363Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its 149363Snilay@cs.wisc.edu# contributors may be used to endorse or promote products derived from 159363Snilay@cs.wisc.edu# this software without specific prior written permission. 169363Snilay@cs.wisc.edu# 179363Snilay@cs.wisc.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 189363Snilay@cs.wisc.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 199363Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 209363Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 219363Snilay@cs.wisc.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 229363Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 239363Snilay@cs.wisc.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 249363Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 259363Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 269363Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 279363Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 289363Snilay@cs.wisc.edu# 299363Snilay@cs.wisc.edu# Authors: Nathan Binkert 309363Snilay@cs.wisc.edu 319363Snilay@cs.wisc.eduImport('*') 329363Snilay@cs.wisc.edu 339363Snilay@cs.wisc.eduif env['CP_ANNOTATE']: 349363Snilay@cs.wisc.edu SimObject('CPA.py') 359363Snilay@cs.wisc.edu Source('cp_annotate.cc') 3610301Snilay@cs.wisc.eduSource('atomicio.cc') 3710301Snilay@cs.wisc.eduSource('bigint.cc') 3810301Snilay@cs.wisc.eduSource('bitmap.cc') 3910301Snilay@cs.wisc.eduSource('callback.cc') 409363Snilay@cs.wisc.eduSource('circlebuf.cc') 4110301Snilay@cs.wisc.eduSource('cprintf.cc') 4210301Snilay@cs.wisc.eduSource('debug.cc') 4310301Snilay@cs.wisc.eduif env['USE_FENV']: 4410301Snilay@cs.wisc.edu Source('fenv.c') 4510301Snilay@cs.wisc.eduSource('framebuffer.cc') 4610301Snilay@cs.wisc.eduSource('hostinfo.cc') 4710301Snilay@cs.wisc.eduSource('inet.cc') 4810301Snilay@cs.wisc.eduSource('inifile.cc') 4910301Snilay@cs.wisc.eduSource('intmath.cc') 5010301Snilay@cs.wisc.eduSource('match.cc') 519363Snilay@cs.wisc.eduSource('misc.cc') 5210301Snilay@cs.wisc.eduSource('output.cc') 5310301Snilay@cs.wisc.eduSource('pollevent.cc') 54Source('random.cc') 55if env['TARGET_ISA'] != 'null': 56 Source('remote_gdb.cc') 57Source('socket.cc') 58Source('statistics.cc') 59Source('str.cc') 60Source('time.cc') 61Source('trace.cc') 62Source('types.cc') 63 64Source('loader/aout_object.cc') 65Source('loader/dtb_object.cc') 66Source('loader/ecoff_object.cc') 67Source('loader/elf_object.cc') 68Source('loader/hex_file.cc') 69Source('loader/object_file.cc') 70Source('loader/raw_object.cc') 71Source('loader/symtab.cc') 72 73Source('stats/text.cc') 74 75DebugFlag('Annotate', "State machine annotation debugging") 76DebugFlag('AnnotateQ', "State machine annotation queue debugging") 77DebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 78DebugFlag('GDBAcc', "Remote debugger accesses") 79DebugFlag('GDBExtra', "Dump extra information on reads and writes") 80DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 81DebugFlag('GDBRead', "Reads to the remote address space") 82DebugFlag('GDBRecv', "Messages received from the remote application") 83DebugFlag('GDBSend', "Messages sent to the remote application") 84DebugFlag('GDBWrite', "Writes to the remote address space") 85DebugFlag('SQL', "SQL queries sent to the server") 86DebugFlag('StatEvents', "Statistics event tracking") 87 88CompoundFlag('GDBAll', 89 [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 90 'GDBExtra' ], 91 desc="All Remote debugging flags") 92CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 93 desc="All Annotation flags") 94 95