SConscript revision 7624
19814Sandreas.hansson@arm.com# -*- mode:python -*-
22292SN/A
39383SAli.Saidi@ARM.com# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
47597Sminkyu.jeong@arm.com# All rights reserved.
57597Sminkyu.jeong@arm.com#
67597Sminkyu.jeong@arm.com# The license below extends only to copyright in the software and shall
77597Sminkyu.jeong@arm.com# not be construed as granting a license to any other intellectual
87597Sminkyu.jeong@arm.com# property including but not limited to intellectual property relating
97597Sminkyu.jeong@arm.com# to a hardware implementation of the functionality of the software
107597Sminkyu.jeong@arm.com# licensed hereunder.  You may use the software subject to the license
117597Sminkyu.jeong@arm.com# terms below provided that you ensure that this notice is replicated
127597Sminkyu.jeong@arm.com# unmodified and in its entirety in all distributions of the software,
137597Sminkyu.jeong@arm.com# modified or unmodified, in source code or in binary form.
147597Sminkyu.jeong@arm.com#
152292SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
162292SN/A# All rights reserved.
172292SN/A#
182292SN/A# Redistribution and use in source and binary forms, with or without
192292SN/A# modification, are permitted provided that the following conditions are
202292SN/A# met: redistributions of source code must retain the above copyright
212292SN/A# notice, this list of conditions and the following disclaimer;
222292SN/A# redistributions in binary form must reproduce the above copyright
232292SN/A# notice, this list of conditions and the following disclaimer in the
242292SN/A# documentation and/or other materials provided with the distribution;
252292SN/A# neither the name of the copyright holders nor the names of its
262292SN/A# contributors may be used to endorse or promote products derived from
272292SN/A# this software without specific prior written permission.
282292SN/A#
292292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
302292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
322292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332292SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372292SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392292SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402689Sktlim@umich.edu#
412689Sktlim@umich.edu# Authors: Gabe Black
422689Sktlim@umich.edu
432292SN/AImport('*')
442292SN/A
458591Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'x86':
463326Sktlim@umich.edu    Source('cpuid.cc')
478229Snate@binkert.org    Source('emulenv.cc')
486658Snate@binkert.org    Source('faults.cc')
498887Sgeoffrey.blake@arm.com    Source('insts/microfpop.cc')
502907Sktlim@umich.edu    Source('insts/microldstop.cc')
512292SN/A    Source('insts/micromediaop.cc')
528232Snate@binkert.org    Source('insts/microop.cc')
538232Snate@binkert.org    Source('insts/microregop.cc')
548232Snate@binkert.org    Source('insts/static_inst.cc')
559527SMatt.Horsnell@arm.com    Source('isa.cc')
562722Sktlim@umich.edu    Source('nativetrace.cc')
572669Sktlim@umich.edu    Source('pagetable.cc')
582292SN/A    Source('predecoder.cc')
592669Sktlim@umich.edu    Source('predecoder_tables.cc')
602678Sktlim@umich.edu    Source('remote_gdb.cc')
612678Sktlim@umich.edu    Source('tlb.cc')
628581Ssteve.reinhardt@amd.com    Source('types.cc')
638581Ssteve.reinhardt@amd.com    Source('utility.cc')
642292SN/A
652292SN/A    SimObject('X86NativeTrace.py')
662292SN/A
672669Sktlim@umich.edu    SimObject('X86TLB.py')
682292SN/A    TraceFlag('Predecoder', "Predecoder debug output")
692678Sktlim@umich.edu    TraceFlag('X86', "Generic X86 ISA debugging")
702292SN/A
719444SAndreas.Sandberg@ARM.com    if env['FULL_SYSTEM']:
729444SAndreas.Sandberg@ARM.com        TraceFlag('LocalApic', "Local APIC debugging")
739444SAndreas.Sandberg@ARM.com        TraceFlag('PageTableWalker', \
744319Sktlim@umich.edu                  "Page table walker state machine debugging")
754319Sktlim@umich.edu        TraceFlag('Faults', "Trace all faults/exceptions/traps")
764319Sktlim@umich.edu
774319Sktlim@umich.edu        SimObject('X86LocalApic.py')
784319Sktlim@umich.edu        SimObject('X86System.py')
792678Sktlim@umich.edu
802678Sktlim@umich.edu        # Full-system sources
812292SN/A        Source('interrupts.cc')
822678Sktlim@umich.edu        Source('linux/system.cc')
832678Sktlim@umich.edu        Source('pagetable_walker.cc')
845336Shines@cs.fsu.edu        Source('system.cc')
852678Sktlim@umich.edu        Source('stacktrace.cc')
864873Sstever@eecs.umich.edu        Source('vtophys.cc')
872678Sktlim@umich.edu    else:
882292SN/A        Source('process.cc')
892678Sktlim@umich.edu
902678Sktlim@umich.edu        Source('linux/linux.cc')
912678Sktlim@umich.edu        Source('linux/process.cc')
922678Sktlim@umich.edu        Source('linux/syscalls.cc')
932678Sktlim@umich.edu
942678Sktlim@umich.edu    python_files = (
957852SMatt.Horsnell@arm.com        '__init__.py',
967852SMatt.Horsnell@arm.com        'general_purpose/__init__.py',
972344SN/A        'general_purpose/arithmetic/__init__.py',
982678Sktlim@umich.edu        'general_purpose/arithmetic/add_and_subtract.py',
992678Sktlim@umich.edu        'general_purpose/arithmetic/increment_and_decrement.py',
1006974Stjones1@inf.ed.ac.uk        'general_purpose/arithmetic/multiply_and_divide.py',
1016974Stjones1@inf.ed.ac.uk        'general_purpose/cache_and_memory_management.py',
1026974Stjones1@inf.ed.ac.uk        'general_purpose/compare_and_test/__init__.py',
1036974Stjones1@inf.ed.ac.uk        'general_purpose/compare_and_test/bit_scan.py',
1046974Stjones1@inf.ed.ac.uk        'general_purpose/compare_and_test/bit_test.py',
1056974Stjones1@inf.ed.ac.uk        'general_purpose/compare_and_test/bounds.py',
1066974Stjones1@inf.ed.ac.uk        'general_purpose/compare_and_test/compare.py',
1079444SAndreas.Sandberg@ARM.com        'general_purpose/compare_and_test/set_byte_on_condition.py',
1089444SAndreas.Sandberg@ARM.com        'general_purpose/compare_and_test/test.py',
1092820Sktlim@umich.edu        'general_purpose/control_transfer/__init__.py',
1102678Sktlim@umich.edu        'general_purpose/control_transfer/call.py',
1112678Sktlim@umich.edu        'general_purpose/control_transfer/conditional_jump.py',
1126974Stjones1@inf.ed.ac.uk        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1136974Stjones1@inf.ed.ac.uk        'general_purpose/control_transfer/jump.py',
1146974Stjones1@inf.ed.ac.uk        'general_purpose/control_transfer/loop.py',
1156974Stjones1@inf.ed.ac.uk        'general_purpose/control_transfer/xreturn.py',
1166974Stjones1@inf.ed.ac.uk        'general_purpose/data_conversion/__init__.py',
1176974Stjones1@inf.ed.ac.uk        'general_purpose/data_conversion/ascii_adjust.py',
1182678Sktlim@umich.edu        'general_purpose/data_conversion/bcd_adjust.py',
1192678Sktlim@umich.edu        'general_purpose/data_conversion/endian_conversion.py',
1202678Sktlim@umich.edu        'general_purpose/data_conversion/extract_sign_mask.py',
1212678Sktlim@umich.edu        'general_purpose/data_conversion/sign_extension.py',
1222678Sktlim@umich.edu        'general_purpose/data_conversion/translate.py',
1232344SN/A        'general_purpose/data_transfer/__init__.py',
1242307SN/A        'general_purpose/data_transfer/conditional_move.py',
1256974Stjones1@inf.ed.ac.uk        'general_purpose/data_transfer/move.py',
1266974Stjones1@inf.ed.ac.uk        'general_purpose/data_transfer/stack_operations.py',
1276974Stjones1@inf.ed.ac.uk        'general_purpose/data_transfer/xchg.py',
1286974Stjones1@inf.ed.ac.uk        'general_purpose/flags/__init__.py',
1292678Sktlim@umich.edu        'general_purpose/flags/load_and_store.py',
1304032Sktlim@umich.edu        'general_purpose/flags/push_and_pop.py',
1312678Sktlim@umich.edu        'general_purpose/flags/set_and_clear.py',
1322292SN/A        'general_purpose/input_output/__init__.py',
1332292SN/A        'general_purpose/input_output/general_io.py',
1342292SN/A        'general_purpose/input_output/string_io.py',
1352292SN/A        'general_purpose/load_effective_address.py',
1368545Ssaidi@eecs.umich.edu        'general_purpose/load_segment_registers.py',
1372678Sktlim@umich.edu        'general_purpose/logical.py',
1388727Snilay@cs.wisc.edu        'general_purpose/no_operation.py',
1392292SN/A        'general_purpose/rotate_and_shift/__init__.py',
1402292SN/A        'general_purpose/rotate_and_shift/rotate.py',
1412292SN/A        'general_purpose/rotate_and_shift/shift.py',
1422292SN/A        'general_purpose/semaphores.py',
1432292SN/A        'general_purpose/string/__init__.py',
1445529Snate@binkert.org        'general_purpose/string/compare_strings.py',
1455529Snate@binkert.org        'general_purpose/string/load_string.py',
1465529Snate@binkert.org        'general_purpose/string/move_string.py',
1472292SN/A        'general_purpose/string/scan_string.py',
1484329Sktlim@umich.edu        'general_purpose/string/store_string.py',
1494329Sktlim@umich.edu        'general_purpose/system_calls.py',
1504329Sktlim@umich.edu        'romutil.py',
1514329Sktlim@umich.edu        'system/__init__.py',
1522292SN/A        'system/control_registers.py',
1532907Sktlim@umich.edu        'system/halt.py',
1542907Sktlim@umich.edu        'system/invlpg.py',
1552292SN/A        'system/undefined_operation.py',
1562292SN/A        'system/msrs.py',
1572329SN/A        'system/segmentation.py',
1582329SN/A        'simd128/__init__.py',
1592329SN/A        'simd128/integer/__init__.py',
1602292SN/A        'simd128/integer/data_transfer/__init__.py',
1619936SFaissal.Sleiman@arm.com        'simd128/integer/data_transfer/move.py',
1629936SFaissal.Sleiman@arm.com        'simd128/integer/data_transfer/move_non_temporal.py',
1639936SFaissal.Sleiman@arm.com        'simd128/integer/data_transfer/move_mask.py',
1649936SFaissal.Sleiman@arm.com        'simd128/integer/data_conversion/__init__.py',
1652292SN/A        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
1662292SN/A        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
1672292SN/A        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
1688199SAli.Saidi@ARM.com        'simd128/integer/data_reordering/__init__.py',
1698199SAli.Saidi@ARM.com        'simd128/integer/data_reordering/unpack_and_interleave.py',
1709444SAndreas.Sandberg@ARM.com        'simd128/integer/data_reordering/pack_with_saturation.py',
1719444SAndreas.Sandberg@ARM.com        'simd128/integer/data_reordering/extract_and_insert.py',
1729444SAndreas.Sandberg@ARM.com        'simd128/integer/data_reordering/shuffle.py',
1739444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/__init__.py',
1749444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/subtraction.py',
1759444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/addition.py',
1769444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/multiplication.py',
1779444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/multiply_add.py',
1789444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/average.py',
1799444SAndreas.Sandberg@ARM.com        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
1809444SAndreas.Sandberg@ARM.com        'simd128/integer/shift/__init__.py',
1819444SAndreas.Sandberg@ARM.com        'simd128/integer/shift/right_arithmetic_shift.py',
1828199SAli.Saidi@ARM.com        'simd128/integer/shift/left_logical_shift.py',
1832292SN/A        'simd128/integer/shift/right_logical_shift.py',
1842292SN/A        'simd128/integer/compare/__init__.py',
1852292SN/A        'simd128/integer/compare/compare_and_write_mask.py',
1862292SN/A        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
1872292SN/A        'simd128/integer/logical/__init__.py',
1882292SN/A        'simd128/integer/logical/pand.py',
1893492Sktlim@umich.edu        'simd128/integer/logical/por.py',
1902329SN/A        'simd128/integer/logical/exclusive_or.py',
1912292SN/A        'simd128/integer/save_and_restore_state/__init__.py',
1922292SN/A        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
1939444SAndreas.Sandberg@ARM.com        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
1949444SAndreas.Sandberg@ARM.com        'simd128/floating_point/__init__.py',
1959444SAndreas.Sandberg@ARM.com        'simd128/floating_point/data_transfer/__init__.py',
1969444SAndreas.Sandberg@ARM.com        'simd128/floating_point/data_transfer/move_mask.py',
1979444SAndreas.Sandberg@ARM.com        'simd128/floating_point/data_transfer/move.py',
1989814Sandreas.hansson@arm.com        'simd128/floating_point/data_transfer/move_with_duplication.py',
1992292SN/A        'simd128/floating_point/data_transfer/move_non_temporal.py',
2002292SN/A        'simd128/floating_point/data_conversion/__init__.py',
2012292SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2022292SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2032292SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2042292SN/A        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2052292SN/A        'simd128/floating_point/data_reordering/__init__.py',
2062292SN/A        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2072292SN/A        'simd128/floating_point/data_reordering/shuffle.py',
2088247Snate@binkert.org        'simd128/floating_point/arithmetic/__init__.py',
2092292SN/A        'simd128/floating_point/arithmetic/subtraction.py',
2102292SN/A        'simd128/floating_point/arithmetic/addition.py',
2112292SN/A        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2122292SN/A        'simd128/floating_point/arithmetic/horizontal_addition.py',
2132292SN/A        'simd128/floating_point/arithmetic/square_root.py',
2142727Sktlim@umich.edu        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2152727Sktlim@umich.edu        'simd128/floating_point/arithmetic/multiplication.py',
2162727Sktlim@umich.edu        'simd128/floating_point/arithmetic/division.py',
2172727Sktlim@umich.edu        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2182727Sktlim@umich.edu        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2192727Sktlim@umich.edu        'simd128/floating_point/compare/__init__.py',
2202727Sktlim@umich.edu        'simd128/floating_point/compare/compare_and_write_mask.py',
2212727Sktlim@umich.edu        'simd128/floating_point/compare/compare_and_write_rflags.py',
2222727Sktlim@umich.edu        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2232727Sktlim@umich.edu        'simd128/floating_point/logical/__init__.py',
2242727Sktlim@umich.edu        'simd128/floating_point/logical/andp.py',
2252727Sktlim@umich.edu        'simd128/floating_point/logical/orp.py',
2262727Sktlim@umich.edu        'simd128/floating_point/logical/exclusive_or.py',
2272727Sktlim@umich.edu        'simd64/__init__.py',
2282727Sktlim@umich.edu        'simd64/integer/__init__.py',
2292727Sktlim@umich.edu        'simd64/integer/data_transfer/__init__.py',
2302727Sktlim@umich.edu        'simd64/integer/data_transfer/move_mask.py',
2312727Sktlim@umich.edu        'simd64/integer/data_transfer/move.py',
2322361SN/A        'simd64/integer/data_transfer/move_non_temporal.py',
2332361SN/A        'simd64/integer/exit_media_state.py',
2342361SN/A        'simd64/integer/data_reordering/__init__.py',
2352361SN/A        'simd64/integer/data_reordering/unpack_and_interleave.py',
2362727Sktlim@umich.edu        'simd64/integer/data_reordering/pack_with_saturation.py',
2372727Sktlim@umich.edu        'simd64/integer/data_reordering/extract_and_insert.py',
2382727Sktlim@umich.edu        'simd64/integer/data_reordering/shuffle_and_swap.py',
2392727Sktlim@umich.edu        'simd64/integer/data_conversion.py',
2402727Sktlim@umich.edu        'simd64/integer/arithmetic/__init__.py',
2412727Sktlim@umich.edu        'simd64/integer/arithmetic/subtraction.py',
2422727Sktlim@umich.edu        'simd64/integer/arithmetic/addition.py',
2432727Sktlim@umich.edu        'simd64/integer/arithmetic/multiplication.py',
2442727Sktlim@umich.edu        'simd64/integer/arithmetic/multiply_add.py',
2452727Sktlim@umich.edu        'simd64/integer/arithmetic/average.py',
2462727Sktlim@umich.edu        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
2472727Sktlim@umich.edu        'simd64/integer/shift/__init__.py',
2482727Sktlim@umich.edu        'simd64/integer/shift/right_arithmetic_shift.py',
2492727Sktlim@umich.edu        'simd64/integer/shift/left_logical_shift.py',
2502727Sktlim@umich.edu        'simd64/integer/shift/right_logical_shift.py',
2512727Sktlim@umich.edu        'simd64/integer/compare/__init__.py',
2522727Sktlim@umich.edu        'simd64/integer/compare/compare_and_write_mask.py',
2532727Sktlim@umich.edu        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
2542727Sktlim@umich.edu        'simd64/integer/logical/__init__.py',
2552727Sktlim@umich.edu        'simd64/integer/logical/pand.py',
2562727Sktlim@umich.edu        'simd64/integer/logical/por.py',
2572727Sktlim@umich.edu        'simd64/integer/logical/exclusive_or.py',
2582727Sktlim@umich.edu        'simd64/integer/save_and_restore_state.py',
2598922Swilliam.wang@arm.com        'simd64/floating_point/__init__.py',
2604329Sktlim@umich.edu        'simd64/floating_point/arithmetic/__init__.py',
2614329Sktlim@umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
2624329Sktlim@umich.edu        'simd64/floating_point/arithmetic/addition.py',
2634329Sktlim@umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
2644329Sktlim@umich.edu        'simd64/floating_point/arithmetic/multiplication.py',
2654329Sktlim@umich.edu        'simd64/floating_point/arithmetic/accumulation.py',
2662292SN/A        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
2672292SN/A        'simd64/floating_point/data_conversion.py',
2682292SN/A        'simd64/floating_point/compare/__init__.py',
2692292SN/A        'simd64/floating_point/compare/compare_and_write_mask.py',
2702292SN/A        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2712292SN/A        'x87/__init__.py',
2722292SN/A        'x87/data_transfer_and_conversion/__init__.py',
2732292SN/A        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
2742292SN/A        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
2752292SN/A        'x87/data_transfer_and_conversion/exchange.py',
2762292SN/A        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
2772292SN/A        'x87/data_transfer_and_conversion/conditional_move.py',
2782292SN/A        'x87/data_transfer_and_conversion/extract.py',
2792292SN/A        'x87/load_constants/__init__.py',
2809444SAndreas.Sandberg@ARM.com        'x87/load_constants/load_0_1_or_pi.py',
2812307SN/A        'x87/load_constants/load_logarithm.py',
2829444SAndreas.Sandberg@ARM.com        'x87/arithmetic/__init__.py',
2832367SN/A        'x87/arithmetic/subtraction.py',
2842307SN/A        'x87/arithmetic/addition.py',
2852329SN/A        'x87/arithmetic/partial_remainder.py',
2869444SAndreas.Sandberg@ARM.com        'x87/arithmetic/multiplication.py',
2872307SN/A        'x87/arithmetic/division.py',
2882307SN/A        'x87/arithmetic/change_sign.py',
2892307SN/A        'x87/arithmetic/round.py',
2902307SN/A        'x87/arithmetic/square_root.py',
2912307SN/A        'x87/transcendental_functions/__init__.py',
2922307SN/A        'x87/transcendental_functions/trigonometric_functions.py',
2939444SAndreas.Sandberg@ARM.com        'x87/transcendental_functions/logarithmic_functions.py',
2942307SN/A        'x87/compare_and_test/__init__.py',
2952307SN/A        'x87/compare_and_test/classify.py',
2962307SN/A        'x87/compare_and_test/test.py',
2972307SN/A        'x87/compare_and_test/floating_point_ordered_compare.py',
2982292SN/A        'x87/compare_and_test/floating_point_unordered_compare.py',
2992292SN/A        'x87/compare_and_test/integer_compare.py',
3002329SN/A        'x87/stack_management/__init__.py',
3012329SN/A        'x87/stack_management/stack_control.py',
3022292SN/A        'x87/stack_management/clear_state.py',
3032329SN/A        'x87/control/__init__.py',
3042329SN/A        'x87/control/clear_exceptions.py',
3052292SN/A        'x87/control/initialize.py',
3062292SN/A        'x87/control/wait_for_exceptions.py',
3072292SN/A        'x87/control/save_x87_status_word.py',
3082292SN/A        'x87/control/save_and_restore_x87_control_word.py',
3092292SN/A        'x87/control/save_and_restore_x87_environment.py',
3102329SN/A        'x87/no_operation.py'
3112292SN/A        )
3122292SN/A
3139936SFaissal.Sleiman@arm.com
3142292SN/A    # Add in files generated by the ISA description.
3152292SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
3162292SN/A    for f in isa_desc_files:
3172292SN/A        # Add in python file dependencies that won't be caught otherwise
3182292SN/A        for pyfile in python_files:
3192292SN/A            env.Depends(f, "isa/insts/%s" % pyfile)
3202329SN/A        # Only non-header files need to be compiled.
3212329SN/A        if not f.path.endswith('.hh'):
3222329SN/A            Source(f)
3232292SN/A