SConscript revision 5647:b06b49498c79
113774Sandreas.sandberg@arm.com# -*- mode:python -*-
212564Sgabeblack@google.com
313774Sandreas.sandberg@arm.com# Copyright (c) 2004-2005 The Regents of The University of Michigan
412564Sgabeblack@google.com# All rights reserved.
511552Sabdul.mutaal@gmail.com#
612340Szulian@eit.uni-kl.de# Redistribution and use in source and binary forms, with or without
711552Sabdul.mutaal@gmail.com# modification, are permitted provided that the following conditions are
812340Szulian@eit.uni-kl.de# met: redistributions of source code must retain the above copyright
911552Sabdul.mutaal@gmail.com# notice, this list of conditions and the following disclaimer;
1011552Sabdul.mutaal@gmail.com# redistributions in binary form must reproduce the above copyright
1111552Sabdul.mutaal@gmail.com# notice, this list of conditions and the following disclaimer in the
1212340Szulian@eit.uni-kl.de# documentation and/or other materials provided with the distribution;
1311552Sabdul.mutaal@gmail.com# neither the name of the copyright holders nor the names of its
1411682Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from
1511682Sandreas.hansson@arm.com# this software without specific prior written permission.
1611682Sandreas.hansson@arm.com#
1711682Sandreas.hansson@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1811552Sabdul.mutaal@gmail.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1911552Sabdul.mutaal@gmail.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2012340Szulian@eit.uni-kl.de# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2112340Szulian@eit.uni-kl.de# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2212340Szulian@eit.uni-kl.de# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2312340Szulian@eit.uni-kl.de# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2412340Szulian@eit.uni-kl.de# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2512340Szulian@eit.uni-kl.de# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2612340Szulian@eit.uni-kl.de# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2712340Szulian@eit.uni-kl.de# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2812340Szulian@eit.uni-kl.de#
2912340Szulian@eit.uni-kl.de# Authors: Gabe Black
3012340Szulian@eit.uni-kl.de#          Steve Reinhardt
3112340Szulian@eit.uni-kl.de
3212340Szulian@eit.uni-kl.deImport('*')
3312340Szulian@eit.uni-kl.de
3412340Szulian@eit.uni-kl.deif env['TARGET_ISA'] == 'alpha':
3512340Szulian@eit.uni-kl.de    Source('ev5.cc')
3612340Szulian@eit.uni-kl.de    Source('faults.cc')
3712340Szulian@eit.uni-kl.de    Source('floatregfile.cc')
3812340Szulian@eit.uni-kl.de    Source('intregfile.cc')
3912340Szulian@eit.uni-kl.de    Source('ipr.cc')
4012340Szulian@eit.uni-kl.de    Source('miscregfile.cc')
4112340Szulian@eit.uni-kl.de    Source('pagetable.cc')
4211552Sabdul.mutaal@gmail.com    Source('regfile.cc')
4311552Sabdul.mutaal@gmail.com    Source('remote_gdb.cc')
4412340Szulian@eit.uni-kl.de    Source('tlb.cc')
4511552Sabdul.mutaal@gmail.com    Source('utility.cc')
4611552Sabdul.mutaal@gmail.com
4711552Sabdul.mutaal@gmail.com    SimObject('AlphaTLB.py')
4811552Sabdul.mutaal@gmail.com
4911552Sabdul.mutaal@gmail.com    if env['FULL_SYSTEM']:
5011552Sabdul.mutaal@gmail.com        SimObject('AlphaInterrupts.py')
5112340Szulian@eit.uni-kl.de        SimObject('AlphaSystem.py')
5212340Szulian@eit.uni-kl.de
5312340Szulian@eit.uni-kl.de        Source('idle_event.cc')
5412340Szulian@eit.uni-kl.de        Source('interrupts.cc')
5512340Szulian@eit.uni-kl.de        Source('kernel_stats.cc')
5612340Szulian@eit.uni-kl.de        Source('osfpal.cc')
5712340Szulian@eit.uni-kl.de        Source('stacktrace.cc')
5812340Szulian@eit.uni-kl.de        Source('system.cc')
5912340Szulian@eit.uni-kl.de        Source('vtophys.cc')
6012340Szulian@eit.uni-kl.de
6112340Szulian@eit.uni-kl.de        Source('freebsd/system.cc')
6213731Sandreas.sandberg@arm.com        Source('linux/system.cc')
6312340Szulian@eit.uni-kl.de        Source('tru64/system.cc')
6412340Szulian@eit.uni-kl.de
6512340Szulian@eit.uni-kl.de    else:
6612340Szulian@eit.uni-kl.de        Source('process.cc')
6713731Sandreas.sandberg@arm.com
6812340Szulian@eit.uni-kl.de        Source('linux/linux.cc')
6912340Szulian@eit.uni-kl.de        Source('linux/process.cc')
7012340Szulian@eit.uni-kl.de
7112340Szulian@eit.uni-kl.de        Source('tru64/tru64.cc')
7213731Sandreas.sandberg@arm.com        Source('tru64/process.cc')
7312340Szulian@eit.uni-kl.de
7412340Szulian@eit.uni-kl.de    # Add in files generated by the ISA description.
7512340Szulian@eit.uni-kl.de    isa_desc_files = env.ISADesc('isa/main.isa')
7612340Szulian@eit.uni-kl.de    # Only non-header files need to be compiled.
7712340Szulian@eit.uni-kl.de    for f in isa_desc_files:
7812340Szulian@eit.uni-kl.de        if not f.path.endswith('.hh'):
7912340Szulian@eit.uni-kl.de            Source(f)
8012340Szulian@eit.uni-kl.de