SConscript revision 6246:5744fafb5072
11897Sstever@eecs.umich.edu# -*- mode:python -*- 24130Ssaidi@eecs.umich.edu 31897Sstever@eecs.umich.edu# Copyright (c) 2007-2008 The Florida State University 41897Sstever@eecs.umich.edu# All rights reserved. 51897Sstever@eecs.umich.edu# 61897Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 71897Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 81897Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 91897Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 101897Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 111897Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 121897Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 131897Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 141897Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 151897Sstever@eecs.umich.edu# this software without specific prior written permission. 161897Sstever@eecs.umich.edu# 171897Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 181897Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 191897Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 201897Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 211897Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 221897Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 231897Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 241897Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 251897Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 261897Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 271897Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 281897Sstever@eecs.umich.edu# 291897Sstever@eecs.umich.edu# Authors: Stephen Hines 301897Sstever@eecs.umich.edu 311897Sstever@eecs.umich.eduImport('*') 321897Sstever@eecs.umich.edu 331897Sstever@eecs.umich.eduif env['TARGET_ISA'] == 'arm': 344961Ssaidi@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212 351897Sstever@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308 361897Sstever@eecs.umich.edu Dir('isa/formats') 371897Sstever@eecs.umich.edu Source('faults.cc') 381897Sstever@eecs.umich.edu Source('pagetable.cc') 397047Snate@binkert.org Source('regfile/regfile.cc') 408319Ssteve.reinhardt@amd.com Source('tlb.cc') 417047Snate@binkert.org Source('vtophys.cc') 428319Ssteve.reinhardt@amd.com 438811Sandreas.hansson@arm.com SimObject('ArmTLB.py') 4410007Snilay@cs.wisc.edu TraceFlag('Arm') 458811Sandreas.hansson@arm.com 468811Sandreas.hansson@arm.com if env['FULL_SYSTEM']: 478811Sandreas.hansson@arm.com #Insert Full-System Files Here 489850Sandreas.hansson@arm.com pass 498811Sandreas.hansson@arm.com else: 508811Sandreas.hansson@arm.com Source('process.cc') 5110007Snilay@cs.wisc.edu Source('linux/linux.cc') 528811Sandreas.hansson@arm.com Source('linux/process.cc') 537047Snate@binkert.org 548811Sandreas.hansson@arm.com # Add in files generated by the ISA description. 558811Sandreas.hansson@arm.com isa_desc_files = env.ISADesc('isa/main.isa') 568811Sandreas.hansson@arm.com # Only non-header files need to be compiled. 578319Ssteve.reinhardt@amd.com for f in isa_desc_files: 588319Ssteve.reinhardt@amd.com if not f.path.endswith('.hh'): 598319Ssteve.reinhardt@amd.com Source(f) 608319Ssteve.reinhardt@amd.com 618319Ssteve.reinhardt@amd.com