SConscript revision 10383
12155SN/A# -*- mode:python -*- 22155SN/A 32155SN/A# Copyright (c) 2006 The Regents of The University of Michigan 42155SN/A# All rights reserved. 52155SN/A# 62155SN/A# Redistribution and use in source and binary forms, with or without 72155SN/A# modification, are permitted provided that the following conditions are 82155SN/A# met: redistributions of source code must retain the above copyright 92155SN/A# notice, this list of conditions and the following disclaimer; 102155SN/A# redistributions in binary form must reproduce the above copyright 112155SN/A# notice, this list of conditions and the following disclaimer in the 122155SN/A# documentation and/or other materials provided with the distribution; 132155SN/A# neither the name of the copyright holders nor the names of its 142155SN/A# contributors may be used to endorse or promote products derived from 152155SN/A# this software without specific prior written permission. 162155SN/A# 172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert 302155SN/A 314202Sbinkertn@umich.eduImport('*') 322155SN/A 337768SAli.Saidi@ARM.com# Only build the communication if we have support for protobuf as the 347768SAli.Saidi@ARM.com# tracing relies on it 357768SAli.Saidi@ARM.comif env['HAVE_PROTOBUF']: 362178SN/A SimObject('CommMonitor.py') 372178SN/A Source('comm_monitor.cc') 382178SN/A 392178SN/ASimObject('AbstractMemory.py') 402178SN/ASimObject('AddrMapper.py') 412178SN/ASimObject('Bridge.py') 422178SN/ASimObject('Bus.py') 432178SN/ASimObject('DRAMCtrl.py') 442178SN/ASimObject('MemObject.py') 452178SN/ASimObject('SimpleMemory.py') 462178SN/A 472155SN/ASource('abstract_mem.cc') 485865Sksewell@umich.eduSource('addr_mapper.cc') 496181Sksewell@umich.eduSource('bridge.cc') 506181Sksewell@umich.eduSource('bus.cc') 515865Sksewell@umich.eduSource('coherent_bus.cc') 523918Ssaidi@eecs.umich.eduSource('dram_ctrl.cc') 535865Sksewell@umich.eduSource('mem_object.cc') 542623SN/ASource('mport.cc') 553918Ssaidi@eecs.umich.eduSource('noncoherent_bus.cc') 562155SN/ASource('packet.cc') 572155SN/ASource('port.cc') 582292SN/ASource('packet_queue.cc') 596181Sksewell@umich.eduSource('tport.cc') 606181Sksewell@umich.eduSource('port_proxy.cc') 613918Ssaidi@eecs.umich.eduSource('simple_mem.cc') 622292SN/ASource('physical.cc') 632292SN/A 642292SN/Aif env['TARGET_ISA'] != 'null': 653918Ssaidi@eecs.umich.edu Source('fs_translating_port_proxy.cc') 662292SN/A Source('se_translating_port_proxy.cc') 672292SN/A Source('page_table.cc') 682766Sktlim@umich.eduif env['TARGET_ISA'] == 'x86': 692766Sktlim@umich.edu Source('multi_level_page_table.cc') 702766Sktlim@umich.edu 712921Sktlim@umich.eduif env['HAVE_DRAMSIM']: 728887Sgeoffrey.blake@arm.com SimObject('DRAMSim2.py') 738887Sgeoffrey.blake@arm.com Source('dramsim2_wrapper.cc') 742766Sktlim@umich.edu Source('dramsim2.cc') 754762Snate@binkert.org 762155SN/ADebugFlag('BaseBus') 772155SN/ADebugFlag('BusAddrRanges') 782155SN/ADebugFlag('CoherentBus') 792155SN/ADebugFlag('NoncoherentBus') 802155SN/ACompoundFlag('Bus', ['BaseBus', 'BusAddrRanges', 'CoherentBus', 812155SN/A 'NoncoherentBus']) 822766Sktlim@umich.edu 832155SN/ADebugFlag('Bridge') 845865Sksewell@umich.eduDebugFlag('CommMonitor') 852155SN/ADebugFlag('DRAM') 862155SN/ADebugFlag('DRAMPower') 872155SN/ADebugFlag('DRAMState') 882155SN/ADebugFlag('LLSC') 892178SN/ADebugFlag('MMU') 902178SN/ADebugFlag('MemoryAccess') 917756SAli.Saidi@ARM.comDebugFlag('PacketQueue') 922766Sktlim@umich.edu 932178SN/ADebugFlag("DRAMSim2") 942178SN/A