SConscript revision 11320
110260SAndrew.Bardsley@arm.com# -*- mode:python -*-
210260SAndrew.Bardsley@arm.com
310726Sandreas.hansson@arm.com# Copyright (c) 2009 The University of Edinburgh
410812Snilay@cs.wisc.edu# All rights reserved.
510812Snilay@cs.wisc.edu#
610260SAndrew.Bardsley@arm.com# Redistribution and use in source and binary forms, with or without
710812Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are
810812Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright
910812Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer;
1010812Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright
1110812Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer in the
1210812Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution;
1310812Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its
1410352Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from
1510260SAndrew.Bardsley@arm.com# this software without specific prior written permission.
1610636Snilay@cs.wisc.edu#
1710636Snilay@cs.wisc.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1810585Sandreas.hansson@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1910585Sandreas.hansson@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2010585Sandreas.hansson@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2110636Snilay@cs.wisc.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2210636Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2310585Sandreas.hansson@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2410812Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2510812Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2610812Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2710812Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2810812Snilay@cs.wisc.edu#
2910812Snilay@cs.wisc.edu# Authors: Timothy M. Jones
3010812Snilay@cs.wisc.edu
3110812Snilay@cs.wisc.eduImport('*')
3210585Sandreas.hansson@arm.com
3310352Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'power':
3410585Sandreas.hansson@arm.com# Workaround for bug in SCons version > 0.97d20071212
3510352Sandreas.hansson@arm.com# Scons bug id: 2006 M5 Bug id: 308
3610585Sandreas.hansson@arm.com    Dir('isa/formats')
3710260SAndrew.Bardsley@arm.com    Source('decoder.cc')
3810260SAndrew.Bardsley@arm.com    Source('insts/branch.cc')
3910585Sandreas.hansson@arm.com    Source('insts/mem.cc')
4010260SAndrew.Bardsley@arm.com    Source('insts/integer.cc')
4110352Sandreas.hansson@arm.com    Source('insts/floating.cc')
4210260SAndrew.Bardsley@arm.com    Source('insts/condition.cc')
4310260SAndrew.Bardsley@arm.com    Source('insts/static_inst.cc')
4410260SAndrew.Bardsley@arm.com    Source('interrupts.cc')
4510585Sandreas.hansson@arm.com    Source('linux/linux.cc')
4610260SAndrew.Bardsley@arm.com    Source('linux/process.cc')
4710585Sandreas.hansson@arm.com    Source('isa.cc')
4810585Sandreas.hansson@arm.com    Source('pagetable.cc')
4910260SAndrew.Bardsley@arm.com    Source('process.cc')
5010260SAndrew.Bardsley@arm.com    Source('remote_gdb.cc')
5110260SAndrew.Bardsley@arm.com    Source('stacktrace.cc')
5210352Sandreas.hansson@arm.com    Source('tlb.cc')
5310260SAndrew.Bardsley@arm.com    Source('utility.cc')
5410260SAndrew.Bardsley@arm.com    Source('vtophys.cc')
5510260SAndrew.Bardsley@arm.com
5610260SAndrew.Bardsley@arm.com    SimObject('PowerInterrupts.py')
5710260SAndrew.Bardsley@arm.com    SimObject('PowerISA.py')
5810260SAndrew.Bardsley@arm.com    SimObject('PowerTLB.py')
5910260SAndrew.Bardsley@arm.com
6010260SAndrew.Bardsley@arm.com    DebugFlag('Power')
6110260SAndrew.Bardsley@arm.com
6210260SAndrew.Bardsley@arm.com    env.ISADesc('isa/main.isa')
6310260SAndrew.Bardsley@arm.com