1# -*- mode:python -*- 2 3# Copyright (c) 2006 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer; 10# redistributions in binary form must reproduce the above copyright 11# notice, this list of conditions and the following disclaimer in the 12# documentation and/or other materials provided with the distribution; 13# neither the name of the copyright holders nor the names of its 14# contributors may be used to endorse or promote products derived from 15# this software without specific prior written permission. 16# 17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28# 29# Authors: Nathan Binkert 30 31Import('*') 32 33if env['CP_ANNOTATE']: 34 SimObject('CPA.py') 35 Source('cp_annotate.cc') 36SimObject('Graphics.py') 37Source('atomicio.cc') 38Source('bitfield.cc') 39Source('imgwriter.cc') 40Source('bmpwriter.cc') 41Source('callback.cc') 42Source('cprintf.cc', add_tags='gtest lib') 43GTest('cprintf.test', 'cprintf.test.cc') 44Source('debug.cc') 45if env['USE_FENV']: 46 Source('fenv.c') 47if env['USE_PNG']: 48 Source('pngwriter.cc') 49Source('fiber.cc') 50GTest('fiber.test', 'fiber.test.cc', 'fiber.cc') 51GTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc') 52Source('framebuffer.cc') 53Source('hostinfo.cc') 54Source('inet.cc') 55Source('inifile.cc') 56GTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc') 57Source('intmath.cc') 58Source('logging.cc') 59Source('match.cc') 60Source('output.cc') 61Source('pixel.cc') 62GTest('pixel.test', 'pixel.test.cc', 'pixel.cc') 63Source('pollevent.cc') 64Source('random.cc') 65if env['TARGET_ISA'] != 'null': 66 Source('remote_gdb.cc') 67Source('socket.cc') 68Source('statistics.cc') 69Source('str.cc') 70Source('time.cc') 71Source('trace.cc') 72GTest('trie.test', 'trie.test.cc') 73Source('types.cc') 74 75Source('loader/aout_object.cc') 76Source('loader/dtb_object.cc') 77Source('loader/ecoff_object.cc') 78Source('loader/elf_object.cc') 79Source('loader/hex_file.cc') 80Source('loader/object_file.cc') 81Source('loader/raw_object.cc') 82Source('loader/symtab.cc') 83 84Source('stats/group.cc') 85Source('stats/text.cc') 86if env['USE_HDF5']: 87 Source('stats/hdf5.cc') 88 89GTest('addr_range.test', 'addr_range.test.cc') 90GTest('addr_range_map.test', 'addr_range_map.test.cc') 91GTest('bitunion.test', 'bitunion.test.cc') 92GTest('circlebuf.test', 'circlebuf.test.cc') 93GTest('circular_queue.test', 'circular_queue.test.cc') 94GTest('sat_counter.test', 'sat_counter.test.cc') 95 96DebugFlag('Annotate', "State machine annotation debugging") 97DebugFlag('AnnotateQ', "State machine annotation queue debugging") 98DebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 99DebugFlag('GDBAcc', "Remote debugger accesses") 100DebugFlag('GDBExtra', "Dump extra information on reads and writes") 101DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 102DebugFlag('GDBRead', "Reads to the remote address space") 103DebugFlag('GDBRecv', "Messages received from the remote application") 104DebugFlag('GDBSend', "Messages sent to the remote application") 105DebugFlag('GDBWrite', "Writes to the remote address space") 106DebugFlag('SQL', "SQL queries sent to the server") 107DebugFlag('Stats', "Statistics management") 108DebugFlag('StatEvents', "Statistics event tracking") 109 110CompoundFlag('GDBAll', 111 [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 112 'GDBExtra' ], 113 desc="All Remote debugging flags") 114CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 115 desc="All Annotation flags") 116 117