SConscript revision 5680
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':
895659Sgblack@eecs.umich.edu    Source('cpuid.cc')
904601Sgblack@eecs.umich.edu    Source('emulenv.cc')
914202Sbinkertn@umich.edu    Source('floatregfile.cc')
925124Sgblack@eecs.umich.edu    Source('faults.cc')
935083Sgblack@eecs.umich.edu    Source('insts/microfpop.cc')
944679Sgblack@eecs.umich.edu    Source('insts/microldstop.cc')
955083Sgblack@eecs.umich.edu    Source('insts/microop.cc')
964679Sgblack@eecs.umich.edu    Source('insts/microregop.cc')
974679Sgblack@eecs.umich.edu    Source('insts/static_inst.cc')
984202Sbinkertn@umich.edu    Source('intregfile.cc')
994202Sbinkertn@umich.edu    Source('miscregfile.cc')
1005124Sgblack@eecs.umich.edu    Source('pagetable.cc')
1014249Sgblack@eecs.umich.edu    Source('predecoder.cc')
1024240Sgblack@eecs.umich.edu    Source('predecoder_tables.cc')
1034202Sbinkertn@umich.edu    Source('regfile.cc')
1044202Sbinkertn@umich.edu    Source('remote_gdb.cc')
1054997Sgblack@eecs.umich.edu    Source('tlb.cc')
1065135Sgblack@eecs.umich.edu    Source('utility.cc')
1074997Sgblack@eecs.umich.edu
1084997Sgblack@eecs.umich.edu    SimObject('X86TLB.py')
1095192Ssaidi@eecs.umich.edu    TraceFlag('Predecoder')
1105192Ssaidi@eecs.umich.edu    TraceFlag('X86')
1114120Sgblack@eecs.umich.edu
1124202Sbinkertn@umich.edu    if env['FULL_SYSTEM']:
1135649Sgblack@eecs.umich.edu        TraceFlag('LocalApic')
1145649Sgblack@eecs.umich.edu
1155647Sgblack@eecs.umich.edu        SimObject('X86LocalApic.py')
1165132Sgblack@eecs.umich.edu        SimObject('X86System.py')
1175132Sgblack@eecs.umich.edu
1184202Sbinkertn@umich.edu        # Full-system sources
1195647Sgblack@eecs.umich.edu        Source('interrupts.cc')
1205299Sgblack@eecs.umich.edu        Source('linux/system.cc')
1215245Sgblack@eecs.umich.edu        Source('pagetable_walker.cc')
1225132Sgblack@eecs.umich.edu        Source('system.cc')
1235086Sgblack@eecs.umich.edu        Source('stacktrace.cc')
1245086Sgblack@eecs.umich.edu        Source('vtophys.cc')
1254202Sbinkertn@umich.edu    else:
1264202Sbinkertn@umich.edu        Source('process.cc')
1274120Sgblack@eecs.umich.edu
1284202Sbinkertn@umich.edu        Source('linux/linux.cc')
1294202Sbinkertn@umich.edu        Source('linux/process.cc')
1304202Sbinkertn@umich.edu        Source('linux/syscalls.cc')
1314120Sgblack@eecs.umich.edu
1325069Sgblack@eecs.umich.edu    python_files = (
1335081Sgblack@eecs.umich.edu        '__init__.py',
1345081Sgblack@eecs.umich.edu        'general_purpose/__init__.py',
1355081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/__init__.py',
1365081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/add_and_subtract.py',
1375081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/increment_and_decrement.py',
1385081Sgblack@eecs.umich.edu        'general_purpose/arithmetic/multiply_and_divide.py',
1395081Sgblack@eecs.umich.edu        'general_purpose/cache_and_memory_management.py',
1405081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/__init__.py',
1415081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bit_scan.py',
1425081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bit_test.py',
1435081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bounds.py',
1445081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/compare.py',
1455081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/set_byte_on_condition.py',
1465081Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/test.py',
1475081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/__init__.py',
1485081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/call.py',
1495081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/conditional_jump.py',
1505081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1515081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/jump.py',
1525081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/loop.py',
1535081Sgblack@eecs.umich.edu        'general_purpose/control_transfer/xreturn.py',
1545081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/__init__.py',
1555081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/ascii_adjust.py',
1565081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/bcd_adjust.py',
1575081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/endian_conversion.py',
1585081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/extract_sign_mask.py',
1595081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/sign_extension.py',
1605081Sgblack@eecs.umich.edu        'general_purpose/data_conversion/translate.py',
1615081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/__init__.py',
1625081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/conditional_move.py',
1635081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/move.py',
1645081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/stack_operations.py',
1655081Sgblack@eecs.umich.edu        'general_purpose/data_transfer/xchg.py',
1665081Sgblack@eecs.umich.edu        'general_purpose/flags/__init__.py',
1675081Sgblack@eecs.umich.edu        'general_purpose/flags/load_and_store.py',
1685081Sgblack@eecs.umich.edu        'general_purpose/flags/push_and_pop.py',
1695081Sgblack@eecs.umich.edu        'general_purpose/flags/set_and_clear.py',
1705081Sgblack@eecs.umich.edu        'general_purpose/input_output/__init__.py',
1715081Sgblack@eecs.umich.edu        'general_purpose/input_output/general_io.py',
1725081Sgblack@eecs.umich.edu        'general_purpose/input_output/string_io.py',
1735081Sgblack@eecs.umich.edu        'general_purpose/load_effective_address.py',
1745081Sgblack@eecs.umich.edu        'general_purpose/load_segment_registers.py',
1755081Sgblack@eecs.umich.edu        'general_purpose/logical.py',
1765081Sgblack@eecs.umich.edu        'general_purpose/no_operation.py',
1775081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/__init__.py',
1785081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/rotate.py',
1795081Sgblack@eecs.umich.edu        'general_purpose/rotate_and_shift/shift.py',
1805081Sgblack@eecs.umich.edu        'general_purpose/semaphores.py',
1815081Sgblack@eecs.umich.edu        'general_purpose/string/__init__.py',
1825081Sgblack@eecs.umich.edu        'general_purpose/string/compare_strings.py',
1835081Sgblack@eecs.umich.edu        'general_purpose/string/load_string.py',
1845081Sgblack@eecs.umich.edu        'general_purpose/string/move_string.py',
1855081Sgblack@eecs.umich.edu        'general_purpose/string/scan_string.py',
1865081Sgblack@eecs.umich.edu        'general_purpose/string/store_string.py',
1875081Sgblack@eecs.umich.edu        'general_purpose/system_calls.py',
1885680Sgblack@eecs.umich.edu        'romutil.py',
1895081Sgblack@eecs.umich.edu        'system/__init__.py',
1905173Sgblack@eecs.umich.edu        'system/halt.py',
1915359Sgblack@eecs.umich.edu        'system/invlpg.py',
1925081Sgblack@eecs.umich.edu        'system/undefined_operation.py',
1935149Sgblack@eecs.umich.edu        'system/msrs.py',
1945298Sgblack@eecs.umich.edu        'system/segmentation.py',
1955081Sgblack@eecs.umich.edu        'simd128/__init__.py',
1965081Sgblack@eecs.umich.edu        'simd128/integer/__init__.py',
1975081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/__init__.py',
1985081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move.py',
1995081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move_non_temporal.py',
2005081Sgblack@eecs.umich.edu        'simd128/integer/data_transfer/move_mask.py',
2015081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/__init__.py',
2025081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
2035081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
2045081Sgblack@eecs.umich.edu        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
2055081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/__init__.py',
2065081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/unpack_and_interleave.py',
2075081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/pack_with_saturation.py',
2085081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/extract_and_insert.py',
2095081Sgblack@eecs.umich.edu        'simd128/integer/data_reordering/shuffle.py',
2105081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/__init__.py',
2115081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/subtraction.py',
2125081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/addition.py',
2135081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/multiplication.py',
2145081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/multiply_add.py',
2155081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/average.py',
2165081Sgblack@eecs.umich.edu        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
2175081Sgblack@eecs.umich.edu        'simd128/integer/shift/__init__.py',
2185081Sgblack@eecs.umich.edu        'simd128/integer/shift/right_arithmetic_shift.py',
2195081Sgblack@eecs.umich.edu        'simd128/integer/shift/left_logical_shift.py',
2205081Sgblack@eecs.umich.edu        'simd128/integer/shift/right_logical_shift.py',
2215081Sgblack@eecs.umich.edu        'simd128/integer/compare/__init__.py',
2225081Sgblack@eecs.umich.edu        'simd128/integer/compare/compare_and_write_mask.py',
2235081Sgblack@eecs.umich.edu        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2245081Sgblack@eecs.umich.edu        'simd128/integer/logical/__init__.py',
2255081Sgblack@eecs.umich.edu        'simd128/integer/logical/pand.py',
2265081Sgblack@eecs.umich.edu        'simd128/integer/logical/por.py',
2275081Sgblack@eecs.umich.edu        'simd128/integer/logical/exclusive_or.py',
2285081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
2295081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2305081Sgblack@eecs.umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2315081Sgblack@eecs.umich.edu        'simd128/floating_point/__init__.py',
2325081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/__init__.py',
2335081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_mask.py',
2345081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move.py',
2355081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_with_duplication.py',
2365081Sgblack@eecs.umich.edu        'simd128/floating_point/data_transfer/move_non_temporal.py',
2375081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/__init__.py',
2385081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2395081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2405081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2415081Sgblack@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2425081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/__init__.py',
2435081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2445081Sgblack@eecs.umich.edu        'simd128/floating_point/data_reordering/shuffle.py',
2455081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/__init__.py',
2465081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/subtraction.py',
2475081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/addition.py',
2485081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2495081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_addition.py',
2505081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/square_root.py',
2515081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2525081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/multiplication.py',
2535081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/division.py',
2545081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2555081Sgblack@eecs.umich.edu        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2565081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/__init__.py',
2575081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_mask.py',
2585081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_rflags.py',
2595081Sgblack@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2605081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/__init__.py',
2615081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/andp.py',
2625081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/orp.py',
2635081Sgblack@eecs.umich.edu        'simd128/floating_point/logical/exclusive_or.py',
2645081Sgblack@eecs.umich.edu        'simd64/__init__.py',
2655081Sgblack@eecs.umich.edu        'simd64/integer/__init__.py',
2665081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/__init__.py',
2675081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move_mask.py',
2685081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move.py',
2695081Sgblack@eecs.umich.edu        'simd64/integer/data_transfer/move_non_temporal.py',
2705081Sgblack@eecs.umich.edu        'simd64/integer/exit_media_state.py',
2715081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/__init__.py',
2725081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/unpack_and_interleave.py',
2735081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/pack_with_saturation.py',
2745081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/extract_and_insert.py',
2755081Sgblack@eecs.umich.edu        'simd64/integer/data_reordering/shuffle_and_swap.py',
2765081Sgblack@eecs.umich.edu        'simd64/integer/data_conversion.py',
2775081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/__init__.py',
2785081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/subtraction.py',
2795081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/addition.py',
2805081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/multiplication.py',
2815081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/multiply_add.py',
2825081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/average.py',
2835081Sgblack@eecs.umich.edu        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2845081Sgblack@eecs.umich.edu        'simd64/integer/shift/__init__.py',
2855081Sgblack@eecs.umich.edu        'simd64/integer/shift/right_arithmetic_shift.py',
2865081Sgblack@eecs.umich.edu        'simd64/integer/shift/left_logical_shift.py',
2875081Sgblack@eecs.umich.edu        'simd64/integer/shift/right_logical_shift.py',
2885081Sgblack@eecs.umich.edu        'simd64/integer/compare/__init__.py',
2895081Sgblack@eecs.umich.edu        'simd64/integer/compare/compare_and_write_mask.py',
2905081Sgblack@eecs.umich.edu        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2915081Sgblack@eecs.umich.edu        'simd64/integer/logical/__init__.py',
2925081Sgblack@eecs.umich.edu        'simd64/integer/logical/pand.py',
2935081Sgblack@eecs.umich.edu        'simd64/integer/logical/por.py',
2945081Sgblack@eecs.umich.edu        'simd64/integer/logical/exclusive_or.py',
2955081Sgblack@eecs.umich.edu        'simd64/integer/save_and_restore_state.py',
2965081Sgblack@eecs.umich.edu        'simd64/floating_point/__init__.py',
2975081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/__init__.py',
2985081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
2995081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/addition.py',
3005081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
3015081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
3025081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/accumulation.py',
3035081Sgblack@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
3045081Sgblack@eecs.umich.edu        'simd64/floating_point/data_conversion.py',
3055081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/__init__.py',
3065081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/compare_and_write_mask.py',
3075081Sgblack@eecs.umich.edu        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
3085081Sgblack@eecs.umich.edu        'x87/__init__.py',
3095081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/__init__.py',
3105081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3115081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3125081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/exchange.py',
3135081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3145081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/conditional_move.py',
3155081Sgblack@eecs.umich.edu        'x87/data_transfer_and_conversion/extract.py',
3165081Sgblack@eecs.umich.edu        'x87/load_constants/__init__.py',
3175081Sgblack@eecs.umich.edu        'x87/load_constants/load_0_1_or_pi.py',
3185081Sgblack@eecs.umich.edu        'x87/load_constants/load_logarithm.py',
3195081Sgblack@eecs.umich.edu        'x87/arithmetic/__init__.py',
3205081Sgblack@eecs.umich.edu        'x87/arithmetic/subtraction.py',
3215081Sgblack@eecs.umich.edu        'x87/arithmetic/addition.py',
3225081Sgblack@eecs.umich.edu        'x87/arithmetic/partial_remainder.py',
3235081Sgblack@eecs.umich.edu        'x87/arithmetic/multiplication.py',
3245081Sgblack@eecs.umich.edu        'x87/arithmetic/division.py',
3255081Sgblack@eecs.umich.edu        'x87/arithmetic/change_sign.py',
3265081Sgblack@eecs.umich.edu        'x87/arithmetic/round.py',
3275081Sgblack@eecs.umich.edu        'x87/arithmetic/square_root.py',
3285081Sgblack@eecs.umich.edu        'x87/transcendental_functions/__init__.py',
3295081Sgblack@eecs.umich.edu        'x87/transcendental_functions/trigonometric_functions.py',
3305081Sgblack@eecs.umich.edu        'x87/transcendental_functions/logarithmic_functions.py',
3315081Sgblack@eecs.umich.edu        'x87/compare_and_test/__init__.py',
3325081Sgblack@eecs.umich.edu        'x87/compare_and_test/classify.py',
3335081Sgblack@eecs.umich.edu        'x87/compare_and_test/test.py',
3345081Sgblack@eecs.umich.edu        'x87/compare_and_test/floating_point_ordered_compare.py',
3355081Sgblack@eecs.umich.edu        'x87/compare_and_test/floating_point_unordered_compare.py',
3365081Sgblack@eecs.umich.edu        'x87/compare_and_test/integer_compare.py',
3375081Sgblack@eecs.umich.edu        'x87/stack_management/__init__.py',
3385081Sgblack@eecs.umich.edu        'x87/stack_management/stack_control.py',
3395081Sgblack@eecs.umich.edu        'x87/stack_management/clear_state.py',
3405081Sgblack@eecs.umich.edu        'x87/control/__init__.py',
3415081Sgblack@eecs.umich.edu        'x87/control/clear_exceptions.py',
3425081Sgblack@eecs.umich.edu        'x87/control/initialize.py',
3435081Sgblack@eecs.umich.edu        'x87/control/wait_for_exceptions.py',
3445081Sgblack@eecs.umich.edu        'x87/control/save_x87_status_word.py',
3455081Sgblack@eecs.umich.edu        'x87/control/save_and_restore_x87_control_word.py',
3465081Sgblack@eecs.umich.edu        'x87/control/save_and_restore_x87_environment.py',
3475081Sgblack@eecs.umich.edu        'x87/no_operation.py'
3485081Sgblack@eecs.umich.edu        )
3495081Sgblack@eecs.umich.edu
3505069Sgblack@eecs.umich.edu
3514202Sbinkertn@umich.edu    # Add in files generated by the ISA description.
3524202Sbinkertn@umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
3534202Sbinkertn@umich.edu    for f in isa_desc_files:
3545069Sgblack@eecs.umich.edu        # Add in python file dependencies that won't be caught otherwise
3555069Sgblack@eecs.umich.edu        for pyfile in python_files:
3565069Sgblack@eecs.umich.edu            env.Depends(f, "isa/insts/%s" % pyfile)
3575069Sgblack@eecs.umich.edu        # Only non-header files need to be compiled.
3584202Sbinkertn@umich.edu        if not f.path.endswith('.hh'):
3594202Sbinkertn@umich.edu            Source(f)
3605406Ssaidi@eecs.umich.edu
3615406Ssaidi@eecs.umich.edu    # Workaround for bug in SCons version > 0.97d20071212
3625406Ssaidi@eecs.umich.edu    # Scons bug id: 2006 M5 Bug id: 308
3635406Ssaidi@eecs.umich.edu    from os.path import dirname, join as joinpath
3645406Ssaidi@eecs.umich.edu
3655406Ssaidi@eecs.umich.edu    Dir('isa')
3665406Ssaidi@eecs.umich.edu    Dir('isa/microops')
3675406Ssaidi@eecs.umich.edu    Dir('isa/decoder')
3685406Ssaidi@eecs.umich.edu    Dir('isa/formats')
3695406Ssaidi@eecs.umich.edu    Dir('isa/insts')
3705406Ssaidi@eecs.umich.edu    isa_dirs = set(map(lambda x:dirname(x), python_files))
3715406Ssaidi@eecs.umich.edu    for d in isa_dirs:
3725406Ssaidi@eecs.umich.edu        Dir(joinpath('isa/insts', d))
3735406Ssaidi@eecs.umich.edu     
374