SConscript revision 5222
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
152929Sktlim@umich.edu# this software without specific prior written permission.
162929Sktlim@umich.edu#
172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282932Sktlim@umich.edu#
292932Sktlim@umich.edu# Authors: Gabe Black
302932Sktlim@umich.edu
312929Sktlim@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company
326007Ssteve.reinhardt@amd.com# All rights reserved.
337735SAli.Saidi@ARM.com#
342929Sktlim@umich.edu# Redistribution and use of this software in source and binary forms,
352929Sktlim@umich.edu# with or without modification, are permitted provided that the
362929Sktlim@umich.edu# following conditions are met:
372929Sktlim@umich.edu#
382929Sktlim@umich.edu# The software must be used only for Non-Commercial Use which means any
392929Sktlim@umich.edu# use which is NOT directed to receiving any direct monetary
402929Sktlim@umich.edu# compensation for, or commercial advantage from such use.  Illustrative
412929Sktlim@umich.edu# examples of non-commercial use are academic research, personal study,
422929Sktlim@umich.edu# teaching, education and corporate research & development.
432929Sktlim@umich.edu# Illustrative examples of commercial use are distributing products for
442929Sktlim@umich.edu# commercial advantage and providing services using the software for
452929Sktlim@umich.edu# commercial advantage.
462929Sktlim@umich.edu#
476007Ssteve.reinhardt@amd.com# If you wish to use this software or functionality therein that may be
486007Ssteve.reinhardt@amd.com# covered by patents for commercial use, please contact:
496007Ssteve.reinhardt@amd.com#     Director of Intellectual Property Licensing
506007Ssteve.reinhardt@amd.com#     Office of Strategy and Technology
516007Ssteve.reinhardt@amd.com#     Hewlett-Packard Company
526007Ssteve.reinhardt@amd.com#     1501 Page Mill Road
536007Ssteve.reinhardt@amd.com#     Palo Alto, California  94304
546007Ssteve.reinhardt@amd.com#
556007Ssteve.reinhardt@amd.com# Redistributions of source code must retain the above copyright notice,
566007Ssteve.reinhardt@amd.com# this list of conditions and the following disclaimer.  Redistributions
576007Ssteve.reinhardt@amd.com# in binary form must reproduce the above copyright notice, this list of
586007Ssteve.reinhardt@amd.com# conditions and the following disclaimer in the documentation and/or
596007Ssteve.reinhardt@amd.com# other materials provided with the distribution.  Neither the name of
606007Ssteve.reinhardt@amd.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
616007Ssteve.reinhardt@amd.com# contributors may be used to endorse or promote products derived from
626007Ssteve.reinhardt@amd.com# this software without specific prior written permission.  No right of
636007Ssteve.reinhardt@amd.com# sublicense is granted herewith.  Derivatives of the software and
646007Ssteve.reinhardt@amd.com# output created using the software may be prepared, but only for
656007Ssteve.reinhardt@amd.com# Non-Commercial Uses.  Derivatives of the software may be shared with
666007Ssteve.reinhardt@amd.com# others provided: (i) the others agree to abide by the list of
676007Ssteve.reinhardt@amd.com# conditions herein which includes the Non-Commercial Use restrictions;
686007Ssteve.reinhardt@amd.com# and (ii) such Derivatives of the software include the above copyright
696007Ssteve.reinhardt@amd.com# notice to acknowledge the contribution from this software where
706007Ssteve.reinhardt@amd.com# applicable, this list of conditions and the disclaimer below.
716007Ssteve.reinhardt@amd.com#
726007Ssteve.reinhardt@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
736007Ssteve.reinhardt@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
746007Ssteve.reinhardt@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
756007Ssteve.reinhardt@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
762929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
772929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
782929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
796007Ssteve.reinhardt@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
806007Ssteve.reinhardt@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
816007Ssteve.reinhardt@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
826007Ssteve.reinhardt@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
836007Ssteve.reinhardt@amd.com#
846007Ssteve.reinhardt@amd.com# Authors: Gabe Black
852929Sktlim@umich.edu
862929Sktlim@umich.eduImport('*')
872929Sktlim@umich.edu
882929Sktlim@umich.eduif env['TARGET_ISA'] == 'x86':
892929Sktlim@umich.edu    Source('emulenv.cc')
906011Ssteve.reinhardt@amd.com    Source('floatregfile.cc')
916007Ssteve.reinhardt@amd.com    Source('faults.cc')
926007Ssteve.reinhardt@amd.com    Source('insts/microfpop.cc')
936007Ssteve.reinhardt@amd.com    Source('insts/microldstop.cc')
946007Ssteve.reinhardt@amd.com    Source('insts/microop.cc')
956007Ssteve.reinhardt@amd.com    Source('insts/microregop.cc')
966007Ssteve.reinhardt@amd.com    Source('insts/static_inst.cc')
976007Ssteve.reinhardt@amd.com    Source('intregfile.cc')
986007Ssteve.reinhardt@amd.com    Source('miscregfile.cc')
996007Ssteve.reinhardt@amd.com    Source('pagetable.cc')
1006007Ssteve.reinhardt@amd.com    Source('predecoder.cc')
1016007Ssteve.reinhardt@amd.com    Source('predecoder_tables.cc')
1026007Ssteve.reinhardt@amd.com    Source('regfile.cc')
1036007Ssteve.reinhardt@amd.com    Source('remote_gdb.cc')
1046007Ssteve.reinhardt@amd.com    Source('tlb.cc')
1057735SAli.Saidi@ARM.com    Source('utility.cc')
1066011Ssteve.reinhardt@amd.com
1076007Ssteve.reinhardt@amd.com    SimObject('X86TLB.py')
1086007Ssteve.reinhardt@amd.com    TraceFlag('Predecoder')
1096007Ssteve.reinhardt@amd.com    TraceFlag('X86')
1106007Ssteve.reinhardt@amd.com
1117735SAli.Saidi@ARM.com    if env['FULL_SYSTEM']:
1127735SAli.Saidi@ARM.com        SimObject('X86System.py')
1137735SAli.Saidi@ARM.com
1147735SAli.Saidi@ARM.com        # Full-system sources
1157735SAli.Saidi@ARM.com        Source('system.cc')
1167735SAli.Saidi@ARM.com        Source('stacktrace.cc')
1177735SAli.Saidi@ARM.com        Source('vtophys.cc')
1187735SAli.Saidi@ARM.com    else:
1197735SAli.Saidi@ARM.com        Source('process.cc')
1207735SAli.Saidi@ARM.com
1217735SAli.Saidi@ARM.com        Source('linux/linux.cc')
1227735SAli.Saidi@ARM.com        Source('linux/process.cc')
1237735SAli.Saidi@ARM.com        Source('linux/syscalls.cc')
1247735SAli.Saidi@ARM.com
1256007Ssteve.reinhardt@amd.com    python_files = (
1267685Ssteve.reinhardt@amd.com        '__init__.py',
1276007Ssteve.reinhardt@amd.com        'general_purpose/__init__.py',
1286011Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/__init__.py',
1296007Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/add_and_subtract.py',
1306007Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/increment_and_decrement.py',
1316007Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/multiply_and_divide.py',
1326007Ssteve.reinhardt@amd.com        'general_purpose/cache_and_memory_management.py',
1336007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/__init__.py',
1346007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/bit_scan.py',
1356011Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/bit_test.py',
1366007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/bounds.py',
1376007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/compare.py',
1386007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/set_byte_on_condition.py',
1396007Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/test.py',
1406007Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/__init__.py',
1416008Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/call.py',
1426007Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/conditional_jump.py',
1436008Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1446008Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/jump.py',
1456008Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/loop.py',
1466008Ssteve.reinhardt@amd.com        'general_purpose/control_transfer/xreturn.py',
1476008Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/__init__.py',
1486008Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/ascii_adjust.py',
1496008Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/bcd_adjust.py',
1506007Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/endian_conversion.py',
1516007Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/extract_sign_mask.py',
1526007Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/sign_extension.py',
1536007Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/translate.py',
1546007Ssteve.reinhardt@amd.com        'general_purpose/data_transfer/__init__.py',
1552929Sktlim@umich.edu        'general_purpose/data_transfer/conditional_move.py',
1562929Sktlim@umich.edu        'general_purpose/data_transfer/move.py',
1572929Sktlim@umich.edu        'general_purpose/data_transfer/stack_operations.py',
1582929Sktlim@umich.edu        'general_purpose/data_transfer/xchg.py',
1596007Ssteve.reinhardt@amd.com        'general_purpose/flags/__init__.py',
1606007Ssteve.reinhardt@amd.com        'general_purpose/flags/load_and_store.py',
1612929Sktlim@umich.edu        'general_purpose/flags/push_and_pop.py',
1622929Sktlim@umich.edu        'general_purpose/flags/set_and_clear.py',
1632929Sktlim@umich.edu        'general_purpose/input_output/__init__.py',
1642929Sktlim@umich.edu        'general_purpose/input_output/general_io.py',
1656007Ssteve.reinhardt@amd.com        'general_purpose/input_output/string_io.py',
1666007Ssteve.reinhardt@amd.com        'general_purpose/load_effective_address.py',
1672929Sktlim@umich.edu        'general_purpose/load_segment_registers.py',
1682929Sktlim@umich.edu        'general_purpose/logical.py',
1696007Ssteve.reinhardt@amd.com        'general_purpose/no_operation.py',
1702929Sktlim@umich.edu        'general_purpose/processor_information.py',
1712929Sktlim@umich.edu        'general_purpose/rotate_and_shift/__init__.py',
1722929Sktlim@umich.edu        'general_purpose/rotate_and_shift/rotate.py',
1732929Sktlim@umich.edu        'general_purpose/rotate_and_shift/shift.py',
1742929Sktlim@umich.edu        'general_purpose/semaphores.py',
1752929Sktlim@umich.edu        'general_purpose/string/__init__.py',
1762929Sktlim@umich.edu        'general_purpose/string/compare_strings.py',
1774937Sstever@gmail.com        'general_purpose/string/load_string.py',
1784937Sstever@gmail.com        'general_purpose/string/move_string.py',
1794937Sstever@gmail.com        'general_purpose/string/scan_string.py',
1804937Sstever@gmail.com        'general_purpose/string/store_string.py',
1818120Sgblack@eecs.umich.edu        'general_purpose/system_calls.py',
1824937Sstever@gmail.com        'system/__init__.py',
1834937Sstever@gmail.com        'system/halt.py',
1844937Sstever@gmail.com        'system/undefined_operation.py',
1854937Sstever@gmail.com        'system/msrs.py',
1865773Snate@binkert.org        'simd128/__init__.py',
1874937Sstever@gmail.com        'simd128/integer/__init__.py',
1884937Sstever@gmail.com        'simd128/integer/data_transfer/__init__.py',
1894937Sstever@gmail.com        'simd128/integer/data_transfer/move.py',
1902929Sktlim@umich.edu        'simd128/integer/data_transfer/move_non_temporal.py',
1912929Sktlim@umich.edu        'simd128/integer/data_transfer/move_mask.py',
1922929Sktlim@umich.edu        'simd128/integer/data_conversion/__init__.py',
1935773Snate@binkert.org        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
1942929Sktlim@umich.edu        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
1952929Sktlim@umich.edu        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
1962929Sktlim@umich.edu        'simd128/integer/data_reordering/__init__.py',
1972929Sktlim@umich.edu        'simd128/integer/data_reordering/unpack_and_interleave.py',
1982929Sktlim@umich.edu        'simd128/integer/data_reordering/pack_with_saturation.py',
1992929Sktlim@umich.edu        'simd128/integer/data_reordering/extract_and_insert.py',
2004937Sstever@gmail.com        'simd128/integer/data_reordering/shuffle.py',
2014937Sstever@gmail.com        'simd128/integer/arithmetic/__init__.py',
2024937Sstever@gmail.com        'simd128/integer/arithmetic/subtraction.py',
2034937Sstever@gmail.com        'simd128/integer/arithmetic/addition.py',
2044937Sstever@gmail.com        'simd128/integer/arithmetic/multiplication.py',
2054937Sstever@gmail.com        'simd128/integer/arithmetic/multiply_add.py',
2064937Sstever@gmail.com        'simd128/integer/arithmetic/average.py',
2074937Sstever@gmail.com        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
2084937Sstever@gmail.com        'simd128/integer/shift/__init__.py',
2094937Sstever@gmail.com        'simd128/integer/shift/right_arithmetic_shift.py',
2104937Sstever@gmail.com        'simd128/integer/shift/left_logical_shift.py',
2114937Sstever@gmail.com        'simd128/integer/shift/right_logical_shift.py',
2124937Sstever@gmail.com        'simd128/integer/compare/__init__.py',
2134937Sstever@gmail.com        'simd128/integer/compare/compare_and_write_mask.py',
2144937Sstever@gmail.com        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2152929Sktlim@umich.edu        'simd128/integer/logical/__init__.py',
2162929Sktlim@umich.edu        'simd128/integer/logical/pand.py',
2172929Sktlim@umich.edu        'simd128/integer/logical/por.py',
2182929Sktlim@umich.edu        'simd128/integer/logical/exclusive_or.py',
2192929Sktlim@umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
2202929Sktlim@umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2212929Sktlim@umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2226011Ssteve.reinhardt@amd.com        'simd128/floating_point/__init__.py',
2232929Sktlim@umich.edu        'simd128/floating_point/data_transfer/__init__.py',
2242929Sktlim@umich.edu        'simd128/floating_point/data_transfer/move_mask.py',
2252929Sktlim@umich.edu        'simd128/floating_point/data_transfer/move.py',
2262929Sktlim@umich.edu        'simd128/floating_point/data_transfer/move_with_duplication.py',
2272929Sktlim@umich.edu        'simd128/floating_point/data_transfer/move_non_temporal.py',
2282929Sktlim@umich.edu        'simd128/floating_point/data_conversion/__init__.py',
2292929Sktlim@umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2302929Sktlim@umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2312997Sstever@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2322997Sstever@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2332929Sktlim@umich.edu        'simd128/floating_point/data_reordering/__init__.py',
2342997Sstever@eecs.umich.edu        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2352997Sstever@eecs.umich.edu        'simd128/floating_point/data_reordering/shuffle.py',
2362929Sktlim@umich.edu        'simd128/floating_point/arithmetic/__init__.py',
2372997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/subtraction.py',
2382997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/addition.py',
2392997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2402929Sktlim@umich.edu        'simd128/floating_point/arithmetic/horizontal_addition.py',
2412997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/square_root.py',
2422997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2432997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/multiplication.py',
2442997Sstever@eecs.umich.edu        'simd128/floating_point/arithmetic/division.py',
2455773Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2465773Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2472997Sstever@eecs.umich.edu        'simd128/floating_point/compare/__init__.py',
2482997Sstever@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_mask.py',
2496007Ssteve.reinhardt@amd.com        'simd128/floating_point/compare/compare_and_write_rflags.py',
2506007Ssteve.reinhardt@amd.com        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2512997Sstever@eecs.umich.edu        'simd128/floating_point/logical/__init__.py',
2522929Sktlim@umich.edu        'simd128/floating_point/logical/andp.py',
2532997Sstever@eecs.umich.edu        'simd128/floating_point/logical/orp.py',
2548120Sgblack@eecs.umich.edu        'simd128/floating_point/logical/exclusive_or.py',
2552997Sstever@eecs.umich.edu        'simd64/__init__.py',
2562997Sstever@eecs.umich.edu        'simd64/integer/__init__.py',
2572997Sstever@eecs.umich.edu        'simd64/integer/data_transfer/__init__.py',
2582997Sstever@eecs.umich.edu        'simd64/integer/data_transfer/move_mask.py',
2592997Sstever@eecs.umich.edu        'simd64/integer/data_transfer/move.py',
2602929Sktlim@umich.edu        'simd64/integer/data_transfer/move_non_temporal.py',
2612997Sstever@eecs.umich.edu        'simd64/integer/exit_media_state.py',
2622929Sktlim@umich.edu        'simd64/integer/data_reordering/__init__.py',
2632929Sktlim@umich.edu        'simd64/integer/data_reordering/unpack_and_interleave.py',
2643005Sstever@eecs.umich.edu        'simd64/integer/data_reordering/pack_with_saturation.py',
2653005Sstever@eecs.umich.edu        'simd64/integer/data_reordering/extract_and_insert.py',
2663005Sstever@eecs.umich.edu        'simd64/integer/data_reordering/shuffle_and_swap.py',
2673005Sstever@eecs.umich.edu        'simd64/integer/data_conversion.py',
2686025Snate@binkert.org        'simd64/integer/arithmetic/__init__.py',
2696025Snate@binkert.org        'simd64/integer/arithmetic/subtraction.py',
2706025Snate@binkert.org        'simd64/integer/arithmetic/addition.py',
2716025Snate@binkert.org        'simd64/integer/arithmetic/multiplication.py',
2726025Snate@binkert.org        'simd64/integer/arithmetic/multiply_add.py',
2738397Sksewell@umich.edu        'simd64/integer/arithmetic/average.py',
2748397Sksewell@umich.edu        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2754130Ssaidi@eecs.umich.edu        'simd64/integer/shift/__init__.py',
2764130Ssaidi@eecs.umich.edu        'simd64/integer/shift/right_arithmetic_shift.py',
2774130Ssaidi@eecs.umich.edu        'simd64/integer/shift/left_logical_shift.py',
2787735SAli.Saidi@ARM.com        'simd64/integer/shift/right_logical_shift.py',
2797735SAli.Saidi@ARM.com        'simd64/integer/compare/__init__.py',
2808528SAli.Saidi@ARM.com        'simd64/integer/compare/compare_and_write_mask.py',
2818150SAli.Saidi@ARM.com        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2828528SAli.Saidi@ARM.com        'simd64/integer/logical/__init__.py',
2838528SAli.Saidi@ARM.com        'simd64/integer/logical/pand.py',
2848528SAli.Saidi@ARM.com        'simd64/integer/logical/por.py',
2857926Sgblack@eecs.umich.edu        'simd64/integer/logical/exclusive_or.py',
2867926Sgblack@eecs.umich.edu        'simd64/integer/save_and_restore_state.py',
2878498Sgblack@eecs.umich.edu        'simd64/floating_point/__init__.py',
2888498Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/__init__.py',
2893691Shsul@eecs.umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
2903005Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/addition.py',
2915721Shsul@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2926194Sksewell@umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
2936928SBrad.Beckmann@amd.com        'simd64/floating_point/arithmetic/accumulation.py',
2943005Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
2958492Snilay@cs.wisc.edu        'simd64/floating_point/data_conversion.py',
2966928SBrad.Beckmann@amd.com        'simd64/floating_point/compare/__init__.py',
2976928SBrad.Beckmann@amd.com        'simd64/floating_point/compare/compare_and_write_mask.py',
2986928SBrad.Beckmann@amd.com        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2996928SBrad.Beckmann@amd.com        'x87/__init__.py',
3006166Ssteve.reinhardt@amd.com        'x87/data_transfer_and_conversion/__init__.py',
3012929Sktlim@umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3022929Sktlim@umich.edu        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3033005Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/exchange.py',
3042997Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3052997Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/conditional_move.py',
3066293Ssteve.reinhardt@amd.com        'x87/data_transfer_and_conversion/extract.py',
3076293Ssteve.reinhardt@amd.com        'x87/load_constants/__init__.py',
3082929Sktlim@umich.edu        'x87/load_constants/load_0_1_or_pi.py',
309        'x87/load_constants/load_logarithm.py',
310        'x87/arithmetic/__init__.py',
311        'x87/arithmetic/subtraction.py',
312        'x87/arithmetic/addition.py',
313        'x87/arithmetic/partial_remainder.py',
314        'x87/arithmetic/multiplication.py',
315        'x87/arithmetic/division.py',
316        'x87/arithmetic/change_sign.py',
317        'x87/arithmetic/round.py',
318        'x87/arithmetic/square_root.py',
319        'x87/transcendental_functions/__init__.py',
320        'x87/transcendental_functions/trigonometric_functions.py',
321        'x87/transcendental_functions/logarithmic_functions.py',
322        'x87/compare_and_test/__init__.py',
323        'x87/compare_and_test/classify.py',
324        'x87/compare_and_test/test.py',
325        'x87/compare_and_test/floating_point_ordered_compare.py',
326        'x87/compare_and_test/floating_point_unordered_compare.py',
327        'x87/compare_and_test/integer_compare.py',
328        'x87/stack_management/__init__.py',
329        'x87/stack_management/stack_control.py',
330        'x87/stack_management/clear_state.py',
331        'x87/control/__init__.py',
332        'x87/control/clear_exceptions.py',
333        'x87/control/initialize.py',
334        'x87/control/wait_for_exceptions.py',
335        'x87/control/save_x87_status_word.py',
336        'x87/control/save_and_restore_x87_control_word.py',
337        'x87/control/save_and_restore_x87_environment.py',
338        'x87/no_operation.py'
339        )
340
341
342    # Add in files generated by the ISA description.
343    isa_desc_files = env.ISADesc('isa/main.isa')
344    for f in isa_desc_files:
345        # Add in python file dependencies that won't be caught otherwise
346        for pyfile in python_files:
347            env.Depends(f, "isa/insts/%s" % pyfile)
348        # Only non-header files need to be compiled.
349        if not f.path.endswith('.hh'):
350            Source(f)
351