SConscript revision 8775
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# The license below extends only to copyright in the software and shall
7955SN/A# not be construed as granting a license to any other intellectual
8955SN/A# property including but not limited to intellectual property relating
9955SN/A# to a hardware implementation of the functionality of the software
10955SN/A# licensed hereunder.  You may use the software subject to the license
11955SN/A# terms below provided that you ensure that this notice is replicated
12955SN/A# unmodified and in its entirety in all distributions of the software,
13955SN/A# modified or unmodified, in source code or in binary form.
14955SN/A#
15955SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
16955SN/A# All rights reserved.
17955SN/A#
18955SN/A# Redistribution and use in source and binary forms, with or without
19955SN/A# modification, are permitted provided that the following conditions are
20955SN/A# met: redistributions of source code must retain the above copyright
21955SN/A# notice, this list of conditions and the following disclaimer;
22955SN/A# redistributions in binary form must reproduce the above copyright
23955SN/A# notice, this list of conditions and the following disclaimer in the
24955SN/A# documentation and/or other materials provided with the distribution;
25955SN/A# neither the name of the copyright holders nor the names of its
26955SN/A# contributors may be used to endorse or promote products derived from
27955SN/A# this software without specific prior written permission.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
315522Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
326143Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
334762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
345522Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
365522Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
385522Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
405742Snate@binkert.org#
41955SN/A# Authors: Gabe Black
424381Sbinkertn@umich.edu
434381Sbinkertn@umich.eduImport('*')
448334Snate@binkert.org
45955SN/Aif env['TARGET_ISA'] == 'x86':
46955SN/A    Source('cpuid.cc')
474202Sbinkertn@umich.edu    Source('emulenv.cc')
48955SN/A    Source('faults.cc')
494382Sbinkertn@umich.edu    Source('insts/badmicroop.cc')
504382Sbinkertn@umich.edu    Source('insts/microfpop.cc')
514382Sbinkertn@umich.edu    Source('insts/microldstop.cc')
526654Snate@binkert.org    Source('insts/micromediaop.cc')
535517Snate@binkert.org    Source('insts/microop.cc')
548614Sgblack@eecs.umich.edu    Source('insts/microregop.cc')
557674Snate@binkert.org    Source('insts/static_inst.cc')
566143Snate@binkert.org    Source('interrupts.cc')
576143Snate@binkert.org    Source('isa.cc')
586143Snate@binkert.org    Source('linux/linux.cc')
598233Snate@binkert.org    Source('linux/process.cc')
608233Snate@binkert.org    Source('linux/syscalls.cc')
618233Snate@binkert.org    Source('linux/system.cc')
628233Snate@binkert.org    Source('nativetrace.cc')
638233Snate@binkert.org    Source('pagetable.cc')
648334Snate@binkert.org    Source('pagetable_walker.cc')
658334Snate@binkert.org    Source('predecoder.cc')
668233Snate@binkert.org    Source('predecoder_tables.cc')
678233Snate@binkert.org    Source('process.cc')
688233Snate@binkert.org    Source('remote_gdb.cc')
698233Snate@binkert.org    Source('stacktrace.cc')
708233Snate@binkert.org    Source('system.cc')
718233Snate@binkert.org    Source('tlb.cc')
726143Snate@binkert.org    Source('types.cc')
738233Snate@binkert.org    Source('utility.cc')
748233Snate@binkert.org    Source('vtophys.cc')
758233Snate@binkert.org
766143Snate@binkert.org    SimObject('X86LocalApic.py')
776143Snate@binkert.org    SimObject('X86NativeTrace.py')
786143Snate@binkert.org    SimObject('X86System.py')
796143Snate@binkert.org    SimObject('X86TLB.py')
808233Snate@binkert.org
818233Snate@binkert.org    DebugFlag('Faults', "Trace all faults/exceptions/traps")
828233Snate@binkert.org    DebugFlag('LocalApic', "Local APIC debugging")
836143Snate@binkert.org    DebugFlag('PageTableWalker', \
848233Snate@binkert.org              "Page table walker state machine debugging")
858233Snate@binkert.org    DebugFlag('Predecoder', "Predecoder debug output")
868233Snate@binkert.org    DebugFlag('X86', "Generic X86 ISA debugging")
878233Snate@binkert.org
886143Snate@binkert.org    python_files = (
896143Snate@binkert.org        '__init__.py',
906143Snate@binkert.org        'general_purpose/__init__.py',
914762Snate@binkert.org        'general_purpose/arithmetic/__init__.py',
926143Snate@binkert.org        'general_purpose/arithmetic/add_and_subtract.py',
938233Snate@binkert.org        'general_purpose/arithmetic/increment_and_decrement.py',
948233Snate@binkert.org        'general_purpose/arithmetic/multiply_and_divide.py',
958233Snate@binkert.org        'general_purpose/cache_and_memory_management.py',
968233Snate@binkert.org        'general_purpose/compare_and_test/__init__.py',
978233Snate@binkert.org        'general_purpose/compare_and_test/bit_scan.py',
986143Snate@binkert.org        'general_purpose/compare_and_test/bit_test.py',
998233Snate@binkert.org        'general_purpose/compare_and_test/bounds.py',
1008233Snate@binkert.org        'general_purpose/compare_and_test/compare.py',
1018233Snate@binkert.org        'general_purpose/compare_and_test/set_byte_on_condition.py',
1028233Snate@binkert.org        'general_purpose/compare_and_test/test.py',
1036143Snate@binkert.org        'general_purpose/control_transfer/__init__.py',
1046143Snate@binkert.org        'general_purpose/control_transfer/call.py',
1056143Snate@binkert.org        'general_purpose/control_transfer/conditional_jump.py',
1066143Snate@binkert.org        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1076143Snate@binkert.org        'general_purpose/control_transfer/jump.py',
1086143Snate@binkert.org        'general_purpose/control_transfer/loop.py',
1096143Snate@binkert.org        'general_purpose/control_transfer/xreturn.py',
1106143Snate@binkert.org        'general_purpose/data_conversion/__init__.py',
1116143Snate@binkert.org        'general_purpose/data_conversion/ascii_adjust.py',
1127065Snate@binkert.org        'general_purpose/data_conversion/bcd_adjust.py',
1136143Snate@binkert.org        'general_purpose/data_conversion/endian_conversion.py',
1148233Snate@binkert.org        'general_purpose/data_conversion/extract_sign_mask.py',
1158233Snate@binkert.org        'general_purpose/data_conversion/sign_extension.py',
1168233Snate@binkert.org        'general_purpose/data_conversion/translate.py',
1178233Snate@binkert.org        'general_purpose/data_transfer/__init__.py',
1188233Snate@binkert.org        'general_purpose/data_transfer/conditional_move.py',
1198233Snate@binkert.org        'general_purpose/data_transfer/move.py',
1208233Snate@binkert.org        'general_purpose/data_transfer/stack_operations.py',
1218233Snate@binkert.org        'general_purpose/data_transfer/xchg.py',
1228233Snate@binkert.org        'general_purpose/flags/__init__.py',
1238233Snate@binkert.org        'general_purpose/flags/load_and_store.py',
1248233Snate@binkert.org        'general_purpose/flags/push_and_pop.py',
1258233Snate@binkert.org        'general_purpose/flags/set_and_clear.py',
1268233Snate@binkert.org        'general_purpose/input_output/__init__.py',
1278233Snate@binkert.org        'general_purpose/input_output/general_io.py',
1288233Snate@binkert.org        'general_purpose/input_output/string_io.py',
1298233Snate@binkert.org        'general_purpose/load_effective_address.py',
1308233Snate@binkert.org        'general_purpose/load_segment_registers.py',
1318233Snate@binkert.org        'general_purpose/logical.py',
1328233Snate@binkert.org        'general_purpose/no_operation.py',
1338233Snate@binkert.org        'general_purpose/rotate_and_shift/__init__.py',
1348233Snate@binkert.org        'general_purpose/rotate_and_shift/rotate.py',
1358233Snate@binkert.org        'general_purpose/rotate_and_shift/shift.py',
1368233Snate@binkert.org        'general_purpose/semaphores.py',
1378233Snate@binkert.org        'general_purpose/string/__init__.py',
1388233Snate@binkert.org        'general_purpose/string/compare_strings.py',
1398233Snate@binkert.org        'general_purpose/string/load_string.py',
1408233Snate@binkert.org        'general_purpose/string/move_string.py',
1418233Snate@binkert.org        'general_purpose/string/scan_string.py',
1428233Snate@binkert.org        'general_purpose/string/store_string.py',
1438233Snate@binkert.org        'general_purpose/system_calls.py',
1448233Snate@binkert.org        'romutil.py',
1456143Snate@binkert.org        'system/__init__.py',
1466143Snate@binkert.org        'system/control_registers.py',
1476143Snate@binkert.org        'system/halt.py',
1486143Snate@binkert.org        'system/invlpg.py',
1496143Snate@binkert.org        'system/undefined_operation.py',
1506143Snate@binkert.org        'system/msrs.py',
1516143Snate@binkert.org        'system/segmentation.py',
1526143Snate@binkert.org        'simd128/__init__.py',
1536143Snate@binkert.org        'simd128/integer/__init__.py',
1548913Sandreas.hansson@arm.com        'simd128/integer/data_transfer/__init__.py',
1558233Snate@binkert.org        'simd128/integer/data_transfer/move.py',
1568233Snate@binkert.org        'simd128/integer/data_transfer/move_non_temporal.py',
1576143Snate@binkert.org        'simd128/integer/data_transfer/move_mask.py',
1586143Snate@binkert.org        'simd128/integer/data_conversion/__init__.py',
1596143Snate@binkert.org        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
1606143Snate@binkert.org        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
1616143Snate@binkert.org        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
1625522Snate@binkert.org        'simd128/integer/data_reordering/__init__.py',
1636143Snate@binkert.org        'simd128/integer/data_reordering/unpack_and_interleave.py',
1646143Snate@binkert.org        'simd128/integer/data_reordering/pack_with_saturation.py',
1656143Snate@binkert.org        'simd128/integer/data_reordering/extract_and_insert.py',
1666143Snate@binkert.org        'simd128/integer/data_reordering/shuffle.py',
1678233Snate@binkert.org        'simd128/integer/arithmetic/__init__.py',
1688233Snate@binkert.org        'simd128/integer/arithmetic/subtraction.py',
1698233Snate@binkert.org        'simd128/integer/arithmetic/addition.py',
1706143Snate@binkert.org        'simd128/integer/arithmetic/multiplication.py',
1716143Snate@binkert.org        'simd128/integer/arithmetic/multiply_add.py',
1726143Snate@binkert.org        'simd128/integer/arithmetic/average.py',
1736143Snate@binkert.org        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
1745522Snate@binkert.org        'simd128/integer/shift/__init__.py',
1755522Snate@binkert.org        'simd128/integer/shift/right_arithmetic_shift.py',
1765522Snate@binkert.org        'simd128/integer/shift/left_logical_shift.py',
1775522Snate@binkert.org        'simd128/integer/shift/right_logical_shift.py',
1785604Snate@binkert.org        'simd128/integer/compare/__init__.py',
1795604Snate@binkert.org        'simd128/integer/compare/compare_and_write_mask.py',
1806143Snate@binkert.org        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
1816143Snate@binkert.org        'simd128/integer/logical/__init__.py',
1824762Snate@binkert.org        'simd128/integer/logical/pand.py',
1834762Snate@binkert.org        'simd128/integer/logical/por.py',
1846143Snate@binkert.org        'simd128/integer/logical/exclusive_or.py',
1856727Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/__init__.py',
1866727Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
1876727Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
1884762Snate@binkert.org        'simd128/floating_point/__init__.py',
1896143Snate@binkert.org        'simd128/floating_point/data_transfer/__init__.py',
1906143Snate@binkert.org        'simd128/floating_point/data_transfer/move_mask.py',
1916143Snate@binkert.org        'simd128/floating_point/data_transfer/move.py',
1926143Snate@binkert.org        'simd128/floating_point/data_transfer/move_with_duplication.py',
1936727Ssteve.reinhardt@amd.com        'simd128/floating_point/data_transfer/move_non_temporal.py',
1946143Snate@binkert.org        'simd128/floating_point/data_conversion/__init__.py',
1957674Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
1967674Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
1975604Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
1986143Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
1996143Snate@binkert.org        'simd128/floating_point/data_reordering/__init__.py',
2006143Snate@binkert.org        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2014762Snate@binkert.org        'simd128/floating_point/data_reordering/shuffle.py',
2026143Snate@binkert.org        'simd128/floating_point/arithmetic/__init__.py',
2034762Snate@binkert.org        'simd128/floating_point/arithmetic/subtraction.py',
2044762Snate@binkert.org        'simd128/floating_point/arithmetic/addition.py',
2054762Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2066143Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_addition.py',
2076143Snate@binkert.org        'simd128/floating_point/arithmetic/square_root.py',
2084762Snate@binkert.org        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2098233Snate@binkert.org        'simd128/floating_point/arithmetic/multiplication.py',
2108233Snate@binkert.org        'simd128/floating_point/arithmetic/division.py',
2118233Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2128233Snate@binkert.org        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2136143Snate@binkert.org        'simd128/floating_point/compare/__init__.py',
2146143Snate@binkert.org        'simd128/floating_point/compare/compare_and_write_mask.py',
2154762Snate@binkert.org        'simd128/floating_point/compare/compare_and_write_rflags.py',
2166143Snate@binkert.org        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2174762Snate@binkert.org        'simd128/floating_point/logical/__init__.py',
2186143Snate@binkert.org        'simd128/floating_point/logical/andp.py',
2194762Snate@binkert.org        'simd128/floating_point/logical/orp.py',
2206143Snate@binkert.org        'simd128/floating_point/logical/exclusive_or.py',
2218233Snate@binkert.org        'simd64/__init__.py',
2228233Snate@binkert.org        'simd64/integer/__init__.py',
2238233Snate@binkert.org        'simd64/integer/data_transfer/__init__.py',
2246143Snate@binkert.org        'simd64/integer/data_transfer/move_mask.py',
2256143Snate@binkert.org        'simd64/integer/data_transfer/move.py',
2266143Snate@binkert.org        'simd64/integer/data_transfer/move_non_temporal.py',
2276143Snate@binkert.org        'simd64/integer/exit_media_state.py',
2286143Snate@binkert.org        'simd64/integer/data_reordering/__init__.py',
2296143Snate@binkert.org        'simd64/integer/data_reordering/unpack_and_interleave.py',
2306143Snate@binkert.org        'simd64/integer/data_reordering/pack_with_saturation.py',
2316143Snate@binkert.org        'simd64/integer/data_reordering/extract_and_insert.py',
2328233Snate@binkert.org        'simd64/integer/data_reordering/shuffle_and_swap.py',
2338233Snate@binkert.org        'simd64/integer/data_conversion.py',
234955SN/A        'simd64/integer/arithmetic/__init__.py',
2358235Snate@binkert.org        'simd64/integer/arithmetic/subtraction.py',
2368235Snate@binkert.org        'simd64/integer/arithmetic/addition.py',
2376143Snate@binkert.org        'simd64/integer/arithmetic/multiplication.py',
2388235Snate@binkert.org        'simd64/integer/arithmetic/multiply_add.py',
2398235Snate@binkert.org        'simd64/integer/arithmetic/average.py',
2408235Snate@binkert.org        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2418235Snate@binkert.org        'simd64/integer/shift/__init__.py',
2428235Snate@binkert.org        'simd64/integer/shift/right_arithmetic_shift.py',
2438235Snate@binkert.org        'simd64/integer/shift/left_logical_shift.py',
2448235Snate@binkert.org        'simd64/integer/shift/right_logical_shift.py',
2458235Snate@binkert.org        'simd64/integer/compare/__init__.py',
2468235Snate@binkert.org        'simd64/integer/compare/compare_and_write_mask.py',
2478235Snate@binkert.org        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2488235Snate@binkert.org        'simd64/integer/logical/__init__.py',
2498235Snate@binkert.org        'simd64/integer/logical/pand.py',
2508235Snate@binkert.org        'simd64/integer/logical/por.py',
2518235Snate@binkert.org        'simd64/integer/logical/exclusive_or.py',
2528235Snate@binkert.org        'simd64/integer/save_and_restore_state.py',
2538235Snate@binkert.org        'simd64/floating_point/__init__.py',
2548235Snate@binkert.org        'simd64/floating_point/arithmetic/__init__.py',
2555584Snate@binkert.org        'simd64/floating_point/arithmetic/subtraction.py',
2564382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/addition.py',
2574202Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2584382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
2594382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/accumulation.py',
2604382Sbinkertn@umich.edu        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
2615584Snate@binkert.org        'simd64/floating_point/data_conversion.py',
2624382Sbinkertn@umich.edu        'simd64/floating_point/compare/__init__.py',
2634382Sbinkertn@umich.edu        'simd64/floating_point/compare/compare_and_write_mask.py',
2644382Sbinkertn@umich.edu        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2658232Snate@binkert.org        'x87/__init__.py',
2665192Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/__init__.py',
2678232Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
2688232Snate@binkert.org        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
2698232Snate@binkert.org        'x87/data_transfer_and_conversion/exchange.py',
2705192Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
2718232Snate@binkert.org        'x87/data_transfer_and_conversion/conditional_move.py',
2725192Ssaidi@eecs.umich.edu        'x87/data_transfer_and_conversion/extract.py',
2735799Snate@binkert.org        'x87/load_constants/__init__.py',
2748232Snate@binkert.org        'x87/load_constants/load_0_1_or_pi.py',
2755192Ssaidi@eecs.umich.edu        'x87/load_constants/load_logarithm.py',
2765192Ssaidi@eecs.umich.edu        'x87/arithmetic/__init__.py',
2775192Ssaidi@eecs.umich.edu        'x87/arithmetic/subtraction.py',
2788232Snate@binkert.org        'x87/arithmetic/addition.py',
2795192Ssaidi@eecs.umich.edu        'x87/arithmetic/partial_remainder.py',
2808232Snate@binkert.org        'x87/arithmetic/multiplication.py',
2815192Ssaidi@eecs.umich.edu        'x87/arithmetic/division.py',
2825192Ssaidi@eecs.umich.edu        'x87/arithmetic/change_sign.py',
2835192Ssaidi@eecs.umich.edu        'x87/arithmetic/round.py',
2845192Ssaidi@eecs.umich.edu        'x87/arithmetic/square_root.py',
2854382Sbinkertn@umich.edu        'x87/transcendental_functions/__init__.py',
2864382Sbinkertn@umich.edu        'x87/transcendental_functions/trigonometric_functions.py',
2874382Sbinkertn@umich.edu        'x87/transcendental_functions/logarithmic_functions.py',
2882667Sstever@eecs.umich.edu        'x87/compare_and_test/__init__.py',
2892667Sstever@eecs.umich.edu        'x87/compare_and_test/classify.py',
2902667Sstever@eecs.umich.edu        'x87/compare_and_test/test.py',
2912667Sstever@eecs.umich.edu        'x87/compare_and_test/floating_point_ordered_compare.py',
2922667Sstever@eecs.umich.edu        'x87/compare_and_test/floating_point_unordered_compare.py',
2932667Sstever@eecs.umich.edu        'x87/compare_and_test/integer_compare.py',
2945742Snate@binkert.org        'x87/stack_management/__init__.py',
2955742Snate@binkert.org        'x87/stack_management/stack_control.py',
2965742Snate@binkert.org        'x87/stack_management/clear_state.py',
2975793Snate@binkert.org        'x87/control/__init__.py',
2988334Snate@binkert.org        'x87/control/clear_exceptions.py',
2995793Snate@binkert.org        'x87/control/initialize.py',
3005793Snate@binkert.org        'x87/control/wait_for_exceptions.py',
3015793Snate@binkert.org        'x87/control/save_x87_status_word.py',
3024382Sbinkertn@umich.edu        'x87/control/save_and_restore_x87_control_word.py',
3034762Snate@binkert.org        'x87/control/save_and_restore_x87_environment.py',
3045344Sstever@gmail.com        'x87/no_operation.py'
3054382Sbinkertn@umich.edu        )
3065341Sstever@gmail.com
3075742Snate@binkert.org
3085742Snate@binkert.org    # Add in files generated by the ISA description.
3095742Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
3105742Snate@binkert.org    for f in isa_desc_files:
3115742Snate@binkert.org        # Add in python file dependencies that won't be caught otherwise
3124762Snate@binkert.org        for pyfile in python_files:
3135742Snate@binkert.org            env.Depends(f, "isa/insts/%s" % pyfile)
3145742Snate@binkert.org        # Only non-header files need to be compiled.
3157722Sgblack@eecs.umich.edu        if not f.path.endswith('.hh'):
3165742Snate@binkert.org            Source(f)
3175742Snate@binkert.org