SConscript revision 5517
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Gabe Black
30955SN/A
315522Snate@binkert.org# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
326143Snate@binkert.org# All rights reserved.
334762Snate@binkert.org#
345522Snate@binkert.org# Redistribution and use of this software in source and binary forms,
35955SN/A# with or without modification, are permitted provided that the
365522Snate@binkert.org# following conditions are met:
37955SN/A#
385522Snate@binkert.org# The software must be used only for Non-Commercial Use which means any
394202Sbinkertn@umich.edu# use which is NOT directed to receiving any direct monetary
405742Snate@binkert.org# compensation for, or commercial advantage from such use.  Illustrative
41955SN/A# examples of non-commercial use are academic research, personal study,
424381Sbinkertn@umich.edu# teaching, education and corporate research & development.
434381Sbinkertn@umich.edu# Illustrative examples of commercial use are distributing products for
44955SN/A# commercial advantage and providing services using the software for
45955SN/A# commercial advantage.
46955SN/A#
474202Sbinkertn@umich.edu# If you wish to use this software or functionality therein that may be
48955SN/A# covered by patents for commercial use, please contact:
494382Sbinkertn@umich.edu#     Director of Intellectual Property Licensing
504382Sbinkertn@umich.edu#     Office of Strategy and Technology
514382Sbinkertn@umich.edu#     Hewlett-Packard Company
526654Snate@binkert.org#     1501 Page Mill Road
535517Snate@binkert.org#     Palo Alto, California  94304
547674Snate@binkert.org#
557674Snate@binkert.org# Redistributions of source code must retain the above copyright notice,
566143Snate@binkert.org# this list of conditions and the following disclaimer.  Redistributions
576143Snate@binkert.org# in binary form must reproduce the above copyright notice, this list of
586143Snate@binkert.org# conditions and the following disclaimer in the documentation and/or
596143Snate@binkert.org# other materials provided with the distribution.  Neither the name of
606143Snate@binkert.org# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
616143Snate@binkert.org# contributors may be used to endorse or promote products derived from
626143Snate@binkert.org# this software without specific prior written permission.  No right of
636143Snate@binkert.org# sublicense is granted herewith.  Derivatives of the software and
646143Snate@binkert.org# output created using the software may be prepared, but only for
656143Snate@binkert.org# Non-Commercial Uses.  Derivatives of the software may be shared with
666143Snate@binkert.org# others provided: (i) the others agree to abide by the list of
676143Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions;
686143Snate@binkert.org# and (ii) such Derivatives of the software include the above copyright
696143Snate@binkert.org# notice to acknowledge the contribution from this software where
706143Snate@binkert.org# applicable, this list of conditions and the disclaimer below.
714762Snate@binkert.org#
726143Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
736143Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
746143Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
756143Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
766143Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
776143Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
786143Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
796143Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
806143Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
816143Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
826143Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
836143Snate@binkert.org#
846143Snate@binkert.org# Authors: Gabe Black
856143Snate@binkert.org
866143Snate@binkert.orgImport('*')
876143Snate@binkert.org
886143Snate@binkert.orgif env['TARGET_ISA'] == 'x86':
896143Snate@binkert.org    Source('emulenv.cc')
906143Snate@binkert.org    Source('floatregfile.cc')
916143Snate@binkert.org    Source('faults.cc')
926143Snate@binkert.org    Source('insts/microfpop.cc')
937065Snate@binkert.org    Source('insts/microldstop.cc')
946143Snate@binkert.org    Source('insts/microop.cc')
956143Snate@binkert.org    Source('insts/microregop.cc')
966143Snate@binkert.org    Source('insts/static_inst.cc')
976143Snate@binkert.org    Source('intregfile.cc')
986143Snate@binkert.org    Source('miscregfile.cc')
996143Snate@binkert.org    Source('pagetable.cc')
1006143Snate@binkert.org    Source('predecoder.cc')
1016143Snate@binkert.org    Source('predecoder_tables.cc')
1026143Snate@binkert.org    Source('regfile.cc')
1036143Snate@binkert.org    Source('remote_gdb.cc')
1046143Snate@binkert.org    Source('tlb.cc')
1056143Snate@binkert.org    Source('utility.cc')
1066143Snate@binkert.org
1076143Snate@binkert.org    SimObject('X86TLB.py')
1086143Snate@binkert.org    TraceFlag('Predecoder')
1096143Snate@binkert.org    TraceFlag('X86')
1106143Snate@binkert.org
1116143Snate@binkert.org    if env['FULL_SYSTEM']:
1126143Snate@binkert.org        SimObject('X86System.py')
1136143Snate@binkert.org        SimObject('bios/E820.py')
1146143Snate@binkert.org
1155522Snate@binkert.org        # Full-system sources
1166143Snate@binkert.org        Source('bios/e820.cc')
1176143Snate@binkert.org        Source('linux/system.cc')
1186143Snate@binkert.org        Source('pagetable_walker.cc')
1196143Snate@binkert.org	Source('smbios.cc')
1206143Snate@binkert.org        Source('system.cc')
1216143Snate@binkert.org        Source('stacktrace.cc')
1226143Snate@binkert.org        Source('vtophys.cc')
1236143Snate@binkert.org    else:
1246143Snate@binkert.org        Source('process.cc')
1256143Snate@binkert.org
1265522Snate@binkert.org        Source('linux/linux.cc')
1275522Snate@binkert.org        Source('linux/process.cc')
1285522Snate@binkert.org        Source('linux/syscalls.cc')
1295522Snate@binkert.org
1305604Snate@binkert.org    python_files = (
1315604Snate@binkert.org        '__init__.py',
1326143Snate@binkert.org        'general_purpose/__init__.py',
1336143Snate@binkert.org        'general_purpose/arithmetic/__init__.py',
1344762Snate@binkert.org        'general_purpose/arithmetic/add_and_subtract.py',
1354762Snate@binkert.org        'general_purpose/arithmetic/increment_and_decrement.py',
1366143Snate@binkert.org        'general_purpose/arithmetic/multiply_and_divide.py',
1376727Ssteve.reinhardt@amd.com        'general_purpose/cache_and_memory_management.py',
1386727Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/__init__.py',
1396727Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/bit_scan.py',
1404762Snate@binkert.org        'general_purpose/compare_and_test/bit_test.py',
1416143Snate@binkert.org        'general_purpose/compare_and_test/bounds.py',
1426143Snate@binkert.org        'general_purpose/compare_and_test/compare.py',
1436143Snate@binkert.org        'general_purpose/compare_and_test/set_byte_on_condition.py',
1446143Snate@binkert.org        'general_purpose/compare_and_test/test.py',
1456727Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/__init__.py',
1466143Snate@binkert.org        'general_purpose/control_transfer/call.py',
1477674Snate@binkert.org        'general_purpose/control_transfer/conditional_jump.py',
1487674Snate@binkert.org        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1495604Snate@binkert.org        'general_purpose/control_transfer/jump.py',
1506143Snate@binkert.org        'general_purpose/control_transfer/loop.py',
1516143Snate@binkert.org        'general_purpose/control_transfer/xreturn.py',
1526143Snate@binkert.org        'general_purpose/data_conversion/__init__.py',
1534762Snate@binkert.org        'general_purpose/data_conversion/ascii_adjust.py',
1546143Snate@binkert.org        'general_purpose/data_conversion/bcd_adjust.py',
1554762Snate@binkert.org        'general_purpose/data_conversion/endian_conversion.py',
1564762Snate@binkert.org        'general_purpose/data_conversion/extract_sign_mask.py',
1574762Snate@binkert.org        'general_purpose/data_conversion/sign_extension.py',
1586143Snate@binkert.org        'general_purpose/data_conversion/translate.py',
1596143Snate@binkert.org        'general_purpose/data_transfer/__init__.py',
1604762Snate@binkert.org        'general_purpose/data_transfer/conditional_move.py',
1616143Snate@binkert.org        'general_purpose/data_transfer/move.py',
1626143Snate@binkert.org        'general_purpose/data_transfer/stack_operations.py',
1636143Snate@binkert.org        'general_purpose/data_transfer/xchg.py',
1646143Snate@binkert.org        'general_purpose/flags/__init__.py',
1654762Snate@binkert.org        'general_purpose/flags/load_and_store.py',
1666143Snate@binkert.org        'general_purpose/flags/push_and_pop.py',
1674762Snate@binkert.org        'general_purpose/flags/set_and_clear.py',
1686143Snate@binkert.org        'general_purpose/input_output/__init__.py',
1694762Snate@binkert.org        'general_purpose/input_output/general_io.py',
1706143Snate@binkert.org        'general_purpose/input_output/string_io.py',
1716143Snate@binkert.org        'general_purpose/load_effective_address.py',
1726143Snate@binkert.org        'general_purpose/load_segment_registers.py',
1736143Snate@binkert.org        'general_purpose/logical.py',
1746143Snate@binkert.org        'general_purpose/no_operation.py',
1756143Snate@binkert.org        'general_purpose/processor_information.py',
1766143Snate@binkert.org        'general_purpose/rotate_and_shift/__init__.py',
1776143Snate@binkert.org        'general_purpose/rotate_and_shift/rotate.py',
1786143Snate@binkert.org        'general_purpose/rotate_and_shift/shift.py',
1796143Snate@binkert.org        'general_purpose/semaphores.py',
1806143Snate@binkert.org        'general_purpose/string/__init__.py',
1816143Snate@binkert.org        'general_purpose/string/compare_strings.py',
1826143Snate@binkert.org        'general_purpose/string/load_string.py',
183955SN/A        'general_purpose/string/move_string.py',
1845584Snate@binkert.org        'general_purpose/string/scan_string.py',
1855584Snate@binkert.org        'general_purpose/string/store_string.py',
1865584Snate@binkert.org        'general_purpose/system_calls.py',
1875584Snate@binkert.org        'system/__init__.py',
1886143Snate@binkert.org        'system/halt.py',
1896143Snate@binkert.org        'system/invlpg.py',
1906143Snate@binkert.org        'system/undefined_operation.py',
1915584Snate@binkert.org        'system/msrs.py',
1924382Sbinkertn@umich.edu        'system/segmentation.py',
1934202Sbinkertn@umich.edu        'simd128/__init__.py',
1944382Sbinkertn@umich.edu        'simd128/integer/__init__.py',
1954382Sbinkertn@umich.edu        'simd128/integer/data_transfer/__init__.py',
1964382Sbinkertn@umich.edu        'simd128/integer/data_transfer/move.py',
1975584Snate@binkert.org        'simd128/integer/data_transfer/move_non_temporal.py',
1984382Sbinkertn@umich.edu        'simd128/integer/data_transfer/move_mask.py',
1994382Sbinkertn@umich.edu        'simd128/integer/data_conversion/__init__.py',
2004382Sbinkertn@umich.edu        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
2015192Ssaidi@eecs.umich.edu        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
2025192Ssaidi@eecs.umich.edu        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
2035799Snate@binkert.org        'simd128/integer/data_reordering/__init__.py',
2045799Snate@binkert.org        'simd128/integer/data_reordering/unpack_and_interleave.py',
2055799Snate@binkert.org        'simd128/integer/data_reordering/pack_with_saturation.py',
2065192Ssaidi@eecs.umich.edu        'simd128/integer/data_reordering/extract_and_insert.py',
2075799Snate@binkert.org        'simd128/integer/data_reordering/shuffle.py',
2085192Ssaidi@eecs.umich.edu        'simd128/integer/arithmetic/__init__.py',
2095799Snate@binkert.org        'simd128/integer/arithmetic/subtraction.py',
2105799Snate@binkert.org        'simd128/integer/arithmetic/addition.py',
2115192Ssaidi@eecs.umich.edu        'simd128/integer/arithmetic/multiplication.py',
2125192Ssaidi@eecs.umich.edu        'simd128/integer/arithmetic/multiply_add.py',
2135192Ssaidi@eecs.umich.edu        'simd128/integer/arithmetic/average.py',
2145799Snate@binkert.org        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
2155192Ssaidi@eecs.umich.edu        'simd128/integer/shift/__init__.py',
2165192Ssaidi@eecs.umich.edu        'simd128/integer/shift/right_arithmetic_shift.py',
2175192Ssaidi@eecs.umich.edu        'simd128/integer/shift/left_logical_shift.py',
2185192Ssaidi@eecs.umich.edu        'simd128/integer/shift/right_logical_shift.py',
2195192Ssaidi@eecs.umich.edu        'simd128/integer/compare/__init__.py',
2205192Ssaidi@eecs.umich.edu        'simd128/integer/compare/compare_and_write_mask.py',
2214382Sbinkertn@umich.edu        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2224382Sbinkertn@umich.edu        'simd128/integer/logical/__init__.py',
2234382Sbinkertn@umich.edu        'simd128/integer/logical/pand.py',
2242667Sstever@eecs.umich.edu        'simd128/integer/logical/por.py',
2252667Sstever@eecs.umich.edu        'simd128/integer/logical/exclusive_or.py',
2262667Sstever@eecs.umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
2272667Sstever@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2282667Sstever@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2292667Sstever@eecs.umich.edu        'simd128/floating_point/__init__.py',
2305742Snate@binkert.org        'simd128/floating_point/data_transfer/__init__.py',
2315742Snate@binkert.org        'simd128/floating_point/data_transfer/move_mask.py',
2325742Snate@binkert.org        'simd128/floating_point/data_transfer/move.py',
2335793Snate@binkert.org        'simd128/floating_point/data_transfer/move_with_duplication.py',
2345793Snate@binkert.org        'simd128/floating_point/data_transfer/move_non_temporal.py',
2355793Snate@binkert.org        'simd128/floating_point/data_conversion/__init__.py',
2365793Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2375793Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2384382Sbinkertn@umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2394762Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2405344Sstever@gmail.com        'simd128/floating_point/data_reordering/__init__.py',
2414382Sbinkertn@umich.edu        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2425341Sstever@gmail.com        'simd128/floating_point/data_reordering/shuffle.py',
2435742Snate@binkert.org        'simd128/floating_point/arithmetic/__init__.py',
2445742Snate@binkert.org        'simd128/floating_point/arithmetic/subtraction.py',
2455742Snate@binkert.org        'simd128/floating_point/arithmetic/addition.py',
2465742Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2475742Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_addition.py',
2484762Snate@binkert.org        'simd128/floating_point/arithmetic/square_root.py',
2495742Snate@binkert.org        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2505742Snate@binkert.org        'simd128/floating_point/arithmetic/multiplication.py',
2517722Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/division.py',
2525742Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2535742Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2545742Snate@binkert.org        'simd128/floating_point/compare/__init__.py',
2555742Snate@binkert.org        'simd128/floating_point/compare/compare_and_write_mask.py',
2565341Sstever@gmail.com        'simd128/floating_point/compare/compare_and_write_rflags.py',
2575742Snate@binkert.org        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2587722Sgblack@eecs.umich.edu        'simd128/floating_point/logical/__init__.py',
2594773Snate@binkert.org        'simd128/floating_point/logical/andp.py',
2606108Snate@binkert.org        'simd128/floating_point/logical/orp.py',
2611858SN/A        'simd128/floating_point/logical/exclusive_or.py',
2621085SN/A        'simd64/__init__.py',
2636658Snate@binkert.org        'simd64/integer/__init__.py',
2646658Snate@binkert.org        'simd64/integer/data_transfer/__init__.py',
2657673Snate@binkert.org        'simd64/integer/data_transfer/move_mask.py',
2666658Snate@binkert.org        'simd64/integer/data_transfer/move.py',
2676658Snate@binkert.org        'simd64/integer/data_transfer/move_non_temporal.py',
2686658Snate@binkert.org        'simd64/integer/exit_media_state.py',
2696658Snate@binkert.org        'simd64/integer/data_reordering/__init__.py',
2706658Snate@binkert.org        'simd64/integer/data_reordering/unpack_and_interleave.py',
2716658Snate@binkert.org        'simd64/integer/data_reordering/pack_with_saturation.py',
2726658Snate@binkert.org        'simd64/integer/data_reordering/extract_and_insert.py',
2737673Snate@binkert.org        'simd64/integer/data_reordering/shuffle_and_swap.py',
2747673Snate@binkert.org        'simd64/integer/data_conversion.py',
2757673Snate@binkert.org        'simd64/integer/arithmetic/__init__.py',
2767673Snate@binkert.org        'simd64/integer/arithmetic/subtraction.py',
2777673Snate@binkert.org        'simd64/integer/arithmetic/addition.py',
2787673Snate@binkert.org        'simd64/integer/arithmetic/multiplication.py',
2797673Snate@binkert.org        'simd64/integer/arithmetic/multiply_add.py',
2806658Snate@binkert.org        'simd64/integer/arithmetic/average.py',
2817673Snate@binkert.org        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2827673Snate@binkert.org        'simd64/integer/shift/__init__.py',
2837673Snate@binkert.org        'simd64/integer/shift/right_arithmetic_shift.py',
2847673Snate@binkert.org        'simd64/integer/shift/left_logical_shift.py',
2857673Snate@binkert.org        'simd64/integer/shift/right_logical_shift.py',
2867673Snate@binkert.org        'simd64/integer/compare/__init__.py',
2877673Snate@binkert.org        'simd64/integer/compare/compare_and_write_mask.py',
2887673Snate@binkert.org        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2897673Snate@binkert.org        'simd64/integer/logical/__init__.py',
2907673Snate@binkert.org        'simd64/integer/logical/pand.py',
2916658Snate@binkert.org        'simd64/integer/logical/por.py',
2927756SAli.Saidi@ARM.com        'simd64/integer/logical/exclusive_or.py',
2937816Ssteve.reinhardt@amd.com        'simd64/integer/save_and_restore_state.py',
2946658Snate@binkert.org        'simd64/floating_point/__init__.py',
2954382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/__init__.py',
2964382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
2974762Snate@binkert.org        'simd64/floating_point/arithmetic/addition.py',
2984762Snate@binkert.org        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2994762Snate@binkert.org        'simd64/floating_point/arithmetic/multiplication.py',
3006654Snate@binkert.org        'simd64/floating_point/arithmetic/accumulation.py',
3016654Snate@binkert.org        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
3025517Snate@binkert.org        'simd64/floating_point/data_conversion.py',
3035517Snate@binkert.org        'simd64/floating_point/compare/__init__.py',
3045517Snate@binkert.org        'simd64/floating_point/compare/compare_and_write_mask.py',
3055517Snate@binkert.org        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
3065517Snate@binkert.org        'x87/__init__.py',
3075517Snate@binkert.org        'x87/data_transfer_and_conversion/__init__.py',
3085517Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3095517Snate@binkert.org        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3105517Snate@binkert.org        'x87/data_transfer_and_conversion/exchange.py',
3115517Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3125517Snate@binkert.org        'x87/data_transfer_and_conversion/conditional_move.py',
3135517Snate@binkert.org        'x87/data_transfer_and_conversion/extract.py',
3145517Snate@binkert.org        'x87/load_constants/__init__.py',
3155517Snate@binkert.org        'x87/load_constants/load_0_1_or_pi.py',
3165517Snate@binkert.org        'x87/load_constants/load_logarithm.py',
3175517Snate@binkert.org        'x87/arithmetic/__init__.py',
3185517Snate@binkert.org        'x87/arithmetic/subtraction.py',
3196654Snate@binkert.org        'x87/arithmetic/addition.py',
3205517Snate@binkert.org        'x87/arithmetic/partial_remainder.py',
3215517Snate@binkert.org        'x87/arithmetic/multiplication.py',
3225517Snate@binkert.org        'x87/arithmetic/division.py',
3235517Snate@binkert.org        'x87/arithmetic/change_sign.py',
3245517Snate@binkert.org        'x87/arithmetic/round.py',
3255517Snate@binkert.org        'x87/arithmetic/square_root.py',
3265517Snate@binkert.org        'x87/transcendental_functions/__init__.py',
3275517Snate@binkert.org        'x87/transcendental_functions/trigonometric_functions.py',
3286143Snate@binkert.org        'x87/transcendental_functions/logarithmic_functions.py',
3296654Snate@binkert.org        'x87/compare_and_test/__init__.py',
3305517Snate@binkert.org        'x87/compare_and_test/classify.py',
3315517Snate@binkert.org        'x87/compare_and_test/test.py',
3325517Snate@binkert.org        'x87/compare_and_test/floating_point_ordered_compare.py',
3335517Snate@binkert.org        'x87/compare_and_test/floating_point_unordered_compare.py',
3345517Snate@binkert.org        'x87/compare_and_test/integer_compare.py',
3355517Snate@binkert.org        'x87/stack_management/__init__.py',
3365517Snate@binkert.org        'x87/stack_management/stack_control.py',
3375517Snate@binkert.org        'x87/stack_management/clear_state.py',
3385517Snate@binkert.org        'x87/control/__init__.py',
3395517Snate@binkert.org        'x87/control/clear_exceptions.py',
3405517Snate@binkert.org        'x87/control/initialize.py',
3415517Snate@binkert.org        'x87/control/wait_for_exceptions.py',
3425517Snate@binkert.org        'x87/control/save_x87_status_word.py',
3435517Snate@binkert.org        'x87/control/save_and_restore_x87_control_word.py',
3446654Snate@binkert.org        'x87/control/save_and_restore_x87_environment.py',
3456654Snate@binkert.org        'x87/no_operation.py'
3465517Snate@binkert.org        )
3475517Snate@binkert.org
3486143Snate@binkert.org
3496143Snate@binkert.org    # Add in files generated by the ISA description.
3506143Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
3516727Ssteve.reinhardt@amd.com    for f in isa_desc_files:
3525517Snate@binkert.org        # Add in python file dependencies that won't be caught otherwise
3536727Ssteve.reinhardt@amd.com        for pyfile in python_files:
3545517Snate@binkert.org            env.Depends(f, "isa/insts/%s" % pyfile)
3555517Snate@binkert.org        # Only non-header files need to be compiled.
3565517Snate@binkert.org        if not f.path.endswith('.hh'):
3576654Snate@binkert.org            Source(f)
3586654Snate@binkert.org
3597673Snate@binkert.org    # Workaround for bug in SCons version > 0.97d20071212
3606654Snate@binkert.org    # Scons bug id: 2006 M5 Bug id: 308
3616654Snate@binkert.org    from os.path import dirname, join as joinpath
3626654Snate@binkert.org
3636654Snate@binkert.org    Dir('isa')
3645517Snate@binkert.org    Dir('isa/microops')
3655517Snate@binkert.org    Dir('isa/decoder')
3665517Snate@binkert.org    Dir('isa/formats')
3676143Snate@binkert.org    Dir('isa/insts')
3685517Snate@binkert.org    isa_dirs = set(map(lambda x:dirname(x), python_files))
3694762Snate@binkert.org    for d in isa_dirs:
3705517Snate@binkert.org        Dir(joinpath('isa/insts', d))
3715517Snate@binkert.org     
3726143Snate@binkert.org