SConscript revision 6765
16157Snate@binkert.org# -*- mode:python -*-
26157Snate@binkert.org
36157Snate@binkert.org# Copyright (c) 2006 The Regents of The University of Michigan
46157Snate@binkert.org# All rights reserved.
56157Snate@binkert.org#
66157Snate@binkert.org# Redistribution and use in source and binary forms, with or without
76157Snate@binkert.org# modification, are permitted provided that the following conditions are
86157Snate@binkert.org# met: redistributions of source code must retain the above copyright
96157Snate@binkert.org# notice, this list of conditions and the following disclaimer;
106157Snate@binkert.org# redistributions in binary form must reproduce the above copyright
116157Snate@binkert.org# notice, this list of conditions and the following disclaimer in the
126157Snate@binkert.org# documentation and/or other materials provided with the distribution;
136157Snate@binkert.org# neither the name of the copyright holders nor the names of its
146157Snate@binkert.org# contributors may be used to endorse or promote products derived from
156157Snate@binkert.org# this software without specific prior written permission.
166157Snate@binkert.org#
176157Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186157Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196157Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206157Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216157Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226157Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236157Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246157Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256157Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266157Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276157Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286157Snate@binkert.org#
296157Snate@binkert.org# Authors: Nathan Binkert
306157Snate@binkert.org
316157Snate@binkert.orgImport('*')
326157Snate@binkert.org
336157Snate@binkert.orgif env['CP_ANNOTATE']:
346157Snate@binkert.org    SimObject('CPA.py')
356157Snate@binkert.org    Source('cp_annotate.cc')
366157Snate@binkert.orgSource('atomicio.cc')
376157Snate@binkert.orgSource('bigint.cc')
386157Snate@binkert.orgSource('circlebuf.cc')
396157Snate@binkert.orgSource('cprintf.cc')
4010133Sandreas.hansson@arm.comSource('crc.cc')
4110133Sandreas.hansson@arm.comSource('debug.cc')
4210133Sandreas.hansson@arm.comSource('fast_alloc.cc')
4310133Sandreas.hansson@arm.comif env['USE_FENV']:
4410133Sandreas.hansson@arm.com    Source('fenv.c')
4510133Sandreas.hansson@arm.comSource('fifo_buffer.cc')
4610133Sandreas.hansson@arm.comSource('hostinfo.cc')
4710133Sandreas.hansson@arm.comSource('hybrid_pred.cc')
4810133Sandreas.hansson@arm.comSource('inet.cc')
4910133Sandreas.hansson@arm.comSource('inifile.cc')
5010133Sandreas.hansson@arm.comSource('intmath.cc')
5110133Sandreas.hansson@arm.comSource('match.cc')
5210133Sandreas.hansson@arm.comSource('misc.cc')
5310133Sandreas.hansson@arm.comSource('output.cc')
5410133Sandreas.hansson@arm.comSource('pollevent.cc')
5510133Sandreas.hansson@arm.comSource('random.cc')
5610133Sandreas.hansson@arm.comSource('random_mt.cc')
5710133Sandreas.hansson@arm.comSource('range.cc')
5810133Sandreas.hansson@arm.comSource('remote_gdb.cc')
5910133Sandreas.hansson@arm.comSource('sat_counter.cc')
6010133Sandreas.hansson@arm.comSource('socket.cc')
6110133Sandreas.hansson@arm.comSource('statistics.cc')
628492Snilay@cs.wisc.eduSource('str.cc')
636168Snate@binkert.orgSource('time.cc')
646168Snate@binkert.orgSource('trace.cc')
656157Snate@binkert.orgSource('userinfo.cc')
666157Snate@binkert.org
676157Snate@binkert.orgSource('compression/lzss_compression.cc')
686157Snate@binkert.org
696157Snate@binkert.orgSource('loader/aout_object.cc')
706157Snate@binkert.orgSource('loader/ecoff_object.cc')
716157Snate@binkert.orgSource('loader/elf_object.cc')
726157Snate@binkert.orgSource('loader/hex_file.cc')
736157Snate@binkert.orgSource('loader/object_file.cc')
746157Snate@binkert.orgSource('loader/raw_object.cc')
756157Snate@binkert.orgSource('loader/symtab.cc')
766157Snate@binkert.org
776157Snate@binkert.orgSource('stats/events.cc')
786157Snate@binkert.orgSource('stats/output.cc')
796157Snate@binkert.orgSource('stats/text.cc')
806157Snate@binkert.orgSource('stats/visit.cc')
816157Snate@binkert.org
826157Snate@binkert.orgif env['USE_MYSQL']:
836157Snate@binkert.org    Source('mysql.cc')
846157Snate@binkert.org    Source('stats/mysql.cc')
856157Snate@binkert.org
866157Snate@binkert.orgTraceFlag('Annotate', "State machine annotation debugging")
876157Snate@binkert.orgTraceFlag('AnnotateQ', "State machine annotation queue debugging")
886157Snate@binkert.orgTraceFlag('AnnotateVerbose', "Dump all state machine annotation details")
896157Snate@binkert.orgTraceFlag('GDBAcc', "Remote debugger accesses")
906157Snate@binkert.orgTraceFlag('GDBExtra', "Dump extra information on reads and writes")
916157Snate@binkert.orgTraceFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
926157Snate@binkert.orgTraceFlag('GDBRead', "Reads to the remote address space")
936157Snate@binkert.orgTraceFlag('GDBRecv', "Messages received from the remote application")
946157Snate@binkert.orgTraceFlag('GDBSend', "Messages sent to the remote application")
956157Snate@binkert.orgTraceFlag('GDBWrite', "Writes to the remote address space")
966157Snate@binkert.orgTraceFlag('SQL', "SQL queries sent to the server")
976157Snate@binkert.orgTraceFlag('StatEvents', "Statistics event tracking")
986157Snate@binkert.org
996157Snate@binkert.orgCompoundFlag('GDBAll',
1006157Snate@binkert.org    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
1016157Snate@binkert.org      'GDBExtra' ],
1026157Snate@binkert.org    desc="All Remote debugging flags")
1036157Snate@binkert.orgCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
1046157Snate@binkert.org    desc="All Annotation flags")
1056157Snate@binkert.org
1066157Snate@binkert.org