SConscript revision 8763
111264Sandreas.sandberg@arm.com# -*- mode:python -*-
211264Sandreas.sandberg@arm.com
311264Sandreas.sandberg@arm.com# Copyright (c) 2006 The Regents of The University of Michigan
411264Sandreas.sandberg@arm.com# All rights reserved.
511264Sandreas.sandberg@arm.com#
611264Sandreas.sandberg@arm.com# Redistribution and use in source and binary forms, with or without
711264Sandreas.sandberg@arm.com# modification, are permitted provided that the following conditions are
811264Sandreas.sandberg@arm.com# met: redistributions of source code must retain the above copyright
911264Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer;
1011264Sandreas.sandberg@arm.com# redistributions in binary form must reproduce the above copyright
1111264Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer in the
1211264Sandreas.sandberg@arm.com# documentation and/or other materials provided with the distribution;
1311264Sandreas.sandberg@arm.com# neither the name of the copyright holders nor the names of its
1411264Sandreas.sandberg@arm.com# contributors may be used to endorse or promote products derived from
1511264Sandreas.sandberg@arm.com# this software without specific prior written permission.
1611264Sandreas.sandberg@arm.com#
1711264Sandreas.sandberg@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1811264Sandreas.sandberg@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1911264Sandreas.sandberg@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2011264Sandreas.sandberg@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2111264Sandreas.sandberg@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2211264Sandreas.sandberg@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2311264Sandreas.sandberg@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2411264Sandreas.sandberg@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2511264Sandreas.sandberg@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2611264Sandreas.sandberg@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2711264Sandreas.sandberg@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2811264Sandreas.sandberg@arm.com#
2911264Sandreas.sandberg@arm.com# Authors: Nathan Binkert
3011264Sandreas.sandberg@arm.com
3111264Sandreas.sandberg@arm.comImport('*')
3211264Sandreas.sandberg@arm.com
3311264Sandreas.sandberg@arm.comSimObject('Bridge.py')
3411264Sandreas.sandberg@arm.comSimObject('Bus.py')
3511264Sandreas.sandberg@arm.comSimObject('MemObject.py')
3611264Sandreas.sandberg@arm.com
3711264Sandreas.sandberg@arm.comSource('bridge.cc')
3811264Sandreas.sandberg@arm.comSource('bus.cc')
3911264Sandreas.sandberg@arm.comSource('mem_object.cc')
4011264Sandreas.sandberg@arm.comSource('mport.cc')
4111264Sandreas.sandberg@arm.comSource('packet.cc')
4211264Sandreas.sandberg@arm.comSource('port.cc')
4311264Sandreas.sandberg@arm.comSource('tport.cc')
4411264Sandreas.sandberg@arm.comSource('vport.cc')
4511264Sandreas.sandberg@arm.com
4611264Sandreas.sandberg@arm.comif env['TARGET_ISA'] != 'no':
4711264Sandreas.sandberg@arm.com    SimObject('PhysicalMemory.py')
4811264Sandreas.sandberg@arm.com    Source('dram.cc')
4911264Sandreas.sandberg@arm.com    Source('page_table.cc')
5011264Sandreas.sandberg@arm.com    Source('physical.cc')
5111264Sandreas.sandberg@arm.com    Source('translating_port.cc')
5211264Sandreas.sandberg@arm.com
5311264Sandreas.sandberg@arm.comDebugFlag('Bus')
5411264Sandreas.sandberg@arm.comDebugFlag('BusAddrRanges')
5511264Sandreas.sandberg@arm.comDebugFlag('BusBridge')
5611264Sandreas.sandberg@arm.comDebugFlag('LLSC')
5711264Sandreas.sandberg@arm.comDebugFlag('MMU')
5811264Sandreas.sandberg@arm.comDebugFlag('MemoryAccess')
5911264Sandreas.sandberg@arm.com
6011264Sandreas.sandberg@arm.comDebugFlag('ProtocolTrace')
6111264Sandreas.sandberg@arm.comDebugFlag('RubyCache')
6211264Sandreas.sandberg@arm.comDebugFlag('RubyDma')
6311264Sandreas.sandberg@arm.comDebugFlag('RubyGenerated')
6411264Sandreas.sandberg@arm.comDebugFlag('RubyMemory')
6511264Sandreas.sandberg@arm.comDebugFlag('RubyNetwork')
6611264Sandreas.sandberg@arm.comDebugFlag('RubyPort')
6711264Sandreas.sandberg@arm.comDebugFlag('RubyQueue')
6811264Sandreas.sandberg@arm.comDebugFlag('RubySlicc')
6911264Sandreas.sandberg@arm.comDebugFlag('RubyStorebuffer')
7011264Sandreas.sandberg@arm.comDebugFlag('RubyTester')
7111264Sandreas.sandberg@arm.com
7211264Sandreas.sandberg@arm.comCompoundFlag('Ruby', [ 'RubyQueue', 'RubyNetwork', 'RubyTester',
7311264Sandreas.sandberg@arm.com    'RubyGenerated', 'RubySlicc', 'RubyStorebuffer', 'RubyCache', 
74    'RubyMemory', 'RubyDma', 'RubyPort'])
75