SConscript revision 7396
12567SN/A# -*- mode:python -*-
211574SCurtis.Dunham@arm.com
37650SAli.Saidi@ARM.com# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
47650SAli.Saidi@ARM.com# All rights reserved.
57650SAli.Saidi@ARM.com#
67650SAli.Saidi@ARM.com# The license below extends only to copyright in the software and shall
77650SAli.Saidi@ARM.com# not be construed as granting a license to any other intellectual
87650SAli.Saidi@ARM.com# property including but not limited to intellectual property relating
97650SAli.Saidi@ARM.com# to a hardware implementation of the functionality of the software
107650SAli.Saidi@ARM.com# licensed hereunder.  You may use the software subject to the license
117650SAli.Saidi@ARM.com# terms below provided that you ensure that this notice is replicated
127650SAli.Saidi@ARM.com# unmodified and in its entirety in all distributions of the software,
137650SAli.Saidi@ARM.com# modified or unmodified, in source code or in binary form.
142567SN/A#
152567SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
162567SN/A# All rights reserved.
172567SN/A#
182567SN/A# Redistribution and use in source and binary forms, with or without
192567SN/A# modification, are permitted provided that the following conditions are
202567SN/A# met: redistributions of source code must retain the above copyright
212567SN/A# notice, this list of conditions and the following disclaimer;
222567SN/A# redistributions in binary form must reproduce the above copyright
232567SN/A# notice, this list of conditions and the following disclaimer in the
242567SN/A# documentation and/or other materials provided with the distribution;
252567SN/A# neither the name of the copyright holders nor the names of its
262567SN/A# contributors may be used to endorse or promote products derived from
272567SN/A# this software without specific prior written permission.
282567SN/A#
292567SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
302567SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312567SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
322567SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332567SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342567SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352567SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362567SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372567SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382567SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392665SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402665SN/A#
412567SN/A# Authors: Gabe Black
422567SN/A
436757SAli.Saidi@ARM.comImport('*')
446757SAli.Saidi@ARM.com
452567SN/Aif env['TARGET_ISA'] == 'x86':
4611234Sandreas.sandberg@arm.com    Source('cpuid.cc')
472567SN/A    Source('emulenv.cc')
482567SN/A    Source('faults.cc')
492567SN/A    Source('insts/microfpop.cc')
508229Snate@binkert.org    Source('insts/microldstop.cc')
516757SAli.Saidi@ARM.com    Source('insts/micromediaop.cc')
5210810Sbr@bsdpad.com    Source('insts/microop.cc')
532567SN/A    Source('insts/microregop.cc')
542567SN/A    Source('insts/static_inst.cc')
552567SN/A    Source('isa.cc')
5610844Sandreas.sandberg@arm.com    Source('nativetrace.cc')
5710037SARM gem5 Developers    Source('pagetable.cc')
5810037SARM gem5 Developers    Source('predecoder.cc')
596757SAli.Saidi@ARM.com    Source('predecoder_tables.cc')
602567SN/A    Source('remote_gdb.cc')
618285SPrakash.Ramrakhyani@arm.com    Source('tlb.cc')
627650SAli.Saidi@ARM.com    Source('utility.cc')
637650SAli.Saidi@ARM.com
647650SAli.Saidi@ARM.com    SimObject('X86NativeTrace.py')
657650SAli.Saidi@ARM.com
667650SAli.Saidi@ARM.com    SimObject('X86TLB.py')
677650SAli.Saidi@ARM.com    TraceFlag('Predecoder', "Predecoder debug output")
6811234Sandreas.sandberg@arm.com    TraceFlag('X86', "Generic X86 ISA debugging")
6911234Sandreas.sandberg@arm.com
7011234Sandreas.sandberg@arm.com    if env['FULL_SYSTEM']:
718286SAli.Saidi@ARM.com        TraceFlag('LocalApic', "Local APIC debugging")
728286SAli.Saidi@ARM.com        TraceFlag('PageTableWalker', \
738286SAli.Saidi@ARM.com                  "Page table walker state machine debugging")
748286SAli.Saidi@ARM.com        TraceFlag('Faults', "Trace all faults/exceptions/traps")
758286SAli.Saidi@ARM.com
7610037SARM gem5 Developers        SimObject('X86LocalApic.py')
7710037SARM gem5 Developers        SimObject('X86System.py')
7810037SARM gem5 Developers
7910037SARM gem5 Developers        # Full-system sources
8010037SARM gem5 Developers        Source('interrupts.cc')
8110037SARM gem5 Developers        Source('linux/system.cc')
8210037SARM gem5 Developers        Source('pagetable_walker.cc')
8310037SARM gem5 Developers        Source('system.cc')
8410037SARM gem5 Developers        Source('stacktrace.cc')
8510037SARM gem5 Developers        Source('vtophys.cc')
8610037SARM gem5 Developers    else:
8710037SARM gem5 Developers        Source('process.cc')
8810037SARM gem5 Developers
8910037SARM gem5 Developers        Source('linux/linux.cc')
9010037SARM gem5 Developers        Source('linux/process.cc')
9110037SARM gem5 Developers        Source('linux/syscalls.cc')
9210037SARM gem5 Developers
9310037SARM gem5 Developers    python_files = (
9410037SARM gem5 Developers        '__init__.py',
9510037SARM gem5 Developers        'general_purpose/__init__.py',
9610037SARM gem5 Developers        'general_purpose/arithmetic/__init__.py',
9710037SARM gem5 Developers        'general_purpose/arithmetic/add_and_subtract.py',
9810037SARM gem5 Developers        'general_purpose/arithmetic/increment_and_decrement.py',
9910037SARM gem5 Developers        'general_purpose/arithmetic/multiply_and_divide.py',
10010037SARM gem5 Developers        'general_purpose/cache_and_memory_management.py',
10110037SARM gem5 Developers        'general_purpose/compare_and_test/__init__.py',
10210037SARM gem5 Developers        'general_purpose/compare_and_test/bit_scan.py',
10310037SARM gem5 Developers        'general_purpose/compare_and_test/bit_test.py',
10410037SARM gem5 Developers        'general_purpose/compare_and_test/bounds.py',
10510037SARM gem5 Developers        'general_purpose/compare_and_test/compare.py',
10610037SARM gem5 Developers        'general_purpose/compare_and_test/set_byte_on_condition.py',
10710037SARM gem5 Developers        'general_purpose/compare_and_test/test.py',
10810037SARM gem5 Developers        'general_purpose/control_transfer/__init__.py',
10910037SARM gem5 Developers        'general_purpose/control_transfer/call.py',
11010037SARM gem5 Developers        'general_purpose/control_transfer/conditional_jump.py',
11110037SARM gem5 Developers        'general_purpose/control_transfer/interrupts_and_exceptions.py',
11210037SARM gem5 Developers        'general_purpose/control_transfer/jump.py',
11310037SARM gem5 Developers        'general_purpose/control_transfer/loop.py',
11410037SARM gem5 Developers        'general_purpose/control_transfer/xreturn.py',
11510037SARM gem5 Developers        'general_purpose/data_conversion/__init__.py',
11610037SARM gem5 Developers        'general_purpose/data_conversion/ascii_adjust.py',
11710037SARM gem5 Developers        'general_purpose/data_conversion/bcd_adjust.py',
11810037SARM gem5 Developers        'general_purpose/data_conversion/endian_conversion.py',
11911234Sandreas.sandberg@arm.com        'general_purpose/data_conversion/extract_sign_mask.py',
12011234Sandreas.sandberg@arm.com        'general_purpose/data_conversion/sign_extension.py',
12111234Sandreas.sandberg@arm.com        'general_purpose/data_conversion/translate.py',
12211234Sandreas.sandberg@arm.com        'general_purpose/data_transfer/__init__.py',
12311234Sandreas.sandberg@arm.com        'general_purpose/data_transfer/conditional_move.py',
12411234Sandreas.sandberg@arm.com        'general_purpose/data_transfer/move.py',
12511234Sandreas.sandberg@arm.com        'general_purpose/data_transfer/stack_operations.py',
12611234Sandreas.sandberg@arm.com        'general_purpose/data_transfer/xchg.py',
12711234Sandreas.sandberg@arm.com        'general_purpose/flags/__init__.py',
12811234Sandreas.sandberg@arm.com        'general_purpose/flags/load_and_store.py',
1292567SN/A        'general_purpose/flags/push_and_pop.py',
1306757SAli.Saidi@ARM.com        'general_purpose/flags/set_and_clear.py',
1318286SAli.Saidi@ARM.com        'general_purpose/input_output/__init__.py',
1328286SAli.Saidi@ARM.com        'general_purpose/input_output/general_io.py',
1338286SAli.Saidi@ARM.com        'general_purpose/input_output/string_io.py',
1348286SAli.Saidi@ARM.com        'general_purpose/load_effective_address.py',
1358286SAli.Saidi@ARM.com        'general_purpose/load_segment_registers.py',
1368286SAli.Saidi@ARM.com        'general_purpose/logical.py',
1376757SAli.Saidi@ARM.com        'general_purpose/no_operation.py',
1386757SAli.Saidi@ARM.com        'general_purpose/rotate_and_shift/__init__.py',
1398286SAli.Saidi@ARM.com        'general_purpose/rotate_and_shift/rotate.py',
1408706Sandreas.hansson@arm.com        'general_purpose/rotate_and_shift/shift.py',
1418706Sandreas.hansson@arm.com        'general_purpose/semaphores.py',
1428706Sandreas.hansson@arm.com        'general_purpose/string/__init__.py',
1438706Sandreas.hansson@arm.com        'general_purpose/string/compare_strings.py',
1448286SAli.Saidi@ARM.com        'general_purpose/string/load_string.py',
1453553SN/A        'general_purpose/string/move_string.py',
1463553SN/A        'general_purpose/string/scan_string.py',
1477693SAli.Saidi@ARM.com        'general_purpose/string/store_string.py',
1487693SAli.Saidi@ARM.com        'general_purpose/system_calls.py',
1497693SAli.Saidi@ARM.com        'romutil.py',
1507720Sgblack@eecs.umich.edu        'system/__init__.py',
1513553SN/A        'system/control_registers.py',
1523553SN/A        'system/halt.py',
1539050Schander.sudanthi@arm.com        'system/invlpg.py',
1549050Schander.sudanthi@arm.com        'system/undefined_operation.py',
1559050Schander.sudanthi@arm.com        'system/msrs.py',
15610037SARM gem5 Developers        'system/segmentation.py',
15710037SARM gem5 Developers        'simd128/__init__.py',
15810037SARM gem5 Developers        'simd128/integer/__init__.py',
15910037SARM gem5 Developers        'simd128/integer/data_transfer/__init__.py',
16010037SARM gem5 Developers        'simd128/integer/data_transfer/move.py',
16110037SARM gem5 Developers        'simd128/integer/data_transfer/move_non_temporal.py',
16210037SARM gem5 Developers        'simd128/integer/data_transfer/move_mask.py',
16310037SARM gem5 Developers        'simd128/integer/data_conversion/__init__.py',
16410037SARM gem5 Developers        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
16510037SARM gem5 Developers        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
16610037SARM gem5 Developers        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
16710037SARM gem5 Developers        'simd128/integer/data_reordering/__init__.py',
16810037SARM gem5 Developers        'simd128/integer/data_reordering/unpack_and_interleave.py',
16910037SARM gem5 Developers        'simd128/integer/data_reordering/pack_with_saturation.py',
17010037SARM gem5 Developers        'simd128/integer/data_reordering/extract_and_insert.py',
17110037SARM gem5 Developers        'simd128/integer/data_reordering/shuffle.py',
17210037SARM gem5 Developers        'simd128/integer/arithmetic/__init__.py',
17310037SARM gem5 Developers        'simd128/integer/arithmetic/subtraction.py',
17410037SARM gem5 Developers        'simd128/integer/arithmetic/addition.py',
17510844Sandreas.sandberg@arm.com        'simd128/integer/arithmetic/multiplication.py',
17610844Sandreas.sandberg@arm.com        'simd128/integer/arithmetic/multiply_add.py',
17710037SARM gem5 Developers        'simd128/integer/arithmetic/average.py',
17810037SARM gem5 Developers        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
17910037SARM gem5 Developers        'simd128/integer/shift/__init__.py',
18010037SARM gem5 Developers        'simd128/integer/shift/right_arithmetic_shift.py',
18110037SARM gem5 Developers        'simd128/integer/shift/left_logical_shift.py',
18210037SARM gem5 Developers        'simd128/integer/shift/right_logical_shift.py',
18310037SARM gem5 Developers        'simd128/integer/compare/__init__.py',
18410037SARM gem5 Developers        'simd128/integer/compare/compare_and_write_mask.py',
18510037SARM gem5 Developers        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
18610037SARM gem5 Developers        'simd128/integer/logical/__init__.py',
18711574SCurtis.Dunham@arm.com        'simd128/integer/logical/pand.py',
18811574SCurtis.Dunham@arm.com        'simd128/integer/logical/por.py',
18910037SARM gem5 Developers        'simd128/integer/logical/exclusive_or.py',
19010037SARM gem5 Developers        'simd128/integer/save_and_restore_state/__init__.py',
19110037SARM gem5 Developers        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
19210037SARM gem5 Developers        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
19310037SARM gem5 Developers        'simd128/floating_point/__init__.py',
19410037SARM gem5 Developers        'simd128/floating_point/data_transfer/__init__.py',
19510037SARM gem5 Developers        'simd128/floating_point/data_transfer/move_mask.py',
19610037SARM gem5 Developers        'simd128/floating_point/data_transfer/move.py',
19710037SARM gem5 Developers        'simd128/floating_point/data_transfer/move_with_duplication.py',
19810037SARM gem5 Developers        'simd128/floating_point/data_transfer/move_non_temporal.py',
19910037SARM gem5 Developers        'simd128/floating_point/data_conversion/__init__.py',
20010037SARM gem5 Developers        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
20110037SARM gem5 Developers        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
20210037SARM gem5 Developers        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
20310037SARM gem5 Developers        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
20410037SARM gem5 Developers        'simd128/floating_point/data_reordering/__init__.py',
20510037SARM gem5 Developers        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
20610037SARM gem5 Developers        'simd128/floating_point/data_reordering/shuffle.py',
20710037SARM gem5 Developers        'simd128/floating_point/arithmetic/__init__.py',
20810037SARM gem5 Developers        'simd128/floating_point/arithmetic/subtraction.py',
20910037SARM gem5 Developers        'simd128/floating_point/arithmetic/addition.py',
21010037SARM gem5 Developers        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
21110037SARM gem5 Developers        'simd128/floating_point/arithmetic/horizontal_addition.py',
21210037SARM gem5 Developers        'simd128/floating_point/arithmetic/square_root.py',
21310037SARM gem5 Developers        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
21410037SARM gem5 Developers        'simd128/floating_point/arithmetic/multiplication.py',
21510037SARM gem5 Developers        'simd128/floating_point/arithmetic/division.py',
21610037SARM gem5 Developers        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
21710037SARM gem5 Developers        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
21810037SARM gem5 Developers        'simd128/floating_point/compare/__init__.py',
21910037SARM gem5 Developers        'simd128/floating_point/compare/compare_and_write_mask.py',
22010037SARM gem5 Developers        'simd128/floating_point/compare/compare_and_write_rflags.py',
22110037SARM gem5 Developers        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
22210037SARM gem5 Developers        'simd128/floating_point/logical/__init__.py',
22310037SARM gem5 Developers        'simd128/floating_point/logical/andp.py',
22410037SARM gem5 Developers        'simd128/floating_point/logical/orp.py',
22510037SARM gem5 Developers        'simd128/floating_point/logical/exclusive_or.py',
22610037SARM gem5 Developers        'simd64/__init__.py',
22710037SARM gem5 Developers        'simd64/integer/__init__.py',
22810037SARM gem5 Developers        'simd64/integer/data_transfer/__init__.py',
22910037SARM gem5 Developers        'simd64/integer/data_transfer/move_mask.py',
23010037SARM gem5 Developers        'simd64/integer/data_transfer/move.py',
23110037SARM gem5 Developers        'simd64/integer/data_transfer/move_non_temporal.py',
23210037SARM gem5 Developers        'simd64/integer/exit_media_state.py',
23310037SARM gem5 Developers        'simd64/integer/data_reordering/__init__.py',
23410037SARM gem5 Developers        'simd64/integer/data_reordering/unpack_and_interleave.py',
23510037SARM gem5 Developers        'simd64/integer/data_reordering/pack_with_saturation.py',
23610037SARM gem5 Developers        'simd64/integer/data_reordering/extract_and_insert.py',
23710037SARM gem5 Developers        'simd64/integer/data_reordering/shuffle_and_swap.py',
23810037SARM gem5 Developers        'simd64/integer/data_conversion.py',
23910037SARM gem5 Developers        'simd64/integer/arithmetic/__init__.py',
24010037SARM gem5 Developers        'simd64/integer/arithmetic/subtraction.py',
24110037SARM gem5 Developers        'simd64/integer/arithmetic/addition.py',
24210037SARM gem5 Developers        'simd64/integer/arithmetic/multiplication.py',
24310037SARM gem5 Developers        'simd64/integer/arithmetic/multiply_add.py',
24410037SARM gem5 Developers        'simd64/integer/arithmetic/average.py',
24510037SARM gem5 Developers        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
24610037SARM gem5 Developers        'simd64/integer/shift/__init__.py',
24710037SARM gem5 Developers        'simd64/integer/shift/right_arithmetic_shift.py',
24810037SARM gem5 Developers        'simd64/integer/shift/left_logical_shift.py',
24910037SARM gem5 Developers        'simd64/integer/shift/right_logical_shift.py',
25010037SARM gem5 Developers        'simd64/integer/compare/__init__.py',
25110037SARM gem5 Developers        'simd64/integer/compare/compare_and_write_mask.py',
25210037SARM gem5 Developers        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
25310037SARM gem5 Developers        'simd64/integer/logical/__init__.py',
25410037SARM gem5 Developers        'simd64/integer/logical/pand.py',
25510037SARM gem5 Developers        'simd64/integer/logical/por.py',
25610037SARM gem5 Developers        'simd64/integer/logical/exclusive_or.py',
25710037SARM gem5 Developers        'simd64/integer/save_and_restore_state.py',
25810037SARM gem5 Developers        'simd64/floating_point/__init__.py',
25910037SARM gem5 Developers        'simd64/floating_point/arithmetic/__init__.py',
26010037SARM gem5 Developers        'simd64/floating_point/arithmetic/subtraction.py',
26110037SARM gem5 Developers        'simd64/floating_point/arithmetic/addition.py',
26210810Sbr@bsdpad.com        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
26310037SARM gem5 Developers        'simd64/floating_point/arithmetic/multiplication.py',
26410810Sbr@bsdpad.com        'simd64/floating_point/arithmetic/accumulation.py',
26510810Sbr@bsdpad.com        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
26610810Sbr@bsdpad.com        'simd64/floating_point/data_conversion.py',
26710810Sbr@bsdpad.com        'simd64/floating_point/compare/__init__.py',
26810810Sbr@bsdpad.com        'simd64/floating_point/compare/compare_and_write_mask.py',
26910810Sbr@bsdpad.com        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
27010810Sbr@bsdpad.com        'x87/__init__.py',
27110810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/__init__.py',
27210810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
27310810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
27410810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/exchange.py',
27510810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
27610810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/conditional_move.py',
27710810Sbr@bsdpad.com        'x87/data_transfer_and_conversion/extract.py',
27810810Sbr@bsdpad.com        'x87/load_constants/__init__.py',
27910810Sbr@bsdpad.com        'x87/load_constants/load_0_1_or_pi.py',
28010810Sbr@bsdpad.com        'x87/load_constants/load_logarithm.py',
2812567SN/A        'x87/arithmetic/__init__.py',
2822567SN/A        'x87/arithmetic/subtraction.py',
2832567SN/A        'x87/arithmetic/addition.py',
284        'x87/arithmetic/partial_remainder.py',
285        'x87/arithmetic/multiplication.py',
286        'x87/arithmetic/division.py',
287        'x87/arithmetic/change_sign.py',
288        'x87/arithmetic/round.py',
289        'x87/arithmetic/square_root.py',
290        'x87/transcendental_functions/__init__.py',
291        'x87/transcendental_functions/trigonometric_functions.py',
292        'x87/transcendental_functions/logarithmic_functions.py',
293        'x87/compare_and_test/__init__.py',
294        'x87/compare_and_test/classify.py',
295        'x87/compare_and_test/test.py',
296        'x87/compare_and_test/floating_point_ordered_compare.py',
297        'x87/compare_and_test/floating_point_unordered_compare.py',
298        'x87/compare_and_test/integer_compare.py',
299        'x87/stack_management/__init__.py',
300        'x87/stack_management/stack_control.py',
301        'x87/stack_management/clear_state.py',
302        'x87/control/__init__.py',
303        'x87/control/clear_exceptions.py',
304        'x87/control/initialize.py',
305        'x87/control/wait_for_exceptions.py',
306        'x87/control/save_x87_status_word.py',
307        'x87/control/save_and_restore_x87_control_word.py',
308        'x87/control/save_and_restore_x87_environment.py',
309        'x87/no_operation.py'
310        )
311
312
313    # Add in files generated by the ISA description.
314    isa_desc_files = env.ISADesc('isa/main.isa')
315    for f in isa_desc_files:
316        # Add in python file dependencies that won't be caught otherwise
317        for pyfile in python_files:
318            env.Depends(f, "isa/insts/%s" % pyfile)
319        # Only non-header files need to be compiled.
320        if not f.path.endswith('.hh'):
321            Source(f)
322