SConscript revision 6316:51f3026d4cbb
112855Sgabeblack@google.com# -*- mode:python -*-
212855Sgabeblack@google.com
312855Sgabeblack@google.com# Copyright (c) 2005-2006 The Regents of The University of Michigan
412855Sgabeblack@google.com# All rights reserved.
512855Sgabeblack@google.com#
612855Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without
712855Sgabeblack@google.com# modification, are permitted provided that the following conditions are
812855Sgabeblack@google.com# met: redistributions of source code must retain the above copyright
912855Sgabeblack@google.com# notice, this list of conditions and the following disclaimer;
1012855Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright
1112855Sgabeblack@google.com# notice, this list of conditions and the following disclaimer in the
1212855Sgabeblack@google.com# documentation and/or other materials provided with the distribution;
1312855Sgabeblack@google.com# neither the name of the copyright holders nor the names of its
1412855Sgabeblack@google.com# contributors may be used to endorse or promote products derived from
1512855Sgabeblack@google.com# this software without specific prior written permission.
1612855Sgabeblack@google.com#
1712855Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1812855Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1912855Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2012855Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2112855Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2212855Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2312855Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2412855Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2512855Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2612855Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2712855Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2812855Sgabeblack@google.com#
2912855Sgabeblack@google.com# Authors: Gabe Black
3012855Sgabeblack@google.com
3112855Sgabeblack@google.com# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
3212855Sgabeblack@google.com# All rights reserved.
3312855Sgabeblack@google.com#
3412855Sgabeblack@google.com# Redistribution and use of this software in source and binary forms,
3512855Sgabeblack@google.com# with or without modification, are permitted provided that the
3612855Sgabeblack@google.com# following conditions are met:
3712855Sgabeblack@google.com#
3812855Sgabeblack@google.com# The software must be used only for Non-Commercial Use which means any
3912855Sgabeblack@google.com# use which is NOT directed to receiving any direct monetary
4012855Sgabeblack@google.com# compensation for, or commercial advantage from such use.  Illustrative
4112855Sgabeblack@google.com# examples of non-commercial use are academic research, personal study,
4212855Sgabeblack@google.com# teaching, education and corporate research & development.
4312855Sgabeblack@google.com# Illustrative examples of commercial use are distributing products for
4412855Sgabeblack@google.com# commercial advantage and providing services using the software for
4512855Sgabeblack@google.com# commercial advantage.
4612855Sgabeblack@google.com#
4712855Sgabeblack@google.com# If you wish to use this software or functionality therein that may be
4812855Sgabeblack@google.com# covered by patents for commercial use, please contact:
4912855Sgabeblack@google.com#     Director of Intellectual Property Licensing
5012855Sgabeblack@google.com#     Office of Strategy and Technology
5112855Sgabeblack@google.com#     Hewlett-Packard Company
5212855Sgabeblack@google.com#     1501 Page Mill Road
5312855Sgabeblack@google.com#     Palo Alto, California  94304
5412855Sgabeblack@google.com#
5512855Sgabeblack@google.com# Redistributions of source code must retain the above copyright notice,
5612855Sgabeblack@google.com# this list of conditions and the following disclaimer.  Redistributions
5712855Sgabeblack@google.com# in binary form must reproduce the above copyright notice, this list of
5812855Sgabeblack@google.com# conditions and the following disclaimer in the documentation and/or
5912855Sgabeblack@google.com# other materials provided with the distribution.  Neither the name of
6012855Sgabeblack@google.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
6112855Sgabeblack@google.com# contributors may be used to endorse or promote products derived from
6212855Sgabeblack@google.com# this software without specific prior written permission.  No right of
6312855Sgabeblack@google.com# sublicense is granted herewith.  Derivatives of the software and
6412855Sgabeblack@google.com# output created using the software may be prepared, but only for
6512855Sgabeblack@google.com# Non-Commercial Uses.  Derivatives of the software may be shared with
6612855Sgabeblack@google.com# others provided: (i) the others agree to abide by the list of
6712855Sgabeblack@google.com# conditions herein which includes the Non-Commercial Use restrictions;
6812855Sgabeblack@google.com# and (ii) such Derivatives of the software include the above copyright
6912855Sgabeblack@google.com# notice to acknowledge the contribution from this software where
7012855Sgabeblack@google.com# applicable, this list of conditions and the disclaimer below.
7112855Sgabeblack@google.com#
7212855Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
7312855Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7412855Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7512855Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7612855Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
7712855Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
7812855Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
7912855Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
8012855Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
8112855Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
8212855Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8312855Sgabeblack@google.com#
8412855Sgabeblack@google.com# Authors: Gabe Black
8512855Sgabeblack@google.com
8612855Sgabeblack@google.comImport('*')
8712855Sgabeblack@google.com
8812855Sgabeblack@google.comif env['TARGET_ISA'] == 'x86':
8912855Sgabeblack@google.com    Source('cpuid.cc')
9012855Sgabeblack@google.com    Source('emulenv.cc')
9112855Sgabeblack@google.com    Source('faults.cc')
9212855Sgabeblack@google.com    Source('insts/microfpop.cc')
9312855Sgabeblack@google.com    Source('insts/microldstop.cc')
9412855Sgabeblack@google.com    Source('insts/microop.cc')
9512855Sgabeblack@google.com    Source('insts/microregop.cc')
9612855Sgabeblack@google.com    Source('insts/static_inst.cc')
9712855Sgabeblack@google.com    Source('isa.cc')
9812855Sgabeblack@google.com    Source('miscregfile.cc')
9912855Sgabeblack@google.com    Source('pagetable.cc')
10012855Sgabeblack@google.com    Source('predecoder.cc')
10112855Sgabeblack@google.com    Source('predecoder_tables.cc')
10212855Sgabeblack@google.com    Source('regfile.cc')
10312855Sgabeblack@google.com    Source('remote_gdb.cc')
10412855Sgabeblack@google.com    Source('tlb.cc')
10512855Sgabeblack@google.com    Source('utility.cc')
10612855Sgabeblack@google.com
10712855Sgabeblack@google.com    SimObject('X86TLB.py')
10812855Sgabeblack@google.com    TraceFlag('Predecoder', "Predecoder debug output")
10912855Sgabeblack@google.com    TraceFlag('X86', "Generic X86 ISA debugging")
11012855Sgabeblack@google.com
11112855Sgabeblack@google.com    if env['FULL_SYSTEM']:
11212855Sgabeblack@google.com        TraceFlag('LocalApic', "Local APIC debugging")
11312855Sgabeblack@google.com        TraceFlag('PageTableWalker', \
11412855Sgabeblack@google.com                  "Page table walker state machine debugging")
11512855Sgabeblack@google.com        TraceFlag('Faults', "Trace all faults/exceptions/traps")
11612855Sgabeblack@google.com
11712855Sgabeblack@google.com        SimObject('X86LocalApic.py')
11812855Sgabeblack@google.com        SimObject('X86System.py')
11912855Sgabeblack@google.com
12012855Sgabeblack@google.com        # Full-system sources
12112855Sgabeblack@google.com        Source('interrupts.cc')
12212855Sgabeblack@google.com        Source('linux/system.cc')
12312855Sgabeblack@google.com        Source('pagetable_walker.cc')
12412855Sgabeblack@google.com        Source('system.cc')
12512855Sgabeblack@google.com        Source('stacktrace.cc')
12612855Sgabeblack@google.com        Source('vtophys.cc')
12712855Sgabeblack@google.com    else:
12812855Sgabeblack@google.com        Source('process.cc')
12912855Sgabeblack@google.com
13012855Sgabeblack@google.com        Source('linux/linux.cc')
13112855Sgabeblack@google.com        Source('linux/process.cc')
13212855Sgabeblack@google.com        Source('linux/syscalls.cc')
13312855Sgabeblack@google.com
13412855Sgabeblack@google.com    python_files = (
13512855Sgabeblack@google.com        '__init__.py',
13612855Sgabeblack@google.com        'general_purpose/__init__.py',
13712855Sgabeblack@google.com        'general_purpose/arithmetic/__init__.py',
13812855Sgabeblack@google.com        'general_purpose/arithmetic/add_and_subtract.py',
13912855Sgabeblack@google.com        'general_purpose/arithmetic/increment_and_decrement.py',
14012855Sgabeblack@google.com        'general_purpose/arithmetic/multiply_and_divide.py',
14112855Sgabeblack@google.com        'general_purpose/cache_and_memory_management.py',
14212855Sgabeblack@google.com        'general_purpose/compare_and_test/__init__.py',
14312855Sgabeblack@google.com        'general_purpose/compare_and_test/bit_scan.py',
14412855Sgabeblack@google.com        'general_purpose/compare_and_test/bit_test.py',
14512855Sgabeblack@google.com        'general_purpose/compare_and_test/bounds.py',
14612855Sgabeblack@google.com        'general_purpose/compare_and_test/compare.py',
14712855Sgabeblack@google.com        'general_purpose/compare_and_test/set_byte_on_condition.py',
14812855Sgabeblack@google.com        'general_purpose/compare_and_test/test.py',
14912855Sgabeblack@google.com        'general_purpose/control_transfer/__init__.py',
15012855Sgabeblack@google.com        'general_purpose/control_transfer/call.py',
15112855Sgabeblack@google.com        'general_purpose/control_transfer/conditional_jump.py',
15212855Sgabeblack@google.com        'general_purpose/control_transfer/interrupts_and_exceptions.py',
15312855Sgabeblack@google.com        'general_purpose/control_transfer/jump.py',
15412855Sgabeblack@google.com        'general_purpose/control_transfer/loop.py',
15512855Sgabeblack@google.com        'general_purpose/control_transfer/xreturn.py',
15612855Sgabeblack@google.com        'general_purpose/data_conversion/__init__.py',
15712855Sgabeblack@google.com        'general_purpose/data_conversion/ascii_adjust.py',
15812855Sgabeblack@google.com        'general_purpose/data_conversion/bcd_adjust.py',
15912855Sgabeblack@google.com        'general_purpose/data_conversion/endian_conversion.py',
16012855Sgabeblack@google.com        'general_purpose/data_conversion/extract_sign_mask.py',
16112855Sgabeblack@google.com        'general_purpose/data_conversion/sign_extension.py',
16212855Sgabeblack@google.com        'general_purpose/data_conversion/translate.py',
16312855Sgabeblack@google.com        'general_purpose/data_transfer/__init__.py',
16412855Sgabeblack@google.com        'general_purpose/data_transfer/conditional_move.py',
16512855Sgabeblack@google.com        'general_purpose/data_transfer/move.py',
16612855Sgabeblack@google.com        'general_purpose/data_transfer/stack_operations.py',
16712855Sgabeblack@google.com        'general_purpose/data_transfer/xchg.py',
16812855Sgabeblack@google.com        'general_purpose/flags/__init__.py',
16912855Sgabeblack@google.com        'general_purpose/flags/load_and_store.py',
17012855Sgabeblack@google.com        'general_purpose/flags/push_and_pop.py',
17112855Sgabeblack@google.com        'general_purpose/flags/set_and_clear.py',
17212855Sgabeblack@google.com        'general_purpose/input_output/__init__.py',
17312855Sgabeblack@google.com        'general_purpose/input_output/general_io.py',
17412855Sgabeblack@google.com        'general_purpose/input_output/string_io.py',
17512855Sgabeblack@google.com        'general_purpose/load_effective_address.py',
17612855Sgabeblack@google.com        'general_purpose/load_segment_registers.py',
17712855Sgabeblack@google.com        'general_purpose/logical.py',
17812855Sgabeblack@google.com        'general_purpose/no_operation.py',
17912855Sgabeblack@google.com        'general_purpose/rotate_and_shift/__init__.py',
18012855Sgabeblack@google.com        'general_purpose/rotate_and_shift/rotate.py',
18112855Sgabeblack@google.com        'general_purpose/rotate_and_shift/shift.py',
18212855Sgabeblack@google.com        'general_purpose/semaphores.py',
18312855Sgabeblack@google.com        'general_purpose/string/__init__.py',
18412855Sgabeblack@google.com        'general_purpose/string/compare_strings.py',
18512855Sgabeblack@google.com        'general_purpose/string/load_string.py',
18612855Sgabeblack@google.com        'general_purpose/string/move_string.py',
18712855Sgabeblack@google.com        'general_purpose/string/scan_string.py',
18812855Sgabeblack@google.com        'general_purpose/string/store_string.py',
18912855Sgabeblack@google.com        'general_purpose/system_calls.py',
19012855Sgabeblack@google.com        'romutil.py',
19112855Sgabeblack@google.com        'system/__init__.py',
19212855Sgabeblack@google.com        'system/control_registers.py',
19312855Sgabeblack@google.com        'system/halt.py',
19412855Sgabeblack@google.com        'system/invlpg.py',
19512855Sgabeblack@google.com        'system/undefined_operation.py',
19612855Sgabeblack@google.com        'system/msrs.py',
19712855Sgabeblack@google.com        'system/segmentation.py',
19812855Sgabeblack@google.com        'simd128/__init__.py',
19912855Sgabeblack@google.com        'simd128/integer/__init__.py',
20012855Sgabeblack@google.com        'simd128/integer/data_transfer/__init__.py',
20112855Sgabeblack@google.com        'simd128/integer/data_transfer/move.py',
20212855Sgabeblack@google.com        'simd128/integer/data_transfer/move_non_temporal.py',
20312855Sgabeblack@google.com        'simd128/integer/data_transfer/move_mask.py',
20412855Sgabeblack@google.com        'simd128/integer/data_conversion/__init__.py',
20512855Sgabeblack@google.com        'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py',
20612855Sgabeblack@google.com        'simd128/integer/data_conversion/convert_integer_to_floating_point.py',
20712855Sgabeblack@google.com        'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py',
20812855Sgabeblack@google.com        'simd128/integer/data_reordering/__init__.py',
20912855Sgabeblack@google.com        'simd128/integer/data_reordering/unpack_and_interleave.py',
21012855Sgabeblack@google.com        'simd128/integer/data_reordering/pack_with_saturation.py',
21112855Sgabeblack@google.com        'simd128/integer/data_reordering/extract_and_insert.py',
21212855Sgabeblack@google.com        'simd128/integer/data_reordering/shuffle.py',
21312855Sgabeblack@google.com        'simd128/integer/arithmetic/__init__.py',
21412855Sgabeblack@google.com        'simd128/integer/arithmetic/subtraction.py',
21512855Sgabeblack@google.com        'simd128/integer/arithmetic/addition.py',
21612855Sgabeblack@google.com        'simd128/integer/arithmetic/multiplication.py',
21712855Sgabeblack@google.com        'simd128/integer/arithmetic/multiply_add.py',
21812855Sgabeblack@google.com        'simd128/integer/arithmetic/average.py',
21912855Sgabeblack@google.com        'simd128/integer/arithmetic/sum_of_absolute_differences.py',
22012855Sgabeblack@google.com        'simd128/integer/shift/__init__.py',
22112855Sgabeblack@google.com        'simd128/integer/shift/right_arithmetic_shift.py',
22212855Sgabeblack@google.com        'simd128/integer/shift/left_logical_shift.py',
22312855Sgabeblack@google.com        'simd128/integer/shift/right_logical_shift.py',
22412855Sgabeblack@google.com        'simd128/integer/compare/__init__.py',
22512855Sgabeblack@google.com        'simd128/integer/compare/compare_and_write_mask.py',
22612855Sgabeblack@google.com        'simd128/integer/compare/compare_and_write_minimum_or_maximum.py',
22712855Sgabeblack@google.com        'simd128/integer/logical/__init__.py',
22812855Sgabeblack@google.com        'simd128/integer/logical/pand.py',
22912855Sgabeblack@google.com        'simd128/integer/logical/por.py',
23012855Sgabeblack@google.com        'simd128/integer/logical/exclusive_or.py',
23112855Sgabeblack@google.com        'simd128/integer/save_and_restore_state/__init__.py',
23212855Sgabeblack@google.com        'simd128/integer/save_and_restore_state/save_and_restore_state.py',
23312855Sgabeblack@google.com        'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py',
23412855Sgabeblack@google.com        'simd128/floating_point/__init__.py',
23512855Sgabeblack@google.com        'simd128/floating_point/data_transfer/__init__.py',
23612855Sgabeblack@google.com        'simd128/floating_point/data_transfer/move_mask.py',
23712855Sgabeblack@google.com        'simd128/floating_point/data_transfer/move.py',
23812855Sgabeblack@google.com        'simd128/floating_point/data_transfer/move_with_duplication.py',
23912855Sgabeblack@google.com        'simd128/floating_point/data_transfer/move_non_temporal.py',
24012855Sgabeblack@google.com        'simd128/floating_point/data_conversion/__init__.py',
24112855Sgabeblack@google.com        'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py',
24212855Sgabeblack@google.com        'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py',
24312855Sgabeblack@google.com        'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py',
24412855Sgabeblack@google.com        'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py',
24512855Sgabeblack@google.com        'simd128/floating_point/data_reordering/__init__.py',
24612855Sgabeblack@google.com        'simd128/floating_point/data_reordering/unpack_and_interleave.py',
24712855Sgabeblack@google.com        'simd128/floating_point/data_reordering/shuffle.py',
24812855Sgabeblack@google.com        'simd128/floating_point/arithmetic/__init__.py',
24912855Sgabeblack@google.com        'simd128/floating_point/arithmetic/subtraction.py',
25012855Sgabeblack@google.com        'simd128/floating_point/arithmetic/addition.py',
25112855Sgabeblack@google.com        'simd128/floating_point/arithmetic/horizontal_subtraction.py',
25212855Sgabeblack@google.com        'simd128/floating_point/arithmetic/horizontal_addition.py',
25312855Sgabeblack@google.com        'simd128/floating_point/arithmetic/square_root.py',
25412855Sgabeblack@google.com        'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py',
25512855Sgabeblack@google.com        'simd128/floating_point/arithmetic/multiplication.py',
25612855Sgabeblack@google.com        'simd128/floating_point/arithmetic/division.py',
25712855Sgabeblack@google.com        'simd128/floating_point/arithmetic/reciprocal_square_root.py',
25812855Sgabeblack@google.com        'simd128/floating_point/arithmetic/reciprocal_estimation.py',
25912855Sgabeblack@google.com        'simd128/floating_point/compare/__init__.py',
26012855Sgabeblack@google.com        'simd128/floating_point/compare/compare_and_write_mask.py',
26112855Sgabeblack@google.com        'simd128/floating_point/compare/compare_and_write_rflags.py',
26212855Sgabeblack@google.com        'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py',
26312855Sgabeblack@google.com        'simd128/floating_point/logical/__init__.py',
26412855Sgabeblack@google.com        'simd128/floating_point/logical/andp.py',
26512855Sgabeblack@google.com        'simd128/floating_point/logical/orp.py',
26612855Sgabeblack@google.com        'simd128/floating_point/logical/exclusive_or.py',
26712855Sgabeblack@google.com        'simd64/__init__.py',
26812855Sgabeblack@google.com        'simd64/integer/__init__.py',
26912855Sgabeblack@google.com        'simd64/integer/data_transfer/__init__.py',
27012855Sgabeblack@google.com        'simd64/integer/data_transfer/move_mask.py',
27112855Sgabeblack@google.com        'simd64/integer/data_transfer/move.py',
27212855Sgabeblack@google.com        'simd64/integer/data_transfer/move_non_temporal.py',
27312855Sgabeblack@google.com        'simd64/integer/exit_media_state.py',
27412855Sgabeblack@google.com        'simd64/integer/data_reordering/__init__.py',
27512855Sgabeblack@google.com        'simd64/integer/data_reordering/unpack_and_interleave.py',
27612855Sgabeblack@google.com        'simd64/integer/data_reordering/pack_with_saturation.py',
27712855Sgabeblack@google.com        'simd64/integer/data_reordering/extract_and_insert.py',
27812855Sgabeblack@google.com        'simd64/integer/data_reordering/shuffle_and_swap.py',
27912855Sgabeblack@google.com        'simd64/integer/data_conversion.py',
28012855Sgabeblack@google.com        'simd64/integer/arithmetic/__init__.py',
28112855Sgabeblack@google.com        'simd64/integer/arithmetic/subtraction.py',
28212855Sgabeblack@google.com        'simd64/integer/arithmetic/addition.py',
28312855Sgabeblack@google.com        'simd64/integer/arithmetic/multiplication.py',
28412855Sgabeblack@google.com        'simd64/integer/arithmetic/multiply_add.py',
28512855Sgabeblack@google.com        'simd64/integer/arithmetic/average.py',
28612855Sgabeblack@google.com        'simd64/integer/arithmetic/sum_of_absolute_differences.py',
28712855Sgabeblack@google.com        'simd64/integer/shift/__init__.py',
28812855Sgabeblack@google.com        'simd64/integer/shift/right_arithmetic_shift.py',
28912855Sgabeblack@google.com        'simd64/integer/shift/left_logical_shift.py',
29012855Sgabeblack@google.com        'simd64/integer/shift/right_logical_shift.py',
29112855Sgabeblack@google.com        'simd64/integer/compare/__init__.py',
29212855Sgabeblack@google.com        'simd64/integer/compare/compare_and_write_mask.py',
29312855Sgabeblack@google.com        'simd64/integer/compare/compare_and_write_minimum_or_maximum.py',
29412855Sgabeblack@google.com        'simd64/integer/logical/__init__.py',
29512855Sgabeblack@google.com        'simd64/integer/logical/pand.py',
29612855Sgabeblack@google.com        'simd64/integer/logical/por.py',
29712855Sgabeblack@google.com        'simd64/integer/logical/exclusive_or.py',
29812855Sgabeblack@google.com        'simd64/integer/save_and_restore_state.py',
29912855Sgabeblack@google.com        'simd64/floating_point/__init__.py',
30012855Sgabeblack@google.com        'simd64/floating_point/arithmetic/__init__.py',
30112855Sgabeblack@google.com        'simd64/floating_point/arithmetic/subtraction.py',
30212855Sgabeblack@google.com        'simd64/floating_point/arithmetic/addition.py',
30312855Sgabeblack@google.com        'simd64/floating_point/arithmetic/reciprocal_estimation.py',
30412855Sgabeblack@google.com        'simd64/floating_point/arithmetic/multiplication.py',
30512855Sgabeblack@google.com        'simd64/floating_point/arithmetic/accumulation.py',
30612855Sgabeblack@google.com        'simd64/floating_point/arithmetic/reciprocal_square_root.py',
30712855Sgabeblack@google.com        'simd64/floating_point/data_conversion.py',
30812855Sgabeblack@google.com        'simd64/floating_point/compare/__init__.py',
30912855Sgabeblack@google.com        'simd64/floating_point/compare/compare_and_write_mask.py',
31012855Sgabeblack@google.com        'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py',
31112855Sgabeblack@google.com        'x87/__init__.py',
31212855Sgabeblack@google.com        'x87/data_transfer_and_conversion/__init__.py',
31312855Sgabeblack@google.com        'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py',
31412855Sgabeblack@google.com        'x87/data_transfer_and_conversion/load_or_store_floating_point.py',
31512855Sgabeblack@google.com        'x87/data_transfer_and_conversion/exchange.py',
31612855Sgabeblack@google.com        'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py',
31712855Sgabeblack@google.com        'x87/data_transfer_and_conversion/conditional_move.py',
31812855Sgabeblack@google.com        'x87/data_transfer_and_conversion/extract.py',
31912855Sgabeblack@google.com        'x87/load_constants/__init__.py',
32012855Sgabeblack@google.com        'x87/load_constants/load_0_1_or_pi.py',
32112855Sgabeblack@google.com        'x87/load_constants/load_logarithm.py',
32212855Sgabeblack@google.com        'x87/arithmetic/__init__.py',
32312855Sgabeblack@google.com        'x87/arithmetic/subtraction.py',
32412855Sgabeblack@google.com        'x87/arithmetic/addition.py',
32512855Sgabeblack@google.com        'x87/arithmetic/partial_remainder.py',
32612855Sgabeblack@google.com        'x87/arithmetic/multiplication.py',
32712855Sgabeblack@google.com        'x87/arithmetic/division.py',
32812855Sgabeblack@google.com        'x87/arithmetic/change_sign.py',
32912855Sgabeblack@google.com        'x87/arithmetic/round.py',
33012855Sgabeblack@google.com        'x87/arithmetic/square_root.py',
33112855Sgabeblack@google.com        'x87/transcendental_functions/__init__.py',
33212855Sgabeblack@google.com        'x87/transcendental_functions/trigonometric_functions.py',
33312855Sgabeblack@google.com        'x87/transcendental_functions/logarithmic_functions.py',
33412855Sgabeblack@google.com        'x87/compare_and_test/__init__.py',
33512855Sgabeblack@google.com        'x87/compare_and_test/classify.py',
33612855Sgabeblack@google.com        'x87/compare_and_test/test.py',
33712855Sgabeblack@google.com        'x87/compare_and_test/floating_point_ordered_compare.py',
33812855Sgabeblack@google.com        'x87/compare_and_test/floating_point_unordered_compare.py',
33912855Sgabeblack@google.com        'x87/compare_and_test/integer_compare.py',
34012855Sgabeblack@google.com        'x87/stack_management/__init__.py',
341        'x87/stack_management/stack_control.py',
342        'x87/stack_management/clear_state.py',
343        'x87/control/__init__.py',
344        'x87/control/clear_exceptions.py',
345        'x87/control/initialize.py',
346        'x87/control/wait_for_exceptions.py',
347        'x87/control/save_x87_status_word.py',
348        'x87/control/save_and_restore_x87_control_word.py',
349        'x87/control/save_and_restore_x87_environment.py',
350        'x87/no_operation.py'
351        )
352
353
354    # Add in files generated by the ISA description.
355    isa_desc_files = env.ISADesc('isa/main.isa')
356    for f in isa_desc_files:
357        # Add in python file dependencies that won't be caught otherwise
358        for pyfile in python_files:
359            env.Depends(f, "isa/insts/%s" % pyfile)
360        # Only non-header files need to be compiled.
361        if not f.path.endswith('.hh'):
362            Source(f)
363