SConscript revision 5450
14120Sgblack@eecs.umich.edu# -*- mode:python -*-
24120Sgblack@eecs.umich.edu
34120Sgblack@eecs.umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan
44120Sgblack@eecs.umich.edu# All rights reserved.
54120Sgblack@eecs.umich.edu#
64120Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
74120Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
84120Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
94120Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
104120Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
114120Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
124120Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
134120Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
144120Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
154120Sgblack@eecs.umich.edu# this software without specific prior written permission.
164120Sgblack@eecs.umich.edu#
174120Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184120Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194120Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204120Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214120Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224120Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234120Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244120Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254120Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264120Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274120Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284120Sgblack@eecs.umich.edu#
294120Sgblack@eecs.umich.edu# Authors: Gabe Black
304120Sgblack@eecs.umich.edu
315334Sgblack@eecs.umich.edu# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
324120Sgblack@eecs.umich.edu# All rights reserved.
334120Sgblack@eecs.umich.edu#
344120Sgblack@eecs.umich.edu# Redistribution and use of this software in source and binary forms,
354120Sgblack@eecs.umich.edu# with or without modification, are permitted provided that the
364120Sgblack@eecs.umich.edu# following conditions are met:
374120Sgblack@eecs.umich.edu#
384120Sgblack@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any
394120Sgblack@eecs.umich.edu# use which is NOT directed to receiving any direct monetary
404120Sgblack@eecs.umich.edu# compensation for, or commercial advantage from such use.  Illustrative
414120Sgblack@eecs.umich.edu# examples of non-commercial use are academic research, personal study,
424120Sgblack@eecs.umich.edu# teaching, education and corporate research & development.
434120Sgblack@eecs.umich.edu# Illustrative examples of commercial use are distributing products for
444120Sgblack@eecs.umich.edu# commercial advantage and providing services using the software for
454120Sgblack@eecs.umich.edu# commercial advantage.
464120Sgblack@eecs.umich.edu#
474120Sgblack@eecs.umich.edu# If you wish to use this software or functionality therein that may be
484120Sgblack@eecs.umich.edu# covered by patents for commercial use, please contact:
494120Sgblack@eecs.umich.edu#     Director of Intellectual Property Licensing
504120Sgblack@eecs.umich.edu#     Office of Strategy and Technology
514120Sgblack@eecs.umich.edu#     Hewlett-Packard Company
524120Sgblack@eecs.umich.edu#     1501 Page Mill Road
534120Sgblack@eecs.umich.edu#     Palo Alto, California  94304
544120Sgblack@eecs.umich.edu#
554120Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice,
564120Sgblack@eecs.umich.edu# this list of conditions and the following disclaimer.  Redistributions
574120Sgblack@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
584120Sgblack@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
594120Sgblack@eecs.umich.edu# other materials provided with the distribution.  Neither the name of
604120Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
614120Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
624120Sgblack@eecs.umich.edu# this software without specific prior written permission.  No right of
634120Sgblack@eecs.umich.edu# sublicense is granted herewith.  Derivatives of the software and
644120Sgblack@eecs.umich.edu# output created using the software may be prepared, but only for
654120Sgblack@eecs.umich.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
664120Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of
674120Sgblack@eecs.umich.edu# conditions herein which includes the Non-Commercial Use restrictions;
684120Sgblack@eecs.umich.edu# and (ii) such Derivatives of the software include the above copyright
694120Sgblack@eecs.umich.edu# notice to acknowledge the contribution from this software where
704120Sgblack@eecs.umich.edu# applicable, this list of conditions and the disclaimer below.
714120Sgblack@eecs.umich.edu#
724120Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
734120Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
744120Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
754120Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
764120Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
774120Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
784120Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
794120Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
804120Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
814120Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
824120Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
834120Sgblack@eecs.umich.edu#
844120Sgblack@eecs.umich.edu# Authors: Gabe Black
854120Sgblack@eecs.umich.edu
864202Sbinkertn@umich.eduImport('*')
875069Sgblack@eecs.umich.edu
884202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'x86':
894601Sgblack@eecs.umich.edu    Source('emulenv.cc')
904202Sbinkertn@umich.edu    Source('floatregfile.cc')
915124Sgblack@eecs.umich.edu    Source('faults.cc')
925083Sgblack@eecs.umich.edu    Source('insts/microfpop.cc')
934679Sgblack@eecs.umich.edu    Source('insts/microldstop.cc')
945083Sgblack@eecs.umich.edu    Source('insts/microop.cc')
954679Sgblack@eecs.umich.edu    Source('insts/microregop.cc')
964679Sgblack@eecs.umich.edu    Source('insts/static_inst.cc')
974202Sbinkertn@umich.edu    Source('intregfile.cc')
984202Sbinkertn@umich.edu    Source('miscregfile.cc')
995124Sgblack@eecs.umich.edu    Source('pagetable.cc')
1004249Sgblack@eecs.umich.edu    Source('predecoder.cc')
1014240Sgblack@eecs.umich.edu    Source('predecoder_tables.cc')
1024202Sbinkertn@umich.edu    Source('regfile.cc')
1034202Sbinkertn@umich.edu    Source('remote_gdb.cc')
1044997Sgblack@eecs.umich.edu    Source('tlb.cc')
1055135Sgblack@eecs.umich.edu    Source('utility.cc')
1064997Sgblack@eecs.umich.edu
1074997Sgblack@eecs.umich.edu    SimObject('X86TLB.py')
1085192Ssaidi@eecs.umich.edu    TraceFlag('Predecoder')
1095192Ssaidi@eecs.umich.edu    TraceFlag('X86')
1104120Sgblack@eecs.umich.edu
1114202Sbinkertn@umich.edu    if env['FULL_SYSTEM']:
1125132Sgblack@eecs.umich.edu        SimObject('X86System.py')
1135450Sgblack@eecs.umich.edu        SimObject('bios/E820.py')
1145132Sgblack@eecs.umich.edu
1154202Sbinkertn@umich.edu        # Full-system sources
1165450Sgblack@eecs.umich.edu        Source('bios/e820.cc')
1175299Sgblack@eecs.umich.edu        Source('linux/system.cc')
1185245Sgblack@eecs.umich.edu        Source('pagetable_walker.cc')
1195334Sgblack@eecs.umich.edu	Source('smbios.cc')
1205132Sgblack@eecs.umich.edu        Source('system.cc')
1215086Sgblack@eecs.umich.edu        Source('stacktrace.cc')
1225086Sgblack@eecs.umich.edu        Source('vtophys.cc')
1234202Sbinkertn@umich.edu    else:
1244202Sbinkertn@umich.edu        Source('process.cc')
1254120Sgblack@eecs.umich.edu
1264202Sbinkertn@umich.edu        Source('linux/linux.cc')
1274202Sbinkertn@umich.edu        Source('linux/process.cc')
1284202Sbinkertn@umich.edu        Source('linux/syscalls.cc')
1294120Sgblack@eecs.umich.edu
1305069Sgblack@eecs.umich.edu    python_files = (
1315081Sgblack@eecs.umich.edu        '__init__.py',
1325081Sgblack@eecs.umich.edu        'general_purpose/__init__.py',
1335081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/__init__.py',
1345081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/add_and_subtract.py',
1355081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/increment_and_decrement.py',
1365081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/multiply_and_divide.py',
1375081Sgblack@eecs.umich.edu        'general_purpose/cache_and_memory_management.py',
1385081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/__init__.py',
1395081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bit_scan.py',
1405081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bit_test.py',
1415081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bounds.py',
1425081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/compare.py',
1435081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/set_byte_on_condition.py',
1445081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/test.py',
1455081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/__init__.py',
1465081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/call.py',
1475081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/conditional_jump.py',
1485081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1495081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/jump.py',
1505081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/loop.py',
1515081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/xreturn.py',
1525081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/__init__.py',
1535081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/ascii_adjust.py',
1545081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/bcd_adjust.py',
1555081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/endian_conversion.py',
1565081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/extract_sign_mask.py',
1575081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/sign_extension.py',
1585081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/translate.py',
1595081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/__init__.py',
1605081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/conditional_move.py',
1615081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/move.py',
1625081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/stack_operations.py',
1635081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/xchg.py',
1645081Sgblack@eecs.umich.edu        'general_purpose/flags/__init__.py',
1655081Sgblack@eecs.umich.edu        'general_purpose/flags/load_and_store.py',
1665081Sgblack@eecs.umich.edu        'general_purpose/flags/push_and_pop.py',
1675081Sgblack@eecs.umich.edu        'general_purpose/flags/set_and_clear.py',
1685081Sgblack@eecs.umich.edu        'general_purpose/input_output/__init__.py',
1695081Sgblack@eecs.umich.edu        'general_purpose/input_output/general_io.py',
1705081Sgblack@eecs.umich.edu        'general_purpose/input_output/string_io.py',
1715081Sgblack@eecs.umich.edu        'general_purpose/load_effective_address.py',
1725081Sgblack@eecs.umich.edu        'general_purpose/load_segment_registers.py',
1735081Sgblack@eecs.umich.edu        'general_purpose/logical.py',
1745081Sgblack@eecs.umich.edu        'general_purpose/no_operation.py',
1755081Sgblack@eecs.umich.edu        'general_purpose/processor_information.py',
1765081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/__init__.py',
1775081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/rotate.py',
1785081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/shift.py',
1795081Sgblack@eecs.umich.edu        'general_purpose/semaphores.py',
1805081Sgblack@eecs.umich.edu        'general_purpose/string/__init__.py',
1815081Sgblack@eecs.umich.edu        'general_purpose/string/compare_strings.py',
1825081Sgblack@eecs.umich.edu        'general_purpose/string/load_string.py',
1835081Sgblack@eecs.umich.edu        'general_purpose/string/move_string.py',
1845081Sgblack@eecs.umich.edu        'general_purpose/string/scan_string.py',
1855081Sgblack@eecs.umich.edu        'general_purpose/string/store_string.py',
1865081Sgblack@eecs.umich.edu        'general_purpose/system_calls.py',
1875081Sgblack@eecs.umich.edu        'system/__init__.py',
1885173Sgblack@eecs.umich.edu        'system/halt.py',
1895359Sgblack@eecs.umich.edu        'system/invlpg.py',
1905081Sgblack@eecs.umich.edu        'system/undefined_operation.py',
1915149Sgblack@eecs.umich.edu        'system/msrs.py',
1925298Sgblack@eecs.umich.edu        'system/segmentation.py',
1935081Sgblack@eecs.umich.edu        'simd128/__init__.py',
1945081Sgblack@eecs.umich.edu        'simd128/integer/__init__.py',
1955081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/__init__.py',
1965081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move.py',
1975081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move_non_temporal.py',
1985081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move_mask.py',
1995081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/__init__.py',
2005081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
2015081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
2025081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
2035081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/__init__.py',
2045081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/unpack_and_interleave.py',
2055081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/pack_with_saturation.py',
2065081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/extract_and_insert.py',
2075081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/shuffle.py',
2085081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/__init__.py',
2095081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/subtraction.py',
2105081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/addition.py',
2115081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/multiplication.py',
2125081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/multiply_add.py',
2135081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/average.py',
2145081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
2155081Sgblack@eecs.umich.edu        'simd128/integer/shift/__init__.py',
2165081Sgblack@eecs.umich.edu        'simd128/integer/shift/right_arithmetic_shift.py',
2175081Sgblack@eecs.umich.edu        'simd128/integer/shift/left_logical_shift.py',
2185081Sgblack@eecs.umich.edu        'simd128/integer/shift/right_logical_shift.py',
2195081Sgblack@eecs.umich.edu        'simd128/integer/compare/__init__.py',
2205081Sgblack@eecs.umich.edu        'simd128/integer/compare/compare_and_write_mask.py',
2215081Sgblack@eecs.umich.edu        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2225081Sgblack@eecs.umich.edu        'simd128/integer/logical/__init__.py',
2235081Sgblack@eecs.umich.edu        'simd128/integer/logical/pand.py',
2245081Sgblack@eecs.umich.edu        'simd128/integer/logical/por.py',
2255081Sgblack@eecs.umich.edu        'simd128/integer/logical/exclusive_or.py',
2265081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
2275081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2285081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2295081Sgblack@eecs.umich.edu        'simd128/floating_point/__init__.py',
2305081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/__init__.py',
2315081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_mask.py',
2325081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move.py',
2335081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_with_duplication.py',
2345081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_non_temporal.py',
2355081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/__init__.py',
2365081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2375081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2385081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2395081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2405081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/__init__.py',
2415081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2425081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/shuffle.py',
2435081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/__init__.py',
2445081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/subtraction.py',
2455081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/addition.py',
2465081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2475081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_addition.py',
2485081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/square_root.py',
2495081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2505081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/multiplication.py',
2515081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/division.py',
2525081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2535081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2545081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/__init__.py',
2555081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_mask.py',
2565081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_rflags.py',
2575081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2585081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/__init__.py',
2595081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/andp.py',
2605081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/orp.py',
2615081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/exclusive_or.py',
2625081Sgblack@eecs.umich.edu        'simd64/__init__.py',
2635081Sgblack@eecs.umich.edu        'simd64/integer/__init__.py',
2645081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/__init__.py',
2655081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move_mask.py',
2665081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move.py',
2675081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move_non_temporal.py',
2685081Sgblack@eecs.umich.edu        'simd64/integer/exit_media_state.py',
2695081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/__init__.py',
2705081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/unpack_and_interleave.py',
2715081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/pack_with_saturation.py',
2725081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/extract_and_insert.py',
2735081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/shuffle_and_swap.py',
2745081Sgblack@eecs.umich.edu        'simd64/integer/data_conversion.py',
2755081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/__init__.py',
2765081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/subtraction.py',
2775081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/addition.py',
2785081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/multiplication.py',
2795081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/multiply_add.py',
2805081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/average.py',
2815081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2825081Sgblack@eecs.umich.edu        'simd64/integer/shift/__init__.py',
2835081Sgblack@eecs.umich.edu        'simd64/integer/shift/right_arithmetic_shift.py',
2845081Sgblack@eecs.umich.edu        'simd64/integer/shift/left_logical_shift.py',
2855081Sgblack@eecs.umich.edu        'simd64/integer/shift/right_logical_shift.py',
2865081Sgblack@eecs.umich.edu        'simd64/integer/compare/__init__.py',
2875081Sgblack@eecs.umich.edu        'simd64/integer/compare/compare_and_write_mask.py',
2885081Sgblack@eecs.umich.edu        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2895081Sgblack@eecs.umich.edu        'simd64/integer/logical/__init__.py',
2905081Sgblack@eecs.umich.edu        'simd64/integer/logical/pand.py',
2915081Sgblack@eecs.umich.edu        'simd64/integer/logical/por.py',
2925081Sgblack@eecs.umich.edu        'simd64/integer/logical/exclusive_or.py',
2935081Sgblack@eecs.umich.edu        'simd64/integer/save_and_restore_state.py',
2945081Sgblack@eecs.umich.edu        'simd64/floating_point/__init__.py',
2955081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/__init__.py',
2965081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
2975081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/addition.py',
2985081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2995081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
3005081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/accumulation.py',
3015081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
3025081Sgblack@eecs.umich.edu        'simd64/floating_point/data_conversion.py',
3035081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/__init__.py',
3045081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/compare_and_write_mask.py',
3055081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
3065081Sgblack@eecs.umich.edu        'x87/__init__.py',
3075081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/__init__.py',
3085081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3095081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3105081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/exchange.py',
3115081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3125081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/conditional_move.py',
3135081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/extract.py',
3145081Sgblack@eecs.umich.edu        'x87/load_constants/__init__.py',
3155081Sgblack@eecs.umich.edu        'x87/load_constants/load_0_1_or_pi.py',
3165081Sgblack@eecs.umich.edu        'x87/load_constants/load_logarithm.py',
3175081Sgblack@eecs.umich.edu        'x87/arithmetic/__init__.py',
3185081Sgblack@eecs.umich.edu        'x87/arithmetic/subtraction.py',
3195081Sgblack@eecs.umich.edu        'x87/arithmetic/addition.py',
3205081Sgblack@eecs.umich.edu        'x87/arithmetic/partial_remainder.py',
3215081Sgblack@eecs.umich.edu        'x87/arithmetic/multiplication.py',
3225081Sgblack@eecs.umich.edu        'x87/arithmetic/division.py',
3235081Sgblack@eecs.umich.edu        'x87/arithmetic/change_sign.py',
3245081Sgblack@eecs.umich.edu        'x87/arithmetic/round.py',
3255081Sgblack@eecs.umich.edu        'x87/arithmetic/square_root.py',
3265081Sgblack@eecs.umich.edu        'x87/transcendental_functions/__init__.py',
3275081Sgblack@eecs.umich.edu        'x87/transcendental_functions/trigonometric_functions.py',
3285081Sgblack@eecs.umich.edu        'x87/transcendental_functions/logarithmic_functions.py',
3295081Sgblack@eecs.umich.edu        'x87/compare_and_test/__init__.py',
3305081Sgblack@eecs.umich.edu        'x87/compare_and_test/classify.py',
3315081Sgblack@eecs.umich.edu        'x87/compare_and_test/test.py',
3325081Sgblack@eecs.umich.edu        'x87/compare_and_test/floating_point_ordered_compare.py',
3335081Sgblack@eecs.umich.edu        'x87/compare_and_test/floating_point_unordered_compare.py',
3345081Sgblack@eecs.umich.edu        'x87/compare_and_test/integer_compare.py',
3355081Sgblack@eecs.umich.edu        'x87/stack_management/__init__.py',
3365081Sgblack@eecs.umich.edu        'x87/stack_management/stack_control.py',
3375081Sgblack@eecs.umich.edu        'x87/stack_management/clear_state.py',
3385081Sgblack@eecs.umich.edu        'x87/control/__init__.py',
3395081Sgblack@eecs.umich.edu        'x87/control/clear_exceptions.py',
3405081Sgblack@eecs.umich.edu        'x87/control/initialize.py',
3415081Sgblack@eecs.umich.edu        'x87/control/wait_for_exceptions.py',
3425081Sgblack@eecs.umich.edu        'x87/control/save_x87_status_word.py',
3435081Sgblack@eecs.umich.edu        'x87/control/save_and_restore_x87_control_word.py',
3445081Sgblack@eecs.umich.edu        'x87/control/save_and_restore_x87_environment.py',
3455081Sgblack@eecs.umich.edu        'x87/no_operation.py'
3465081Sgblack@eecs.umich.edu        )
3475081Sgblack@eecs.umich.edu
3485069Sgblack@eecs.umich.edu
3494202Sbinkertn@umich.edu    # Add in files generated by the ISA description.
3504202Sbinkertn@umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
3514202Sbinkertn@umich.edu    for f in isa_desc_files:
3525069Sgblack@eecs.umich.edu        # Add in python file dependencies that won't be caught otherwise
3535069Sgblack@eecs.umich.edu        for pyfile in python_files:
3545069Sgblack@eecs.umich.edu            env.Depends(f, "isa/insts/%s" % pyfile)
3555069Sgblack@eecs.umich.edu        # Only non-header files need to be compiled.
3564202Sbinkertn@umich.edu        if not f.path.endswith('.hh'):
3574202Sbinkertn@umich.edu            Source(f)
3585406Ssaidi@eecs.umich.edu
3595406Ssaidi@eecs.umich.edu    # Workaround for bug in SCons version > 0.97d20071212
3605406Ssaidi@eecs.umich.edu    # Scons bug id: 2006 M5 Bug id: 308
3615406Ssaidi@eecs.umich.edu    from os.path import dirname, join as joinpath
3625406Ssaidi@eecs.umich.edu
3635406Ssaidi@eecs.umich.edu    Dir('isa')
3645406Ssaidi@eecs.umich.edu    Dir('isa/microops')
3655406Ssaidi@eecs.umich.edu    Dir('isa/decoder')
3665406Ssaidi@eecs.umich.edu    Dir('isa/formats')
3675406Ssaidi@eecs.umich.edu    Dir('isa/insts')
3685406Ssaidi@eecs.umich.edu    isa_dirs = set(map(lambda x:dirname(x), python_files))
3695406Ssaidi@eecs.umich.edu    for d in isa_dirs:
3705406Ssaidi@eecs.umich.edu        Dir(joinpath('isa/insts', d))
3715406Ssaidi@eecs.umich.edu     
372