SConscript revision 8585
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('*')
44955SN/A
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')
546143Snate@binkert.org    Source('insts/microregop.cc')
556143Snate@binkert.org    Source('insts/static_inst.cc')
566143Snate@binkert.org    Source('isa.cc')
576143Snate@binkert.org    Source('nativetrace.cc')
586143Snate@binkert.org    Source('pagetable.cc')
596143Snate@binkert.org    Source('predecoder.cc')
606143Snate@binkert.org    Source('predecoder_tables.cc')
616143Snate@binkert.org    Source('remote_gdb.cc')
626143Snate@binkert.org    Source('tlb.cc')
636143Snate@binkert.org    Source('types.cc')
646143Snate@binkert.org    Source('utility.cc')
656143Snate@binkert.org
666143Snate@binkert.org    SimObject('X86NativeTrace.py')
676143Snate@binkert.org
686143Snate@binkert.org    SimObject('X86TLB.py')
694762Snate@binkert.org    DebugFlag('Predecoder', "Predecoder debug output")
706143Snate@binkert.org    DebugFlag('X86', "Generic X86 ISA debugging")
716143Snate@binkert.org
726143Snate@binkert.org    if env['FULL_SYSTEM']:
736143Snate@binkert.org        DebugFlag('LocalApic', "Local APIC debugging")
746143Snate@binkert.org        DebugFlag('PageTableWalker', \
756143Snate@binkert.org                  "Page table walker state machine debugging")
766143Snate@binkert.org        DebugFlag('Faults', "Trace all faults/exceptions/traps")
776143Snate@binkert.org
786143Snate@binkert.org        SimObject('X86LocalApic.py')
796143Snate@binkert.org        SimObject('X86System.py')
806143Snate@binkert.org
816143Snate@binkert.org        # Full-system sources
826143Snate@binkert.org        Source('interrupts.cc')
836143Snate@binkert.org        Source('linux/system.cc')
846143Snate@binkert.org        Source('pagetable_walker.cc')
856143Snate@binkert.org        Source('system.cc')
866143Snate@binkert.org        Source('stacktrace.cc')
876143Snate@binkert.org        Source('vtophys.cc')
886143Snate@binkert.org    else:
896143Snate@binkert.org        Source('process.cc')
906143Snate@binkert.org
916143Snate@binkert.org        Source('linux/linux.cc')
926143Snate@binkert.org        Source('linux/process.cc')
936143Snate@binkert.org        Source('linux/syscalls.cc')
946143Snate@binkert.org
956143Snate@binkert.org    python_files = (
966143Snate@binkert.org        '__init__.py',
976143Snate@binkert.org        'general_purpose/__init__.py',
986143Snate@binkert.org        'general_purpose/arithmetic/__init__.py',
996143Snate@binkert.org        'general_purpose/arithmetic/add_and_subtract.py',
1006143Snate@binkert.org        'general_purpose/arithmetic/increment_and_decrement.py',
1016143Snate@binkert.org        'general_purpose/arithmetic/multiply_and_divide.py',
1026143Snate@binkert.org        'general_purpose/cache_and_memory_management.py',
1036143Snate@binkert.org        'general_purpose/compare_and_test/__init__.py',
1046143Snate@binkert.org        'general_purpose/compare_and_test/bit_scan.py',
1056143Snate@binkert.org        'general_purpose/compare_and_test/bit_test.py',
1066143Snate@binkert.org        'general_purpose/compare_and_test/bounds.py',
1076143Snate@binkert.org        'general_purpose/compare_and_test/compare.py',
1086143Snate@binkert.org        'general_purpose/compare_and_test/set_byte_on_condition.py',
1096143Snate@binkert.org        'general_purpose/compare_and_test/test.py',
1106143Snate@binkert.org        'general_purpose/control_transfer/__init__.py',
1116143Snate@binkert.org        'general_purpose/control_transfer/call.py',
1126143Snate@binkert.org        'general_purpose/control_transfer/conditional_jump.py',
1135522Snate@binkert.org        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1146143Snate@binkert.org        'general_purpose/control_transfer/jump.py',
1156143Snate@binkert.org        'general_purpose/control_transfer/loop.py',
1166143Snate@binkert.org        'general_purpose/control_transfer/xreturn.py',
1176143Snate@binkert.org        'general_purpose/data_conversion/__init__.py',
1186143Snate@binkert.org        'general_purpose/data_conversion/ascii_adjust.py',
1196143Snate@binkert.org        'general_purpose/data_conversion/bcd_adjust.py',
1206143Snate@binkert.org        'general_purpose/data_conversion/endian_conversion.py',
1216143Snate@binkert.org        'general_purpose/data_conversion/extract_sign_mask.py',
1226143Snate@binkert.org        'general_purpose/data_conversion/sign_extension.py',
1236143Snate@binkert.org        'general_purpose/data_conversion/translate.py',
1245522Snate@binkert.org        'general_purpose/data_transfer/__init__.py',
1255522Snate@binkert.org        'general_purpose/data_transfer/conditional_move.py',
1265522Snate@binkert.org        'general_purpose/data_transfer/move.py',
1275522Snate@binkert.org        'general_purpose/data_transfer/stack_operations.py',
1285604Snate@binkert.org        'general_purpose/data_transfer/xchg.py',
1295604Snate@binkert.org        'general_purpose/flags/__init__.py',
1306143Snate@binkert.org        'general_purpose/flags/load_and_store.py',
1316143Snate@binkert.org        'general_purpose/flags/push_and_pop.py',
1324762Snate@binkert.org        'general_purpose/flags/set_and_clear.py',
1334762Snate@binkert.org        'general_purpose/input_output/__init__.py',
1346143Snate@binkert.org        'general_purpose/input_output/general_io.py',
1356727Ssteve.reinhardt@amd.com        'general_purpose/input_output/string_io.py',
1366727Ssteve.reinhardt@amd.com        'general_purpose/load_effective_address.py',
1376727Ssteve.reinhardt@amd.com        'general_purpose/load_segment_registers.py',
1384762Snate@binkert.org        'general_purpose/logical.py',
1396143Snate@binkert.org        'general_purpose/no_operation.py',
1406143Snate@binkert.org        'general_purpose/rotate_and_shift/__init__.py',
1416143Snate@binkert.org        'general_purpose/rotate_and_shift/rotate.py',
1426143Snate@binkert.org        'general_purpose/rotate_and_shift/shift.py',
1436727Ssteve.reinhardt@amd.com        'general_purpose/semaphores.py',
1446143Snate@binkert.org        'general_purpose/string/__init__.py',
1456143Snate@binkert.org        'general_purpose/string/compare_strings.py',
1466143Snate@binkert.org        'general_purpose/string/load_string.py',
1475604Snate@binkert.org        'general_purpose/string/move_string.py',
1486143Snate@binkert.org        'general_purpose/string/scan_string.py',
1496143Snate@binkert.org        'general_purpose/string/store_string.py',
1506143Snate@binkert.org        'general_purpose/system_calls.py',
1514762Snate@binkert.org        'romutil.py',
1526143Snate@binkert.org        'system/__init__.py',
1534762Snate@binkert.org        'system/control_registers.py',
1544762Snate@binkert.org        'system/halt.py',
1554762Snate@binkert.org        'system/invlpg.py',
1566143Snate@binkert.org        'system/undefined_operation.py',
1576143Snate@binkert.org        'system/msrs.py',
1584762Snate@binkert.org        'system/segmentation.py',
1596143Snate@binkert.org        'simd128/__init__.py',
1606143Snate@binkert.org        'simd128/integer/__init__.py',
1616143Snate@binkert.org        'simd128/integer/data_transfer/__init__.py',
1626143Snate@binkert.org        'simd128/integer/data_transfer/move.py',
1634762Snate@binkert.org        'simd128/integer/data_transfer/move_non_temporal.py',
1646143Snate@binkert.org        'simd128/integer/data_transfer/move_mask.py',
1654762Snate@binkert.org        'simd128/integer/data_conversion/__init__.py',
1666143Snate@binkert.org        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
1674762Snate@binkert.org        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
1686143Snate@binkert.org        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
1696143Snate@binkert.org        'simd128/integer/data_reordering/__init__.py',
1706143Snate@binkert.org        'simd128/integer/data_reordering/unpack_and_interleave.py',
1716143Snate@binkert.org        'simd128/integer/data_reordering/pack_with_saturation.py',
1726143Snate@binkert.org        'simd128/integer/data_reordering/extract_and_insert.py',
1736143Snate@binkert.org        'simd128/integer/data_reordering/shuffle.py',
1746143Snate@binkert.org        'simd128/integer/arithmetic/__init__.py',
1756143Snate@binkert.org        'simd128/integer/arithmetic/subtraction.py',
1766143Snate@binkert.org        'simd128/integer/arithmetic/addition.py',
1776143Snate@binkert.org        'simd128/integer/arithmetic/multiplication.py',
1786143Snate@binkert.org        'simd128/integer/arithmetic/multiply_add.py',
1796143Snate@binkert.org        'simd128/integer/arithmetic/average.py',
1806143Snate@binkert.org        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
181955SN/A        'simd128/integer/shift/__init__.py',
1825584Snate@binkert.org        'simd128/integer/shift/right_arithmetic_shift.py',
1835584Snate@binkert.org        'simd128/integer/shift/left_logical_shift.py',
1845584Snate@binkert.org        'simd128/integer/shift/right_logical_shift.py',
1855584Snate@binkert.org        'simd128/integer/compare/__init__.py',
1866143Snate@binkert.org        'simd128/integer/compare/compare_and_write_mask.py',
1876143Snate@binkert.org        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
1886143Snate@binkert.org        'simd128/integer/logical/__init__.py',
1895584Snate@binkert.org        'simd128/integer/logical/pand.py',
1904382Sbinkertn@umich.edu        'simd128/integer/logical/por.py',
1914202Sbinkertn@umich.edu        'simd128/integer/logical/exclusive_or.py',
1924382Sbinkertn@umich.edu        'simd128/integer/save_and_restore_state/__init__.py',
1934382Sbinkertn@umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
1944382Sbinkertn@umich.edu        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
1955584Snate@binkert.org        'simd128/floating_point/__init__.py',
1964382Sbinkertn@umich.edu        'simd128/floating_point/data_transfer/__init__.py',
1974382Sbinkertn@umich.edu        'simd128/floating_point/data_transfer/move_mask.py',
1984382Sbinkertn@umich.edu        'simd128/floating_point/data_transfer/move.py',
1995192Ssaidi@eecs.umich.edu        'simd128/floating_point/data_transfer/move_with_duplication.py',
2005192Ssaidi@eecs.umich.edu        'simd128/floating_point/data_transfer/move_non_temporal.py',
2015799Snate@binkert.org        'simd128/floating_point/data_conversion/__init__.py',
2025799Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2035799Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2045192Ssaidi@eecs.umich.edu        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2055799Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2065192Ssaidi@eecs.umich.edu        'simd128/floating_point/data_reordering/__init__.py',
2075799Snate@binkert.org        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2085799Snate@binkert.org        'simd128/floating_point/data_reordering/shuffle.py',
2095192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/__init__.py',
2105192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/subtraction.py',
2115192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/addition.py',
2125799Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2135192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/horizontal_addition.py',
2145192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/square_root.py',
2155192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2165192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/multiplication.py',
2175192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/division.py',
2185192Ssaidi@eecs.umich.edu        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2194382Sbinkertn@umich.edu        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2204382Sbinkertn@umich.edu        'simd128/floating_point/compare/__init__.py',
2214382Sbinkertn@umich.edu        'simd128/floating_point/compare/compare_and_write_mask.py',
2222667Sstever@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_rflags.py',
2232667Sstever@eecs.umich.edu        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2242667Sstever@eecs.umich.edu        'simd128/floating_point/logical/__init__.py',
2252667Sstever@eecs.umich.edu        'simd128/floating_point/logical/andp.py',
2262667Sstever@eecs.umich.edu        'simd128/floating_point/logical/orp.py',
2272667Sstever@eecs.umich.edu        'simd128/floating_point/logical/exclusive_or.py',
2285742Snate@binkert.org        'simd64/__init__.py',
2295742Snate@binkert.org        'simd64/integer/__init__.py',
2305742Snate@binkert.org        'simd64/integer/data_transfer/__init__.py',
2315793Snate@binkert.org        'simd64/integer/data_transfer/move_mask.py',
2325793Snate@binkert.org        'simd64/integer/data_transfer/move.py',
2335793Snate@binkert.org        'simd64/integer/data_transfer/move_non_temporal.py',
2345793Snate@binkert.org        'simd64/integer/exit_media_state.py',
2355793Snate@binkert.org        'simd64/integer/data_reordering/__init__.py',
2364382Sbinkertn@umich.edu        'simd64/integer/data_reordering/unpack_and_interleave.py',
2374762Snate@binkert.org        'simd64/integer/data_reordering/pack_with_saturation.py',
2385344Sstever@gmail.com        'simd64/integer/data_reordering/extract_and_insert.py',
2394382Sbinkertn@umich.edu        'simd64/integer/data_reordering/shuffle_and_swap.py',
2405341Sstever@gmail.com        'simd64/integer/data_conversion.py',
2415742Snate@binkert.org        'simd64/integer/arithmetic/__init__.py',
2425742Snate@binkert.org        'simd64/integer/arithmetic/subtraction.py',
2435742Snate@binkert.org        'simd64/integer/arithmetic/addition.py',
2445742Snate@binkert.org        'simd64/integer/arithmetic/multiplication.py',
2455742Snate@binkert.org        'simd64/integer/arithmetic/multiply_add.py',
2464762Snate@binkert.org        'simd64/integer/arithmetic/average.py',
2475742Snate@binkert.org        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2485742Snate@binkert.org        'simd64/integer/shift/__init__.py',
2495742Snate@binkert.org        'simd64/integer/shift/right_arithmetic_shift.py',
2505742Snate@binkert.org        'simd64/integer/shift/left_logical_shift.py',
2515742Snate@binkert.org        'simd64/integer/shift/right_logical_shift.py',
2525742Snate@binkert.org        'simd64/integer/compare/__init__.py',
2535742Snate@binkert.org        'simd64/integer/compare/compare_and_write_mask.py',
2545341Sstever@gmail.com        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2555742Snate@binkert.org        'simd64/integer/logical/__init__.py',
2565341Sstever@gmail.com        'simd64/integer/logical/pand.py',
2574773Snate@binkert.org        'simd64/integer/logical/por.py',
2586108Snate@binkert.org        'simd64/integer/logical/exclusive_or.py',
2591858SN/A        'simd64/integer/save_and_restore_state.py',
2601085SN/A        'simd64/floating_point/__init__.py',
2616658Snate@binkert.org        'simd64/floating_point/arithmetic/__init__.py',
2626658Snate@binkert.org        'simd64/floating_point/arithmetic/subtraction.py',
2636658Snate@binkert.org        'simd64/floating_point/arithmetic/addition.py',
2646658Snate@binkert.org        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2656658Snate@binkert.org        'simd64/floating_point/arithmetic/multiplication.py',
2666658Snate@binkert.org        'simd64/floating_point/arithmetic/accumulation.py',
2676658Snate@binkert.org        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
2686658Snate@binkert.org        'simd64/floating_point/data_conversion.py',
2696658Snate@binkert.org        'simd64/floating_point/compare/__init__.py',
2706658Snate@binkert.org        'simd64/floating_point/compare/compare_and_write_mask.py',
2716658Snate@binkert.org        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2726658Snate@binkert.org        'x87/__init__.py',
2736658Snate@binkert.org        'x87/data_transfer_and_conversion/__init__.py',
2746658Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
2756658Snate@binkert.org        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
2766658Snate@binkert.org        'x87/data_transfer_and_conversion/exchange.py',
2776658Snate@binkert.org        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
2786658Snate@binkert.org        'x87/data_transfer_and_conversion/conditional_move.py',
2796658Snate@binkert.org        'x87/data_transfer_and_conversion/extract.py',
2806658Snate@binkert.org        'x87/load_constants/__init__.py',
2816658Snate@binkert.org        'x87/load_constants/load_0_1_or_pi.py',
2826658Snate@binkert.org        'x87/load_constants/load_logarithm.py',
2836658Snate@binkert.org        'x87/arithmetic/__init__.py',
2846658Snate@binkert.org        'x87/arithmetic/subtraction.py',
2856658Snate@binkert.org        'x87/arithmetic/addition.py',
2864382Sbinkertn@umich.edu        'x87/arithmetic/partial_remainder.py',
2874382Sbinkertn@umich.edu        'x87/arithmetic/multiplication.py',
2884762Snate@binkert.org        'x87/arithmetic/division.py',
2894762Snate@binkert.org        'x87/arithmetic/change_sign.py',
2904762Snate@binkert.org        'x87/arithmetic/round.py',
2916654Snate@binkert.org        'x87/arithmetic/square_root.py',
2926654Snate@binkert.org        'x87/transcendental_functions/__init__.py',
2935517Snate@binkert.org        'x87/transcendental_functions/trigonometric_functions.py',
2945517Snate@binkert.org        'x87/transcendental_functions/logarithmic_functions.py',
2955517Snate@binkert.org        'x87/compare_and_test/__init__.py',
2965517Snate@binkert.org        'x87/compare_and_test/classify.py',
2975517Snate@binkert.org        'x87/compare_and_test/test.py',
2985517Snate@binkert.org        'x87/compare_and_test/floating_point_ordered_compare.py',
2995517Snate@binkert.org        'x87/compare_and_test/floating_point_unordered_compare.py',
3005517Snate@binkert.org        'x87/compare_and_test/integer_compare.py',
3015517Snate@binkert.org        'x87/stack_management/__init__.py',
3025517Snate@binkert.org        'x87/stack_management/stack_control.py',
3035517Snate@binkert.org        'x87/stack_management/clear_state.py',
3045517Snate@binkert.org        'x87/control/__init__.py',
3055517Snate@binkert.org        'x87/control/clear_exceptions.py',
3065517Snate@binkert.org        'x87/control/initialize.py',
3075517Snate@binkert.org        'x87/control/wait_for_exceptions.py',
3085517Snate@binkert.org        'x87/control/save_x87_status_word.py',
3095517Snate@binkert.org        'x87/control/save_and_restore_x87_control_word.py',
3106654Snate@binkert.org        'x87/control/save_and_restore_x87_environment.py',
3115517Snate@binkert.org        'x87/no_operation.py'
3125517Snate@binkert.org        )
3135517Snate@binkert.org
3145517Snate@binkert.org
3155517Snate@binkert.org    # Add in files generated by the ISA description.
3165517Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
3175517Snate@binkert.org    for f in isa_desc_files:
3185517Snate@binkert.org        # Add in python file dependencies that won't be caught otherwise
3196143Snate@binkert.org        for pyfile in python_files:
3206654Snate@binkert.org            env.Depends(f, "isa/insts/%s" % pyfile)
3215517Snate@binkert.org        # Only non-header files need to be compiled.
3225517Snate@binkert.org        if not f.path.endswith('.hh'):
3235517Snate@binkert.org            Source(f)
3245517Snate@binkert.org