SConscript revision 5612:1bd333953e49
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#
292665Ssaidi@eecs.umich.edu# Authors: Gabe Black
30955SN/A
31955SN/A# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
32955SN/A# All rights reserved.
33955SN/A#
34955SN/A# Redistribution and use of this software in source and binary forms,
352632Sstever@eecs.umich.edu# with or without modification, are permitted provided that the
362632Sstever@eecs.umich.edu# following conditions are met:
372632Sstever@eecs.umich.edu#
382632Sstever@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any
39955SN/A# use which is NOT directed to receiving any direct monetary
402632Sstever@eecs.umich.edu# compensation for, or commercial advantage from such use.  Illustrative
412632Sstever@eecs.umich.edu# examples of non-commercial use are academic research, personal study,
422761Sstever@eecs.umich.edu# teaching, education and corporate research & development.
432632Sstever@eecs.umich.edu# Illustrative examples of commercial use are distributing products for
442632Sstever@eecs.umich.edu# commercial advantage and providing services using the software for
452632Sstever@eecs.umich.edu# commercial advantage.
462761Sstever@eecs.umich.edu#
472761Sstever@eecs.umich.edu# If you wish to use this software or functionality therein that may be
482761Sstever@eecs.umich.edu# covered by patents for commercial use, please contact:
492632Sstever@eecs.umich.edu#     Director of Intellectual Property Licensing
502632Sstever@eecs.umich.edu#     Office of Strategy and Technology
512761Sstever@eecs.umich.edu#     Hewlett-Packard Company
522761Sstever@eecs.umich.edu#     1501 Page Mill Road
532761Sstever@eecs.umich.edu#     Palo Alto, California  94304
542761Sstever@eecs.umich.edu#
552761Sstever@eecs.umich.edu# Redistributions of source code must retain the above copyright notice,
562632Sstever@eecs.umich.edu# this list of conditions and the following disclaimer.  Redistributions
572632Sstever@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
582632Sstever@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
592632Sstever@eecs.umich.edu# other materials provided with the distribution.  Neither the name of
602632Sstever@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
612632Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from
622632Sstever@eecs.umich.edu# this software without specific prior written permission.  No right of
63955SN/A# sublicense is granted herewith.  Derivatives of the software and
64955SN/A# output created using the software may be prepared, but only for
65955SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
66955SN/A# others provided: (i) the others agree to abide by the list of
67955SN/A# conditions herein which includes the Non-Commercial Use restrictions;
684202Sbinkertn@umich.edu# and (ii) such Derivatives of the software include the above copyright
694678Snate@binkert.org# notice to acknowledge the contribution from this software where
70955SN/A# applicable, this list of conditions and the disclaimer below.
715273Sstever@gmail.com#
725273Sstever@gmail.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
732656Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
742656Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
752656Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
762656Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
772656Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
782656Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
792656Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
802653Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
815227Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
825227Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
835227Ssaidi@eecs.umich.edu#
845227Ssaidi@eecs.umich.edu# Authors: Gabe Black
852653Sstever@eecs.umich.edu
862653Sstever@eecs.umich.eduImport('*')
872653Sstever@eecs.umich.edu
882653Sstever@eecs.umich.eduif env['TARGET_ISA'] == 'x86':
892653Sstever@eecs.umich.edu    Source('emulenv.cc')
902653Sstever@eecs.umich.edu    Source('floatregfile.cc')
912653Sstever@eecs.umich.edu    Source('faults.cc')
922653Sstever@eecs.umich.edu    Source('insts/microfpop.cc')
932653Sstever@eecs.umich.edu    Source('insts/microldstop.cc')
944781Snate@binkert.org    Source('insts/microop.cc')
951852SN/A    Source('insts/microregop.cc')
96955SN/A    Source('insts/static_inst.cc')
97955SN/A    Source('intregfile.cc')
98955SN/A    Source('miscregfile.cc')
993717Sstever@eecs.umich.edu    Source('pagetable.cc')
1003716Sstever@eecs.umich.edu    Source('predecoder.cc')
101955SN/A    Source('predecoder_tables.cc')
1021533SN/A    Source('regfile.cc')
1033716Sstever@eecs.umich.edu    Source('remote_gdb.cc')
1041533SN/A    Source('tlb.cc')
1054678Snate@binkert.org    Source('utility.cc')
1064678Snate@binkert.org
1074678Snate@binkert.org    SimObject('X86TLB.py')
1084678Snate@binkert.org    TraceFlag('Predecoder')
1094678Snate@binkert.org    TraceFlag('X86')
1104678Snate@binkert.org
1114678Snate@binkert.org    if env['FULL_SYSTEM']:
1124678Snate@binkert.org        SimObject('X86System.py')
1134678Snate@binkert.org
1144678Snate@binkert.org        # Full-system sources
1154678Snate@binkert.org        Source('linux/system.cc')
1164678Snate@binkert.org        Source('pagetable_walker.cc')
1174678Snate@binkert.org        Source('system.cc')
1184678Snate@binkert.org        Source('stacktrace.cc')
1194678Snate@binkert.org        Source('vtophys.cc')
1204678Snate@binkert.org    else:
1214678Snate@binkert.org        Source('process.cc')
1224678Snate@binkert.org
1234678Snate@binkert.org        Source('linux/linux.cc')
1244678Snate@binkert.org        Source('linux/process.cc')
1254678Snate@binkert.org        Source('linux/syscalls.cc')
1264973Ssaidi@eecs.umich.edu
1274678Snate@binkert.org    python_files = (
1284678Snate@binkert.org        '__init__.py',
1294678Snate@binkert.org        'general_purpose/__init__.py',
1304678Snate@binkert.org        'general_purpose/arithmetic/__init__.py',
1314678Snate@binkert.org        'general_purpose/arithmetic/add_and_subtract.py',
1324678Snate@binkert.org        'general_purpose/arithmetic/increment_and_decrement.py',
133955SN/A        'general_purpose/arithmetic/multiply_and_divide.py',
134955SN/A        'general_purpose/cache_and_memory_management.py',
1352632Sstever@eecs.umich.edu        'general_purpose/compare_and_test/__init__.py',
1362632Sstever@eecs.umich.edu        'general_purpose/compare_and_test/bit_scan.py',
137955SN/A        'general_purpose/compare_and_test/bit_test.py',
138955SN/A        'general_purpose/compare_and_test/bounds.py',
139955SN/A        'general_purpose/compare_and_test/compare.py',
140955SN/A        'general_purpose/compare_and_test/set_byte_on_condition.py',
1412632Sstever@eecs.umich.edu        'general_purpose/compare_and_test/test.py',
142955SN/A        'general_purpose/control_transfer/__init__.py',
1432632Sstever@eecs.umich.edu        'general_purpose/control_transfer/call.py',
1442632Sstever@eecs.umich.edu        'general_purpose/control_transfer/conditional_jump.py',
1452632Sstever@eecs.umich.edu        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1462632Sstever@eecs.umich.edu        'general_purpose/control_transfer/jump.py',
1472632Sstever@eecs.umich.edu        'general_purpose/control_transfer/loop.py',
1482632Sstever@eecs.umich.edu        'general_purpose/control_transfer/xreturn.py',
1492632Sstever@eecs.umich.edu        'general_purpose/data_conversion/__init__.py',
1503053Sstever@eecs.umich.edu        'general_purpose/data_conversion/ascii_adjust.py',
1513053Sstever@eecs.umich.edu        'general_purpose/data_conversion/bcd_adjust.py',
1523053Sstever@eecs.umich.edu        'general_purpose/data_conversion/endian_conversion.py',
1533053Sstever@eecs.umich.edu        'general_purpose/data_conversion/extract_sign_mask.py',
1543053Sstever@eecs.umich.edu        'general_purpose/data_conversion/sign_extension.py',
1553053Sstever@eecs.umich.edu        'general_purpose/data_conversion/translate.py',
1563053Sstever@eecs.umich.edu        'general_purpose/data_transfer/__init__.py',
1573053Sstever@eecs.umich.edu        'general_purpose/data_transfer/conditional_move.py',
1583053Sstever@eecs.umich.edu        'general_purpose/data_transfer/move.py',
1593053Sstever@eecs.umich.edu        'general_purpose/data_transfer/stack_operations.py',
1603053Sstever@eecs.umich.edu        'general_purpose/data_transfer/xchg.py',
1613053Sstever@eecs.umich.edu        'general_purpose/flags/__init__.py',
1623053Sstever@eecs.umich.edu        'general_purpose/flags/load_and_store.py',
1633053Sstever@eecs.umich.edu        'general_purpose/flags/push_and_pop.py',
1643053Sstever@eecs.umich.edu        'general_purpose/flags/set_and_clear.py',
1653053Sstever@eecs.umich.edu        'general_purpose/input_output/__init__.py',
1662632Sstever@eecs.umich.edu        'general_purpose/input_output/general_io.py',
1672632Sstever@eecs.umich.edu        'general_purpose/input_output/string_io.py',
1682632Sstever@eecs.umich.edu        'general_purpose/load_effective_address.py',
1692632Sstever@eecs.umich.edu        'general_purpose/load_segment_registers.py',
1702632Sstever@eecs.umich.edu        'general_purpose/logical.py',
1712632Sstever@eecs.umich.edu        'general_purpose/no_operation.py',
1723718Sstever@eecs.umich.edu        'general_purpose/processor_information.py',
1733718Sstever@eecs.umich.edu        'general_purpose/rotate_and_shift/__init__.py',
1743718Sstever@eecs.umich.edu        'general_purpose/rotate_and_shift/rotate.py',
1753718Sstever@eecs.umich.edu        'general_purpose/rotate_and_shift/shift.py',
1763718Sstever@eecs.umich.edu        'general_purpose/semaphores.py',
1773718Sstever@eecs.umich.edu        'general_purpose/string/__init__.py',
1783718Sstever@eecs.umich.edu        'general_purpose/string/compare_strings.py',
1793718Sstever@eecs.umich.edu        'general_purpose/string/load_string.py',
1803718Sstever@eecs.umich.edu        'general_purpose/string/move_string.py',
1813718Sstever@eecs.umich.edu        'general_purpose/string/scan_string.py',
1823718Sstever@eecs.umich.edu        'general_purpose/string/store_string.py',
1833718Sstever@eecs.umich.edu        'general_purpose/system_calls.py',
1843718Sstever@eecs.umich.edu        'system/__init__.py',
1852634Sstever@eecs.umich.edu        'system/halt.py',
1862634Sstever@eecs.umich.edu        'system/invlpg.py',
1872632Sstever@eecs.umich.edu        'system/undefined_operation.py',
1882638Sstever@eecs.umich.edu        'system/msrs.py',
1892632Sstever@eecs.umich.edu        'system/segmentation.py',
1902632Sstever@eecs.umich.edu        'simd128/__init__.py',
1912632Sstever@eecs.umich.edu        'simd128/integer/__init__.py',
1922632Sstever@eecs.umich.edu        'simd128/integer/data_transfer/__init__.py',
1932632Sstever@eecs.umich.edu        'simd128/integer/data_transfer/move.py',
1942632Sstever@eecs.umich.edu        'simd128/integer/data_transfer/move_non_temporal.py',
1951858SN/A        'simd128/integer/data_transfer/move_mask.py',
1963716Sstever@eecs.umich.edu        'simd128/integer/data_conversion/__init__.py',
1972638Sstever@eecs.umich.edu        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
1982638Sstever@eecs.umich.edu        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
1992638Sstever@eecs.umich.edu        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
2002638Sstever@eecs.umich.edu        'simd128/integer/data_reordering/__init__.py',
2012638Sstever@eecs.umich.edu        'simd128/integer/data_reordering/unpack_and_interleave.py',
2022638Sstever@eecs.umich.edu        'simd128/integer/data_reordering/pack_with_saturation.py',
2032638Sstever@eecs.umich.edu        'simd128/integer/data_reordering/extract_and_insert.py',
2043716Sstever@eecs.umich.edu        'simd128/integer/data_reordering/shuffle.py',
2052634Sstever@eecs.umich.edu        'simd128/integer/arithmetic/__init__.py',
2062634Sstever@eecs.umich.edu        'simd128/integer/arithmetic/subtraction.py',
207955SN/A        'simd128/integer/arithmetic/addition.py',
2085341Sstever@gmail.com        'simd128/integer/arithmetic/multiplication.py',
2095341Sstever@gmail.com        'simd128/integer/arithmetic/multiply_add.py',
2105341Sstever@gmail.com        'simd128/integer/arithmetic/average.py',
2115341Sstever@gmail.com        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
212955SN/A        'simd128/integer/shift/__init__.py',
213955SN/A        'simd128/integer/shift/right_arithmetic_shift.py',
214955SN/A        'simd128/integer/shift/left_logical_shift.py',
215955SN/A        'simd128/integer/shift/right_logical_shift.py',
216955SN/A        'simd128/integer/compare/__init__.py',
217955SN/A        'simd128/integer/compare/compare_and_write_mask.py',
218955SN/A        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2191858SN/A        'simd128/integer/logical/__init__.py',
2201858SN/A        'simd128/integer/logical/pand.py',
2212632Sstever@eecs.umich.edu        'simd128/integer/logical/por.py',
222955SN/A        'simd128/integer/logical/exclusive_or.py',
2234494Ssaidi@eecs.umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
2244494Ssaidi@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2253716Sstever@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2261105SN/A        'simd128/floating_point/__init__.py',
2272667Sstever@eecs.umich.edu        'simd128/floating_point/data_transfer/__init__.py',
2282667Sstever@eecs.umich.edu        'simd128/floating_point/data_transfer/move_mask.py',
2292667Sstever@eecs.umich.edu        'simd128/floating_point/data_transfer/move.py',
2302667Sstever@eecs.umich.edu        'simd128/floating_point/data_transfer/move_with_duplication.py',
2312667Sstever@eecs.umich.edu        'simd128/floating_point/data_transfer/move_non_temporal.py',
2322667Sstever@eecs.umich.edu        'simd128/floating_point/data_conversion/__init__.py',
2331869SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2341869SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2351869SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2361869SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2371869SN/A        'simd128/floating_point/data_reordering/__init__.py',
2381065SN/A        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2395341Sstever@gmail.com        'simd128/floating_point/data_reordering/shuffle.py',
2405341Sstever@gmail.com        'simd128/floating_point/arithmetic/__init__.py',
2415341Sstever@gmail.com        'simd128/floating_point/arithmetic/subtraction.py',
2425341Sstever@gmail.com        'simd128/floating_point/arithmetic/addition.py',
2435341Sstever@gmail.com        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2445341Sstever@gmail.com        'simd128/floating_point/arithmetic/horizontal_addition.py',
2455341Sstever@gmail.com        'simd128/floating_point/arithmetic/square_root.py',
2465341Sstever@gmail.com        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2475341Sstever@gmail.com        'simd128/floating_point/arithmetic/multiplication.py',
2485341Sstever@gmail.com        'simd128/floating_point/arithmetic/division.py',
2495341Sstever@gmail.com        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2505341Sstever@gmail.com        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2515341Sstever@gmail.com        'simd128/floating_point/compare/__init__.py',
2525341Sstever@gmail.com        'simd128/floating_point/compare/compare_and_write_mask.py',
2535341Sstever@gmail.com        'simd128/floating_point/compare/compare_and_write_rflags.py',
2545341Sstever@gmail.com        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2555341Sstever@gmail.com        'simd128/floating_point/logical/__init__.py',
2565341Sstever@gmail.com        'simd128/floating_point/logical/andp.py',
2575341Sstever@gmail.com        'simd128/floating_point/logical/orp.py',
2585341Sstever@gmail.com        'simd128/floating_point/logical/exclusive_or.py',
2595341Sstever@gmail.com        'simd64/__init__.py',
2605341Sstever@gmail.com        'simd64/integer/__init__.py',
2615341Sstever@gmail.com        'simd64/integer/data_transfer/__init__.py',
2625341Sstever@gmail.com        'simd64/integer/data_transfer/move_mask.py',
2635341Sstever@gmail.com        'simd64/integer/data_transfer/move.py',
2645341Sstever@gmail.com        'simd64/integer/data_transfer/move_non_temporal.py',
2655341Sstever@gmail.com        'simd64/integer/exit_media_state.py',
2665341Sstever@gmail.com        'simd64/integer/data_reordering/__init__.py',
2675341Sstever@gmail.com        'simd64/integer/data_reordering/unpack_and_interleave.py',
2685341Sstever@gmail.com        'simd64/integer/data_reordering/pack_with_saturation.py',
2695341Sstever@gmail.com        'simd64/integer/data_reordering/extract_and_insert.py',
2705341Sstever@gmail.com        'simd64/integer/data_reordering/shuffle_and_swap.py',
2715341Sstever@gmail.com        'simd64/integer/data_conversion.py',
2725341Sstever@gmail.com        'simd64/integer/arithmetic/__init__.py',
2735341Sstever@gmail.com        'simd64/integer/arithmetic/subtraction.py',
2745341Sstever@gmail.com        'simd64/integer/arithmetic/addition.py',
2755341Sstever@gmail.com        'simd64/integer/arithmetic/multiplication.py',
2765341Sstever@gmail.com        'simd64/integer/arithmetic/multiply_add.py',
2775341Sstever@gmail.com        'simd64/integer/arithmetic/average.py',
2785341Sstever@gmail.com        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2795341Sstever@gmail.com        'simd64/integer/shift/__init__.py',
2805341Sstever@gmail.com        'simd64/integer/shift/right_arithmetic_shift.py',
2815341Sstever@gmail.com        'simd64/integer/shift/left_logical_shift.py',
2825341Sstever@gmail.com        'simd64/integer/shift/right_logical_shift.py',
2835341Sstever@gmail.com        'simd64/integer/compare/__init__.py',
2845341Sstever@gmail.com        'simd64/integer/compare/compare_and_write_mask.py',
2855341Sstever@gmail.com        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2865341Sstever@gmail.com        'simd64/integer/logical/__init__.py',
2875341Sstever@gmail.com        'simd64/integer/logical/pand.py',
2885341Sstever@gmail.com        'simd64/integer/logical/por.py',
2895341Sstever@gmail.com        'simd64/integer/logical/exclusive_or.py',
2905341Sstever@gmail.com        'simd64/integer/save_and_restore_state.py',
2915341Sstever@gmail.com        'simd64/floating_point/__init__.py',
2925341Sstever@gmail.com        'simd64/floating_point/arithmetic/__init__.py',
2935341Sstever@gmail.com        'simd64/floating_point/arithmetic/subtraction.py',
2942632Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/addition.py',
2955199Sstever@gmail.com        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2963918Ssaidi@eecs.umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
2973918Ssaidi@eecs.umich.edu        'simd64/floating_point/arithmetic/accumulation.py',
2983940Ssaidi@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
2994781Snate@binkert.org        'simd64/floating_point/data_conversion.py',
3004781Snate@binkert.org        'simd64/floating_point/compare/__init__.py',
3013918Ssaidi@eecs.umich.edu        'simd64/floating_point/compare/compare_and_write_mask.py',
3024781Snate@binkert.org        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
3034781Snate@binkert.org        'x87/__init__.py',
3043918Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/__init__.py',
3054781Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3064781Snate@binkert.org        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3073940Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/exchange.py',
3083942Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3093940Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/conditional_move.py',
3103918Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/extract.py',
3113918Ssaidi@eecs.umich.edu        'x87/load_constants/__init__.py',
312955SN/A        'x87/load_constants/load_0_1_or_pi.py',
3131858SN/A        'x87/load_constants/load_logarithm.py',
3143918Ssaidi@eecs.umich.edu        'x87/arithmetic/__init__.py',
3153918Ssaidi@eecs.umich.edu        'x87/arithmetic/subtraction.py',
3163918Ssaidi@eecs.umich.edu        'x87/arithmetic/addition.py',
3173918Ssaidi@eecs.umich.edu        'x87/arithmetic/partial_remainder.py',
3183940Ssaidi@eecs.umich.edu        'x87/arithmetic/multiplication.py',
3193940Ssaidi@eecs.umich.edu        'x87/arithmetic/division.py',
3203918Ssaidi@eecs.umich.edu        'x87/arithmetic/change_sign.py',
3213918Ssaidi@eecs.umich.edu        'x87/arithmetic/round.py',
3223918Ssaidi@eecs.umich.edu        'x87/arithmetic/square_root.py',
3233918Ssaidi@eecs.umich.edu        'x87/transcendental_functions/__init__.py',
3243918Ssaidi@eecs.umich.edu        'x87/transcendental_functions/trigonometric_functions.py',
3253918Ssaidi@eecs.umich.edu        'x87/transcendental_functions/logarithmic_functions.py',
3263918Ssaidi@eecs.umich.edu        'x87/compare_and_test/__init__.py',
3273918Ssaidi@eecs.umich.edu        'x87/compare_and_test/classify.py',
3283918Ssaidi@eecs.umich.edu        'x87/compare_and_test/test.py',
3293940Ssaidi@eecs.umich.edu        'x87/compare_and_test/floating_point_ordered_compare.py',
3303918Ssaidi@eecs.umich.edu        'x87/compare_and_test/floating_point_unordered_compare.py',
3313918Ssaidi@eecs.umich.edu        'x87/compare_and_test/integer_compare.py',
3321851SN/A        'x87/stack_management/__init__.py',
3331851SN/A        'x87/stack_management/stack_control.py',
3341858SN/A        'x87/stack_management/clear_state.py',
3355200Sstever@gmail.com        'x87/control/__init__.py',
336955SN/A        'x87/control/clear_exceptions.py',
3373053Sstever@eecs.umich.edu        'x87/control/initialize.py',
3383053Sstever@eecs.umich.edu        'x87/control/wait_for_exceptions.py',
3393053Sstever@eecs.umich.edu        'x87/control/save_x87_status_word.py',
3403053Sstever@eecs.umich.edu        'x87/control/save_and_restore_x87_control_word.py',
3413053Sstever@eecs.umich.edu        'x87/control/save_and_restore_x87_environment.py',
3423053Sstever@eecs.umich.edu        'x87/no_operation.py'
3433053Sstever@eecs.umich.edu        )
3443053Sstever@eecs.umich.edu
3453053Sstever@eecs.umich.edu
3464742Sstever@eecs.umich.edu    # Add in files generated by the ISA description.
3474742Sstever@eecs.umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
3483053Sstever@eecs.umich.edu    for f in isa_desc_files:
3493053Sstever@eecs.umich.edu        # Add in python file dependencies that won't be caught otherwise
3503053Sstever@eecs.umich.edu        for pyfile in python_files:
3513053Sstever@eecs.umich.edu            env.Depends(f, "isa/insts/%s" % pyfile)
3523053Sstever@eecs.umich.edu        # Only non-header files need to be compiled.
3533053Sstever@eecs.umich.edu        if not f.path.endswith('.hh'):
3543053Sstever@eecs.umich.edu            Source(f)
3553053Sstever@eecs.umich.edu
3563053Sstever@eecs.umich.edu    # Workaround for bug in SCons version > 0.97d20071212
3572667Sstever@eecs.umich.edu    # Scons bug id: 2006 M5 Bug id: 308
3584554Sbinkertn@umich.edu    from os.path import dirname, join as joinpath
3594554Sbinkertn@umich.edu
3602667Sstever@eecs.umich.edu    Dir('isa')
3614554Sbinkertn@umich.edu    Dir('isa/microops')
3624554Sbinkertn@umich.edu    Dir('isa/decoder')
3634554Sbinkertn@umich.edu    Dir('isa/formats')
3644554Sbinkertn@umich.edu    Dir('isa/insts')
3654554Sbinkertn@umich.edu    isa_dirs = set(map(lambda x:dirname(x), python_files))
3664554Sbinkertn@umich.edu    for d in isa_dirs:
3674554Sbinkertn@umich.edu        Dir(joinpath('isa/insts', d))
3684781Snate@binkert.org     
3694554Sbinkertn@umich.edu