SConscript revision 6515:a785733109e7
1955SN/A# -*- mode:python -*-
2955SN/A
37816Ssteve.reinhardt@amd.com# Copyright (c) 2005-2006 The Regents of The University of Michigan
45871Snate@binkert.org# All rights reserved.
51762SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28955SN/A#
29955SN/A# Authors: Gabe Black
302665Ssaidi@eecs.umich.edu
312665Ssaidi@eecs.umich.edu# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
325863Snate@binkert.org# All rights reserved.
33955SN/A#
34955SN/A# Redistribution and use of this software in source and binary forms,
35955SN/A# with or without modification, are permitted provided that the
36955SN/A# following conditions are met:
37955SN/A#
388878Ssteve.reinhardt@amd.com# The software must be used only for Non-Commercial Use which means any
392632Sstever@eecs.umich.edu# use which is NOT directed to receiving any direct monetary
408878Ssteve.reinhardt@amd.com# compensation for, or commercial advantage from such use.  Illustrative
412632Sstever@eecs.umich.edu# examples of non-commercial use are academic research, personal study,
42955SN/A# teaching, education and corporate research & development.
438878Ssteve.reinhardt@amd.com# Illustrative examples of commercial use are distributing products for
442632Sstever@eecs.umich.edu# commercial advantage and providing services using the software for
452761Sstever@eecs.umich.edu# commercial advantage.
462632Sstever@eecs.umich.edu#
472632Sstever@eecs.umich.edu# If you wish to use this software or functionality therein that may be
482632Sstever@eecs.umich.edu# covered by patents for commercial use, please contact:
492761Sstever@eecs.umich.edu#     Director of Intellectual Property Licensing
502761Sstever@eecs.umich.edu#     Office of Strategy and Technology
512761Sstever@eecs.umich.edu#     Hewlett-Packard Company
528878Ssteve.reinhardt@amd.com#     1501 Page Mill Road
538878Ssteve.reinhardt@amd.com#     Palo Alto, California  94304
542761Sstever@eecs.umich.edu#
552761Sstever@eecs.umich.edu# Redistributions of source code must retain the above copyright notice,
562761Sstever@eecs.umich.edu# this list of conditions and the following disclaimer.  Redistributions
572761Sstever@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
582761Sstever@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
598878Ssteve.reinhardt@amd.com# other materials provided with the distribution.  Neither the name of
608878Ssteve.reinhardt@amd.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
612632Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from
622632Sstever@eecs.umich.edu# this software without specific prior written permission.  No right of
638878Ssteve.reinhardt@amd.com# sublicense is granted herewith.  Derivatives of the software and
648878Ssteve.reinhardt@amd.com# output created using the software may be prepared, but only for
652632Sstever@eecs.umich.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
66955SN/A# others provided: (i) the others agree to abide by the list of
67955SN/A# conditions herein which includes the Non-Commercial Use restrictions;
68955SN/A# and (ii) such Derivatives of the software include the above copyright
695863Snate@binkert.org# notice to acknowledge the contribution from this software where
705863Snate@binkert.org# applicable, this list of conditions and the disclaimer below.
715863Snate@binkert.org#
725863Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
735863Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
745863Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
755863Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
765863Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
775863Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
785863Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
795863Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
808878Ssteve.reinhardt@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
815863Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
825863Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
835863Snate@binkert.org#
845863Snate@binkert.org# Authors: Gabe Black
855863Snate@binkert.org
865863Snate@binkert.orgImport('*')
875863Snate@binkert.org
885863Snate@binkert.orgif env['TARGET_ISA'] == 'x86':
895863Snate@binkert.org    Source('cpuid.cc')
905863Snate@binkert.org    Source('emulenv.cc')
915863Snate@binkert.org    Source('faults.cc')
925863Snate@binkert.org    Source('insts/microfpop.cc')
935863Snate@binkert.org    Source('insts/microldstop.cc')
945863Snate@binkert.org    Source('insts/micromediaop.cc')
955863Snate@binkert.org    Source('insts/microop.cc')
968878Ssteve.reinhardt@amd.com    Source('insts/microregop.cc')
975863Snate@binkert.org    Source('insts/static_inst.cc')
985863Snate@binkert.org    Source('isa.cc')
995863Snate@binkert.org    Source('nativetrace.cc')
1006654Snate@binkert.org    Source('pagetable.cc')
101955SN/A    Source('predecoder.cc')
1025396Ssaidi@eecs.umich.edu    Source('predecoder_tables.cc')
1035863Snate@binkert.org    Source('remote_gdb.cc')
1045863Snate@binkert.org    Source('tlb.cc')
1054202Sbinkertn@umich.edu    Source('utility.cc')
1065863Snate@binkert.org
1075863Snate@binkert.org    SimObject('X86NativeTrace.py')
1085863Snate@binkert.org
1095863Snate@binkert.org    SimObject('X86TLB.py')
110955SN/A    TraceFlag('Predecoder', "Predecoder debug output")
1116654Snate@binkert.org    TraceFlag('X86', "Generic X86 ISA debugging")
1125273Sstever@gmail.com
1135871Snate@binkert.org    if env['FULL_SYSTEM']:
1145273Sstever@gmail.com        TraceFlag('LocalApic', "Local APIC debugging")
1156655Snate@binkert.org        TraceFlag('PageTableWalker', \
1168878Ssteve.reinhardt@amd.com                  "Page table walker state machine debugging")
1176655Snate@binkert.org        TraceFlag('Faults', "Trace all faults/exceptions/traps")
1186655Snate@binkert.org
1199219Spower.jg@gmail.com        SimObject('X86LocalApic.py')
1206655Snate@binkert.org        SimObject('X86System.py')
1215871Snate@binkert.org
1226654Snate@binkert.org        # Full-system sources
1238947Sandreas.hansson@arm.com        Source('interrupts.cc')
1245396Ssaidi@eecs.umich.edu        Source('linux/system.cc')
1258120Sgblack@eecs.umich.edu        Source('pagetable_walker.cc')
1268120Sgblack@eecs.umich.edu        Source('system.cc')
1278120Sgblack@eecs.umich.edu        Source('stacktrace.cc')
1288120Sgblack@eecs.umich.edu        Source('vtophys.cc')
1298120Sgblack@eecs.umich.edu    else:
1308120Sgblack@eecs.umich.edu        Source('process.cc')
1318120Sgblack@eecs.umich.edu
1328120Sgblack@eecs.umich.edu        Source('linux/linux.cc')
1338879Ssteve.reinhardt@amd.com        Source('linux/process.cc')
1348879Ssteve.reinhardt@amd.com        Source('linux/syscalls.cc')
1358879Ssteve.reinhardt@amd.com
1368879Ssteve.reinhardt@amd.com    python_files = (
1378879Ssteve.reinhardt@amd.com        '__init__.py',
1388879Ssteve.reinhardt@amd.com        'general_purpose/__init__.py',
1398879Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/__init__.py',
1408879Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/add_and_subtract.py',
1418879Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/increment_and_decrement.py',
1428879Ssteve.reinhardt@amd.com        'general_purpose/arithmetic/multiply_and_divide.py',
1438879Ssteve.reinhardt@amd.com        'general_purpose/cache_and_memory_management.py',
1448879Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/__init__.py',
1458879Ssteve.reinhardt@amd.com        'general_purpose/compare_and_test/bit_scan.py',
1468120Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bit_test.py',
1478120Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/bounds.py',
1488120Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/compare.py',
1498120Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/set_byte_on_condition.py',
1508120Sgblack@eecs.umich.edu        'general_purpose/compare_and_test/test.py',
1518120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/__init__.py',
1528120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/call.py',
1538120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/conditional_jump.py',
1548120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/interrupts_and_exceptions.py',
1558120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/jump.py',
1568120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/loop.py',
1578120Sgblack@eecs.umich.edu        'general_purpose/control_transfer/xreturn.py',
1588120Sgblack@eecs.umich.edu        'general_purpose/data_conversion/__init__.py',
1598120Sgblack@eecs.umich.edu        'general_purpose/data_conversion/ascii_adjust.py',
1608879Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/bcd_adjust.py',
1618879Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/endian_conversion.py',
1628879Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/extract_sign_mask.py',
1638879Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/sign_extension.py',
1648879Ssteve.reinhardt@amd.com        'general_purpose/data_conversion/translate.py',
1658879Ssteve.reinhardt@amd.com        'general_purpose/data_transfer/__init__.py',
1668879Ssteve.reinhardt@amd.com        'general_purpose/data_transfer/conditional_move.py',
1678879Ssteve.reinhardt@amd.com        'general_purpose/data_transfer/move.py',
1689227Sandreas.hansson@arm.com        'general_purpose/data_transfer/stack_operations.py',
1699227Sandreas.hansson@arm.com        'general_purpose/data_transfer/xchg.py',
1708879Ssteve.reinhardt@amd.com        'general_purpose/flags/__init__.py',
1718879Ssteve.reinhardt@amd.com        'general_purpose/flags/load_and_store.py',
1728879Ssteve.reinhardt@amd.com        'general_purpose/flags/push_and_pop.py',
1738879Ssteve.reinhardt@amd.com        'general_purpose/flags/set_and_clear.py',
1748120Sgblack@eecs.umich.edu        'general_purpose/input_output/__init__.py',
1758947Sandreas.hansson@arm.com        'general_purpose/input_output/general_io.py',
1767816Ssteve.reinhardt@amd.com        'general_purpose/input_output/string_io.py',
1775871Snate@binkert.org        'general_purpose/load_effective_address.py',
1785871Snate@binkert.org        'general_purpose/load_segment_registers.py',
1796121Snate@binkert.org        'general_purpose/logical.py',
1805871Snate@binkert.org        'general_purpose/no_operation.py',
1815871Snate@binkert.org        'general_purpose/rotate_and_shift/__init__.py',
1829119Sandreas.hansson@arm.com        'general_purpose/rotate_and_shift/rotate.py',
1839396Sandreas.hansson@arm.com        'general_purpose/rotate_and_shift/shift.py',
1849396Sandreas.hansson@arm.com        'general_purpose/semaphores.py',
185955SN/A        'general_purpose/string/__init__.py',
1869416SAndreas.Sandberg@ARM.com        'general_purpose/string/compare_strings.py',
1879416SAndreas.Sandberg@ARM.com        'general_purpose/string/load_string.py',
1889416SAndreas.Sandberg@ARM.com        'general_purpose/string/move_string.py',
1899416SAndreas.Sandberg@ARM.com        'general_purpose/string/scan_string.py',
1909416SAndreas.Sandberg@ARM.com        'general_purpose/string/store_string.py',
1919416SAndreas.Sandberg@ARM.com        'general_purpose/system_calls.py',
1929416SAndreas.Sandberg@ARM.com        'romutil.py',
1935871Snate@binkert.org        'system/__init__.py',
1945871Snate@binkert.org        'system/control_registers.py',
1959416SAndreas.Sandberg@ARM.com        'system/halt.py',
1969416SAndreas.Sandberg@ARM.com        'system/invlpg.py',
1975871Snate@binkert.org        'system/undefined_operation.py',
198955SN/A        'system/msrs.py',
1996121Snate@binkert.org        'system/segmentation.py',
2008881Smarc.orr@gmail.com        'simd128/__init__.py',
2016121Snate@binkert.org        'simd128/integer/__init__.py',
2026121Snate@binkert.org        'simd128/integer/data_transfer/__init__.py',
2031533SN/A        'simd128/integer/data_transfer/move.py',
2049239Sandreas.hansson@arm.com        'simd128/integer/data_transfer/move_non_temporal.py',
2059239Sandreas.hansson@arm.com        'simd128/integer/data_transfer/move_mask.py',
2069239Sandreas.hansson@arm.com        'simd128/integer/data_conversion/__init__.py',
2079239Sandreas.hansson@arm.com        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
2089239Sandreas.hansson@arm.com        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
2099239Sandreas.hansson@arm.com        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
2109239Sandreas.hansson@arm.com        'simd128/integer/data_reordering/__init__.py',
2119239Sandreas.hansson@arm.com        'simd128/integer/data_reordering/unpack_and_interleave.py',
2129239Sandreas.hansson@arm.com        'simd128/integer/data_reordering/pack_with_saturation.py',
2139239Sandreas.hansson@arm.com        'simd128/integer/data_reordering/extract_and_insert.py',
2149239Sandreas.hansson@arm.com        'simd128/integer/data_reordering/shuffle.py',
2159239Sandreas.hansson@arm.com        'simd128/integer/arithmetic/__init__.py',
2166655Snate@binkert.org        'simd128/integer/arithmetic/subtraction.py',
2176655Snate@binkert.org        'simd128/integer/arithmetic/addition.py',
2186655Snate@binkert.org        'simd128/integer/arithmetic/multiplication.py',
2196655Snate@binkert.org        'simd128/integer/arithmetic/multiply_add.py',
2205871Snate@binkert.org        'simd128/integer/arithmetic/average.py',
2215871Snate@binkert.org        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
2225863Snate@binkert.org        'simd128/integer/shift/__init__.py',
2235871Snate@binkert.org        'simd128/integer/shift/right_arithmetic_shift.py',
2248878Ssteve.reinhardt@amd.com        'simd128/integer/shift/left_logical_shift.py',
2255871Snate@binkert.org        'simd128/integer/shift/right_logical_shift.py',
2265871Snate@binkert.org        'simd128/integer/compare/__init__.py',
2275871Snate@binkert.org        'simd128/integer/compare/compare_and_write_mask.py',
2285863Snate@binkert.org        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
2296121Snate@binkert.org        'simd128/integer/logical/__init__.py',
2305863Snate@binkert.org        'simd128/integer/logical/pand.py',
2315871Snate@binkert.org        'simd128/integer/logical/por.py',
2328336Ssteve.reinhardt@amd.com        'simd128/integer/logical/exclusive_or.py',
2338336Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/__init__.py',
2348336Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
2358336Ssteve.reinhardt@amd.com        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
2364678Snate@binkert.org        'simd128/floating_point/__init__.py',
2378336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_transfer/__init__.py',
2388336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_transfer/move_mask.py',
2398336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_transfer/move.py',
2404678Snate@binkert.org        'simd128/floating_point/data_transfer/move_with_duplication.py',
2414678Snate@binkert.org        'simd128/floating_point/data_transfer/move_non_temporal.py',
2424678Snate@binkert.org        'simd128/floating_point/data_conversion/__init__.py',
2434678Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
2447827Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
2457827Snate@binkert.org        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
2468336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
2474678Snate@binkert.org        'simd128/floating_point/data_reordering/__init__.py',
2488336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
2498336Ssteve.reinhardt@amd.com        'simd128/floating_point/data_reordering/shuffle.py',
2508336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/__init__.py',
2518336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/subtraction.py',
2528336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/addition.py',
2538336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
2545871Snate@binkert.org        'simd128/floating_point/arithmetic/horizontal_addition.py',
2555871Snate@binkert.org        'simd128/floating_point/arithmetic/square_root.py',
2568336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
2578336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/multiplication.py',
2588336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/division.py',
2598336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
2608336Ssteve.reinhardt@amd.com        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
2615871Snate@binkert.org        'simd128/floating_point/compare/__init__.py',
2628336Ssteve.reinhardt@amd.com        'simd128/floating_point/compare/compare_and_write_mask.py',
2638336Ssteve.reinhardt@amd.com        'simd128/floating_point/compare/compare_and_write_rflags.py',
2648336Ssteve.reinhardt@amd.com        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
2658336Ssteve.reinhardt@amd.com        'simd128/floating_point/logical/__init__.py',
2668336Ssteve.reinhardt@amd.com        'simd128/floating_point/logical/andp.py',
2674678Snate@binkert.org        'simd128/floating_point/logical/orp.py',
2685871Snate@binkert.org        'simd128/floating_point/logical/exclusive_or.py',
2694678Snate@binkert.org        'simd64/__init__.py',
2708336Ssteve.reinhardt@amd.com        'simd64/integer/__init__.py',
2718336Ssteve.reinhardt@amd.com        'simd64/integer/data_transfer/__init__.py',
2728336Ssteve.reinhardt@amd.com        'simd64/integer/data_transfer/move_mask.py',
2738336Ssteve.reinhardt@amd.com        'simd64/integer/data_transfer/move.py',
2748336Ssteve.reinhardt@amd.com        'simd64/integer/data_transfer/move_non_temporal.py',
2758336Ssteve.reinhardt@amd.com        'simd64/integer/exit_media_state.py',
2768336Ssteve.reinhardt@amd.com        'simd64/integer/data_reordering/__init__.py',
2778336Ssteve.reinhardt@amd.com        'simd64/integer/data_reordering/unpack_and_interleave.py',
2788336Ssteve.reinhardt@amd.com        'simd64/integer/data_reordering/pack_with_saturation.py',
2798336Ssteve.reinhardt@amd.com        'simd64/integer/data_reordering/extract_and_insert.py',
2808336Ssteve.reinhardt@amd.com        'simd64/integer/data_reordering/shuffle_and_swap.py',
2818336Ssteve.reinhardt@amd.com        'simd64/integer/data_conversion.py',
2828336Ssteve.reinhardt@amd.com        'simd64/integer/arithmetic/__init__.py',
2838336Ssteve.reinhardt@amd.com        'simd64/integer/arithmetic/subtraction.py',
2848336Ssteve.reinhardt@amd.com        'simd64/integer/arithmetic/addition.py',
2858336Ssteve.reinhardt@amd.com        'simd64/integer/arithmetic/multiplication.py',
2868336Ssteve.reinhardt@amd.com        'simd64/integer/arithmetic/multiply_add.py',
2875871Snate@binkert.org        'simd64/integer/arithmetic/average.py',
2886121Snate@binkert.org        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
289955SN/A        'simd64/integer/shift/__init__.py',
290955SN/A        'simd64/integer/shift/right_arithmetic_shift.py',
2912632Sstever@eecs.umich.edu        'simd64/integer/shift/left_logical_shift.py',
2922632Sstever@eecs.umich.edu        'simd64/integer/shift/right_logical_shift.py',
293955SN/A        'simd64/integer/compare/__init__.py',
294955SN/A        'simd64/integer/compare/compare_and_write_mask.py',
295955SN/A        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
296955SN/A        'simd64/integer/logical/__init__.py',
2978878Ssteve.reinhardt@amd.com        'simd64/integer/logical/pand.py',
298955SN/A        'simd64/integer/logical/por.py',
2992632Sstever@eecs.umich.edu        'simd64/integer/logical/exclusive_or.py',
3002632Sstever@eecs.umich.edu        'simd64/integer/save_and_restore_state.py',
3012632Sstever@eecs.umich.edu        'simd64/floating_point/__init__.py',
3022632Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/__init__.py',
3032632Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/subtraction.py',
3042632Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/addition.py',
3052632Sstever@eecs.umich.edu        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
3068268Ssteve.reinhardt@amd.com        'simd64/floating_point/arithmetic/multiplication.py',
3078268Ssteve.reinhardt@amd.com        'simd64/floating_point/arithmetic/accumulation.py',
3088268Ssteve.reinhardt@amd.com        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
3098268Ssteve.reinhardt@amd.com        'simd64/floating_point/data_conversion.py',
3108268Ssteve.reinhardt@amd.com        'simd64/floating_point/compare/__init__.py',
3118268Ssteve.reinhardt@amd.com        'simd64/floating_point/compare/compare_and_write_mask.py',
3128268Ssteve.reinhardt@amd.com        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
3132632Sstever@eecs.umich.edu        'x87/__init__.py',
3142632Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/__init__.py',
3152632Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
3162632Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
3178268Ssteve.reinhardt@amd.com        'x87/data_transfer_and_conversion/exchange.py',
3182632Sstever@eecs.umich.edu        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
3198268Ssteve.reinhardt@amd.com        'x87/data_transfer_and_conversion/conditional_move.py',
3208268Ssteve.reinhardt@amd.com        'x87/data_transfer_and_conversion/extract.py',
3218268Ssteve.reinhardt@amd.com        'x87/load_constants/__init__.py',
3228268Ssteve.reinhardt@amd.com        'x87/load_constants/load_0_1_or_pi.py',
3233718Sstever@eecs.umich.edu        'x87/load_constants/load_logarithm.py',
3242634Sstever@eecs.umich.edu        'x87/arithmetic/__init__.py',
3252634Sstever@eecs.umich.edu        'x87/arithmetic/subtraction.py',
3265863Snate@binkert.org        'x87/arithmetic/addition.py',
3272638Sstever@eecs.umich.edu        'x87/arithmetic/partial_remainder.py',
3288268Ssteve.reinhardt@amd.com        'x87/arithmetic/multiplication.py',
3292632Sstever@eecs.umich.edu        'x87/arithmetic/division.py',
3302632Sstever@eecs.umich.edu        'x87/arithmetic/change_sign.py',
3312632Sstever@eecs.umich.edu        'x87/arithmetic/round.py',
3322632Sstever@eecs.umich.edu        'x87/arithmetic/square_root.py',
3332632Sstever@eecs.umich.edu        'x87/transcendental_functions/__init__.py',
3341858SN/A        'x87/transcendental_functions/trigonometric_functions.py',
3353716Sstever@eecs.umich.edu        'x87/transcendental_functions/logarithmic_functions.py',
3362638Sstever@eecs.umich.edu        'x87/compare_and_test/__init__.py',
3372638Sstever@eecs.umich.edu        'x87/compare_and_test/classify.py',
3382638Sstever@eecs.umich.edu        'x87/compare_and_test/test.py',
3392638Sstever@eecs.umich.edu        'x87/compare_and_test/floating_point_ordered_compare.py',
3402638Sstever@eecs.umich.edu        'x87/compare_and_test/floating_point_unordered_compare.py',
3412638Sstever@eecs.umich.edu        'x87/compare_and_test/integer_compare.py',
3422638Sstever@eecs.umich.edu        'x87/stack_management/__init__.py',
3435863Snate@binkert.org        'x87/stack_management/stack_control.py',
3445863Snate@binkert.org        'x87/stack_management/clear_state.py',
3455863Snate@binkert.org        'x87/control/__init__.py',
346955SN/A        'x87/control/clear_exceptions.py',
3475341Sstever@gmail.com        'x87/control/initialize.py',
3485341Sstever@gmail.com        'x87/control/wait_for_exceptions.py',
3495863Snate@binkert.org        'x87/control/save_x87_status_word.py',
3507756SAli.Saidi@ARM.com        'x87/control/save_and_restore_x87_control_word.py',
3515341Sstever@gmail.com        'x87/control/save_and_restore_x87_environment.py',
3526121Snate@binkert.org        'x87/no_operation.py'
3534494Ssaidi@eecs.umich.edu        )
3546121Snate@binkert.org
3551105SN/A
3562667Sstever@eecs.umich.edu    # Add in files generated by the ISA description.
3572667Sstever@eecs.umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
3582667Sstever@eecs.umich.edu    for f in isa_desc_files:
3592667Sstever@eecs.umich.edu        # Add in python file dependencies that won't be caught otherwise
3606121Snate@binkert.org        for pyfile in python_files:
3612667Sstever@eecs.umich.edu            env.Depends(f, "isa/insts/%s" % pyfile)
3625341Sstever@gmail.com        # Only non-header files need to be compiled.
3635863Snate@binkert.org        if not f.path.endswith('.hh'):
3645341Sstever@gmail.com            Source(f)
3655341Sstever@gmail.com