SConscript revision 13360:a2254720ecf3
1955SN/A# -*- mode:python -*- 2955SN/A 37816Ssteve.reinhardt@amd.com# Copyright (c) 2006 The Regents of The University of Michigan 45871Snate@binkert.org# All rights reserved. 51762SN/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. 28955SN/A# 29955SN/A# Authors: Nathan Binkert 302665Ssaidi@eecs.umich.edu 312665Ssaidi@eecs.umich.eduImport('*') 325863Snate@binkert.org 33955SN/Aif env['CP_ANNOTATE']: 34955SN/A SimObject('CPA.py') 35955SN/A Source('cp_annotate.cc') 36955SN/ASimObject('Graphics.py') 37955SN/ASource('atomicio.cc') 388878Ssteve.reinhardt@amd.comSource('bitfield.cc') 392632Sstever@eecs.umich.eduSource('imgwriter.cc') 408878Ssteve.reinhardt@amd.comSource('bmpwriter.cc') 412632Sstever@eecs.umich.eduSource('callback.cc') 42955SN/ASource('cprintf.cc', add_tags='gtest lib') 438878Ssteve.reinhardt@amd.comGTest('cprintftest', 'cprintftest.cc') 442632Sstever@eecs.umich.eduSource('debug.cc') 452761Sstever@eecs.umich.eduif env['USE_FENV']: 462632Sstever@eecs.umich.edu Source('fenv.c') 472632Sstever@eecs.umich.eduif env['USE_PNG']: 482632Sstever@eecs.umich.edu Source('pngwriter.cc') 492761Sstever@eecs.umich.eduSource('fiber.cc') 502761Sstever@eecs.umich.eduGTest('fibertest', 'fibertest.cc', 'fiber.cc') 512761Sstever@eecs.umich.eduGTest('coroutinetest', 'coroutinetest.cc', 'fiber.cc') 528878Ssteve.reinhardt@amd.comSource('framebuffer.cc') 538878Ssteve.reinhardt@amd.comSource('hostinfo.cc') 542761Sstever@eecs.umich.eduSource('inet.cc') 552761Sstever@eecs.umich.eduSource('inifile.cc') 562761Sstever@eecs.umich.eduSource('intmath.cc') 572761Sstever@eecs.umich.eduSource('logging.cc') 582761Sstever@eecs.umich.eduSource('match.cc') 598878Ssteve.reinhardt@amd.comSource('output.cc') 608878Ssteve.reinhardt@amd.comSource('pixel.cc') 612632Sstever@eecs.umich.eduGTest('pixeltest', 'pixeltest.cc', 'pixel.cc') 622632Sstever@eecs.umich.eduSource('pollevent.cc') 638878Ssteve.reinhardt@amd.comSource('random.cc') 648878Ssteve.reinhardt@amd.comif env['TARGET_ISA'] != 'null': 652632Sstever@eecs.umich.edu Source('remote_gdb.cc') 66955SN/ASource('socket.cc') 67955SN/ASource('statistics.cc') 68955SN/ASource('str.cc') 695863Snate@binkert.orgSource('time.cc') 705863Snate@binkert.orgSource('trace.cc') 715863Snate@binkert.orgGTest('trietest', 'trietest.cc') 725863Snate@binkert.orgSource('types.cc') 735863Snate@binkert.org 745863Snate@binkert.orgSource('loader/aout_object.cc') 755863Snate@binkert.orgSource('loader/dtb_object.cc') 765863Snate@binkert.orgSource('loader/ecoff_object.cc') 775863Snate@binkert.orgSource('loader/elf_object.cc') 785863Snate@binkert.orgSource('loader/hex_file.cc') 795863Snate@binkert.orgSource('loader/object_file.cc') 808878Ssteve.reinhardt@amd.comSource('loader/raw_object.cc') 815863Snate@binkert.orgSource('loader/symtab.cc') 825863Snate@binkert.org 835863Snate@binkert.orgSource('stats/text.cc') 845863Snate@binkert.org 855863Snate@binkert.orgGTest('addr_range_test', 'addr_range_test.cc') 865863Snate@binkert.orgGTest('AddrRangeMapTest', 'addr_range_map_test.cc') 875863Snate@binkert.orgGTest('bituniontest', 'bituniontest.cc') 885863Snate@binkert.orgGTest('CircleBufTest', 'circlebuftest.cc') 895863Snate@binkert.org 905863Snate@binkert.orgDebugFlag('Annotate', "State machine annotation debugging") 915863Snate@binkert.orgDebugFlag('AnnotateQ', "State machine annotation queue debugging") 925863Snate@binkert.orgDebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 935863Snate@binkert.orgDebugFlag('GDBAcc', "Remote debugger accesses") 945863Snate@binkert.orgDebugFlag('GDBExtra', "Dump extra information on reads and writes") 955863Snate@binkert.orgDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 968878Ssteve.reinhardt@amd.comDebugFlag('GDBRead', "Reads to the remote address space") 975863Snate@binkert.orgDebugFlag('GDBRecv', "Messages received from the remote application") 985863Snate@binkert.orgDebugFlag('GDBSend', "Messages sent to the remote application") 995863Snate@binkert.orgDebugFlag('GDBWrite', "Writes to the remote address space") 1006654Snate@binkert.orgDebugFlag('SQL', "SQL queries sent to the server") 101955SN/ADebugFlag('StatEvents', "Statistics event tracking") 1025396Ssaidi@eecs.umich.edu 1035863Snate@binkert.orgCompoundFlag('GDBAll', 1045863Snate@binkert.org [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 1054202Sbinkertn@umich.edu 'GDBExtra' ], 1065863Snate@binkert.org desc="All Remote debugging flags") 1075863Snate@binkert.orgCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 1085863Snate@binkert.org desc="All Annotation flags") 1095863Snate@binkert.org 110955SN/A