SConscript revision 10196:be0e1724eb39
12068SN/A# -*- mode:python -*- 22068SN/A 32068SN/A# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 42068SN/A# All rights reserved. 52068SN/A# 62068SN/A# The license below extends only to copyright in the software and shall 72068SN/A# not be construed as granting a license to any other intellectual 82068SN/A# property including but not limited to intellectual property relating 92068SN/A# to a hardware implementation of the functionality of the software 102068SN/A# licensed hereunder. You may use the software subject to the license 112068SN/A# terms below provided that you ensure that this notice is replicated 122068SN/A# unmodified and in its entirety in all distributions of the software, 132068SN/A# modified or unmodified, in source code or in binary form. 142068SN/A# 152068SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 162068SN/A# All rights reserved. 172068SN/A# 182068SN/A# Redistribution and use in source and binary forms, with or without 192068SN/A# modification, are permitted provided that the following conditions are 202068SN/A# met: redistributions of source code must retain the above copyright 212068SN/A# notice, this list of conditions and the following disclaimer; 222068SN/A# redistributions in binary form must reproduce the above copyright 232068SN/A# notice, this list of conditions and the following disclaimer in the 242068SN/A# documentation and/or other materials provided with the distribution; 252068SN/A# neither the name of the copyright holders nor the names of its 262068SN/A# contributors may be used to endorse or promote products derived from 272068SN/A# this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302068SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 312649Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322649Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332649Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342649Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352649Ssaidi@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362068SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372068SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382068SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392068SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402068SN/A# 412068SN/A# Authors: Gabe Black 422068SN/A 432068SN/AImport('*') 442068SN/A 452068SN/Aif env['TARGET_ISA'] == 'x86': 462068SN/A Source('cpuid.cc') 472068SN/A Source('decoder.cc') 482068SN/A Source('decoder_tables.cc') 492068SN/A Source('emulenv.cc') 502068SN/A Source('faults.cc') 512068SN/A Source('insts/badmicroop.cc') 522068SN/A Source('insts/microfpop.cc') 532068SN/A Source('insts/microldstop.cc') 542068SN/A Source('insts/micromediaop.cc') 552068SN/A Source('insts/microop.cc') 562227SN/A Source('insts/microregop.cc') 572068SN/A Source('insts/static_inst.cc') 582068SN/A Source('interrupts.cc') 592068SN/A Source('isa.cc') 602068SN/A Source('linux/linux.cc') 612068SN/A Source('linux/process.cc') 622068SN/A Source('linux/syscalls.cc') 632068SN/A Source('linux/system.cc') 642068SN/A Source('nativetrace.cc') 652068SN/A Source('pagetable.cc') 662068SN/A Source('pagetable_walker.cc') 672068SN/A Source('process.cc') 682068SN/A Source('remote_gdb.cc') 692068SN/A Source('stacktrace.cc') 702068SN/A Source('system.cc') 712068SN/A Source('tlb.cc') 722068SN/A Source('types.cc') 732068SN/A Source('utility.cc') 742068SN/A Source('vtophys.cc') 752068SN/A 762068SN/A SimObject('X86ISA.py') 772068SN/A SimObject('X86LocalApic.py') 782227SN/A SimObject('X86NativeTrace.py') 792068SN/A SimObject('X86System.py') 802068SN/A SimObject('X86TLB.py') 812068SN/A 822068SN/A DebugFlag('Faults', "Trace all faults/exceptions/traps") 832068SN/A DebugFlag('LocalApic', "Local APIC debugging") 8412616Sgabeblack@google.com DebugFlag('PageTableWalker', \ 8512616Sgabeblack@google.com "Page table walker state machine debugging") 862068SN/A DebugFlag('Decoder', "Decoder debug output") 879552Sandreas.hansson@arm.com DebugFlag('X86', "Generic X86 ISA debugging") 889552Sandreas.hansson@arm.com 899552Sandreas.hansson@arm.com python_files = ( 9012616Sgabeblack@google.com '__init__.py', 9112616Sgabeblack@google.com 'general_purpose/__init__.py', 922068SN/A 'general_purpose/arithmetic/__init__.py', 932068SN/A 'general_purpose/arithmetic/add_and_subtract.py', 942068SN/A 'general_purpose/arithmetic/increment_and_decrement.py', 952068SN/A 'general_purpose/arithmetic/multiply_and_divide.py', 962068SN/A 'general_purpose/cache_and_memory_management.py', 972068SN/A 'general_purpose/compare_and_test/__init__.py', 982068SN/A 'general_purpose/compare_and_test/bit_scan.py', 992068SN/A 'general_purpose/compare_and_test/bit_test.py', 1002068SN/A 'general_purpose/compare_and_test/bounds.py', 1012068SN/A 'general_purpose/compare_and_test/compare.py', 1022068SN/A 'general_purpose/compare_and_test/set_byte_on_condition.py', 1032068SN/A 'general_purpose/compare_and_test/test.py', 1042068SN/A 'general_purpose/control_transfer/__init__.py', 1052068SN/A 'general_purpose/control_transfer/call.py', 1062068SN/A 'general_purpose/control_transfer/conditional_jump.py', 1072227SN/A 'general_purpose/control_transfer/interrupts_and_exceptions.py', 1082068SN/A 'general_purpose/control_transfer/jump.py', 1092068SN/A 'general_purpose/control_transfer/loop.py', 1102068SN/A 'general_purpose/control_transfer/xreturn.py', 1112068SN/A 'general_purpose/data_conversion/__init__.py', 1122068SN/A 'general_purpose/data_conversion/ascii_adjust.py', 11312616Sgabeblack@google.com 'general_purpose/data_conversion/bcd_adjust.py', 1142068SN/A 'general_purpose/data_conversion/endian_conversion.py', 1159552Sandreas.hansson@arm.com 'general_purpose/data_conversion/extract_sign_mask.py', 1169552Sandreas.hansson@arm.com 'general_purpose/data_conversion/sign_extension.py', 1179552Sandreas.hansson@arm.com 'general_purpose/data_conversion/translate.py', 11812616Sgabeblack@google.com 'general_purpose/data_transfer/__init__.py', 11912616Sgabeblack@google.com 'general_purpose/data_transfer/conditional_move.py', 1202068SN/A 'general_purpose/data_transfer/move.py', 1212068SN/A 'general_purpose/data_transfer/stack_operations.py', 1222068SN/A 'general_purpose/data_transfer/xchg.py', 1232068SN/A 'general_purpose/flags/__init__.py', 1247720Sgblack@eecs.umich.edu 'general_purpose/flags/load_and_store.py', 1257720Sgblack@eecs.umich.edu 'general_purpose/flags/push_and_pop.py', 1262068SN/A 'general_purpose/flags/set_and_clear.py', 1277720Sgblack@eecs.umich.edu 'general_purpose/input_output/__init__.py', 1282068SN/A 'general_purpose/input_output/general_io.py', 1292068SN/A 'general_purpose/input_output/string_io.py', 1307720Sgblack@eecs.umich.edu 'general_purpose/load_effective_address.py', 1312680Sktlim@umich.edu 'general_purpose/load_segment_registers.py', 1322068SN/A 'general_purpose/logical.py', 1337720Sgblack@eecs.umich.edu 'general_purpose/no_operation.py', 13412106SRekai.GonzalezAlberquilla@arm.com 'general_purpose/rotate_and_shift/__init__.py', 1357720Sgblack@eecs.umich.edu 'general_purpose/rotate_and_shift/rotate.py', 1367720Sgblack@eecs.umich.edu 'general_purpose/rotate_and_shift/shift.py', 1372068SN/A 'general_purpose/semaphores.py', 1382068SN/A 'general_purpose/string/__init__.py', 1392068SN/A 'general_purpose/string/compare_strings.py', 1402068SN/A 'general_purpose/string/load_string.py', 1412068SN/A 'general_purpose/string/move_string.py', 1422068SN/A 'general_purpose/string/scan_string.py', 1432068SN/A 'general_purpose/string/store_string.py', 1442068SN/A 'general_purpose/system_calls.py', 1452068SN/A 'romutil.py', 1462068SN/A 'system/__init__.py', 1472068SN/A 'system/control_registers.py', 1482068SN/A 'system/halt.py', 1492068SN/A 'system/invlpg.py', 1502068SN/A 'system/undefined_operation.py', 1512068SN/A 'system/msrs.py', 1522068SN/A 'system/segmentation.py', 1532068SN/A 'simd128/__init__.py', 1542068SN/A 'simd128/integer/__init__.py', 1552068SN/A 'simd128/integer/data_transfer/__init__.py', 1562068SN/A 'simd128/integer/data_transfer/move.py', 1572068SN/A 'simd128/integer/data_transfer/move_non_temporal.py', 1582068SN/A 'simd128/integer/data_transfer/move_mask.py', 1592068SN/A 'simd128/integer/data_conversion/__init__.py', 1602068SN/A 'simd128/integer/data_conversion/convert_mmx_integer_to_floating_point.py', 1612068SN/A 'simd128/integer/data_conversion/convert_integer_to_floating_point.py', 1622068SN/A 'simd128/integer/data_conversion/convert_gpr_integer_to_floating_point.py', 1632068SN/A 'simd128/integer/data_reordering/__init__.py', 1642068SN/A 'simd128/integer/data_reordering/unpack_and_interleave.py', 1652068SN/A 'simd128/integer/data_reordering/pack_with_saturation.py', 1662068SN/A 'simd128/integer/data_reordering/extract_and_insert.py', 1672068SN/A 'simd128/integer/data_reordering/shuffle.py', 1682068SN/A 'simd128/integer/arithmetic/__init__.py', 1692068SN/A 'simd128/integer/arithmetic/subtraction.py', 1702068SN/A 'simd128/integer/arithmetic/addition.py', 1712068SN/A 'simd128/integer/arithmetic/multiplication.py', 1722068SN/A 'simd128/integer/arithmetic/multiply_add.py', 1732068SN/A 'simd128/integer/arithmetic/average.py', 1742068SN/A 'simd128/integer/arithmetic/sum_of_absolute_differences.py', 1752068SN/A 'simd128/integer/shift/__init__.py', 1762068SN/A 'simd128/integer/shift/right_arithmetic_shift.py', 1772068SN/A 'simd128/integer/shift/left_logical_shift.py', 1782068SN/A 'simd128/integer/shift/right_logical_shift.py', 1792068SN/A 'simd128/integer/compare/__init__.py', 1802068SN/A 'simd128/integer/compare/compare_and_write_mask.py', 1812068SN/A 'simd128/integer/compare/compare_and_write_minimum_or_maximum.py', 1822068SN/A 'simd128/integer/logical/__init__.py', 1832068SN/A 'simd128/integer/logical/pand.py', 1842068SN/A 'simd128/integer/logical/por.py', 1852068SN/A 'simd128/integer/logical/exclusive_or.py', 1862068SN/A 'simd128/integer/save_and_restore_state/__init__.py', 1872068SN/A 'simd128/integer/save_and_restore_state/save_and_restore_state.py', 1882068SN/A 'simd128/integer/save_and_restore_state/save_and_restore_control_and_status.py', 1892068SN/A 'simd128/floating_point/__init__.py', 1902068SN/A 'simd128/floating_point/data_transfer/__init__.py', 1912068SN/A 'simd128/floating_point/data_transfer/move_mask.py', 1922068SN/A 'simd128/floating_point/data_transfer/move.py', 1932068SN/A 'simd128/floating_point/data_transfer/move_with_duplication.py', 1942068SN/A 'simd128/floating_point/data_transfer/move_non_temporal.py', 1952068SN/A 'simd128/floating_point/data_conversion/__init__.py', 1962068SN/A 'simd128/floating_point/data_conversion/convert_floating_point_to_floating_point.py', 1972068SN/A 'simd128/floating_point/data_conversion/convert_floating_point_to_xmm_integer.py', 1982068SN/A 'simd128/floating_point/data_conversion/convert_floating_point_to_mmx_integer.py', 1992068SN/A 'simd128/floating_point/data_conversion/convert_floating_point_to_gpr_integer.py', 2002068SN/A 'simd128/floating_point/data_reordering/__init__.py', 2012068SN/A 'simd128/floating_point/data_reordering/unpack_and_interleave.py', 2022068SN/A 'simd128/floating_point/data_reordering/shuffle.py', 2032068SN/A 'simd128/floating_point/arithmetic/__init__.py', 2042068SN/A 'simd128/floating_point/arithmetic/subtraction.py', 2052068SN/A 'simd128/floating_point/arithmetic/addition.py', 2062068SN/A 'simd128/floating_point/arithmetic/horizontal_subtraction.py', 2072068SN/A 'simd128/floating_point/arithmetic/horizontal_addition.py', 2082068SN/A 'simd128/floating_point/arithmetic/square_root.py', 2092068SN/A 'simd128/floating_point/arithmetic/simultaneous_addition_and_subtraction.py', 2102068SN/A 'simd128/floating_point/arithmetic/multiplication.py', 2112068SN/A 'simd128/floating_point/arithmetic/division.py', 2122068SN/A 'simd128/floating_point/arithmetic/reciprocal_square_root.py', 2132068SN/A 'simd128/floating_point/arithmetic/reciprocal_estimation.py', 2142068SN/A 'simd128/floating_point/compare/__init__.py', 2152068SN/A 'simd128/floating_point/compare/compare_and_write_mask.py', 2162068SN/A 'simd128/floating_point/compare/compare_and_write_rflags.py', 2172068SN/A 'simd128/floating_point/compare/compare_and_write_minimum_or_maximum.py', 2182068SN/A 'simd128/floating_point/logical/__init__.py', 2192068SN/A 'simd128/floating_point/logical/andp.py', 2202068SN/A 'simd128/floating_point/logical/orp.py', 2212068SN/A 'simd128/floating_point/logical/exclusive_or.py', 2222068SN/A 'simd64/__init__.py', 2232107SN/A 'simd64/integer/__init__.py', 2242107SN/A 'simd64/integer/data_transfer/__init__.py', 2252068SN/A 'simd64/integer/data_transfer/move_mask.py', 2262068SN/A 'simd64/integer/data_transfer/move.py', 2272068SN/A 'simd64/integer/data_transfer/move_non_temporal.py', 2287720Sgblack@eecs.umich.edu 'simd64/integer/exit_media_state.py', 2297720Sgblack@eecs.umich.edu 'simd64/integer/data_reordering/__init__.py', 2307720Sgblack@eecs.umich.edu 'simd64/integer/data_reordering/unpack_and_interleave.py', 2317720Sgblack@eecs.umich.edu 'simd64/integer/data_reordering/pack_with_saturation.py', 2327794Sgblack@eecs.umich.edu 'simd64/integer/data_reordering/extract_and_insert.py', 2337794Sgblack@eecs.umich.edu 'simd64/integer/data_reordering/shuffle_and_swap.py', 2347794Sgblack@eecs.umich.edu 'simd64/integer/data_conversion.py', 2357720Sgblack@eecs.umich.edu 'simd64/integer/arithmetic/__init__.py', 2363953Sstever@eecs.umich.edu 'simd64/integer/arithmetic/subtraction.py', 2372068SN/A 'simd64/integer/arithmetic/addition.py', 2382068SN/A 'simd64/integer/arithmetic/multiplication.py', 2392068SN/A 'simd64/integer/arithmetic/multiply_add.py', 2402068SN/A 'simd64/integer/arithmetic/average.py', 2412068SN/A 'simd64/integer/arithmetic/sum_of_absolute_differences.py', 2422068SN/A 'simd64/integer/shift/__init__.py', 2432068SN/A 'simd64/integer/shift/right_arithmetic_shift.py', 2442068SN/A 'simd64/integer/shift/left_logical_shift.py', 2452068SN/A 'simd64/integer/shift/right_logical_shift.py', 2462068SN/A 'simd64/integer/compare/__init__.py', 2477794Sgblack@eecs.umich.edu 'simd64/integer/compare/compare_and_write_mask.py', 2487720Sgblack@eecs.umich.edu 'simd64/integer/compare/compare_and_write_minimum_or_maximum.py', 2497794Sgblack@eecs.umich.edu 'simd64/integer/logical/__init__.py', 2502068SN/A 'simd64/integer/logical/pand.py', 2512068SN/A 'simd64/integer/logical/por.py', 2522068SN/A 'simd64/integer/logical/exclusive_or.py', 2532068SN/A 'simd64/integer/save_and_restore_state.py', 2542068SN/A 'simd64/floating_point/__init__.py', 2557794Sgblack@eecs.umich.edu 'simd64/floating_point/arithmetic/__init__.py', 2562068SN/A 'simd64/floating_point/arithmetic/subtraction.py', 2577794Sgblack@eecs.umich.edu 'simd64/floating_point/arithmetic/addition.py', 2582068SN/A 'simd64/floating_point/arithmetic/reciprocal_estimation.py', 2592068SN/A 'simd64/floating_point/arithmetic/multiplication.py', 2602068SN/A 'simd64/floating_point/arithmetic/accumulation.py', 2612068SN/A 'simd64/floating_point/arithmetic/reciprocal_square_root.py', 2622068SN/A 'simd64/floating_point/data_conversion.py', 2632068SN/A 'simd64/floating_point/compare/__init__.py', 2642068SN/A 'simd64/floating_point/compare/compare_and_write_mask.py', 2652068SN/A 'simd64/floating_point/compare/compare_and_write_minimum_or_maximum.py', 2662068SN/A 'x87/__init__.py', 2672068SN/A 'x87/data_transfer_and_conversion/__init__.py', 2682068SN/A 'x87/data_transfer_and_conversion/convert_and_load_or_store_integer.py', 2692068SN/A 'x87/data_transfer_and_conversion/load_or_store_floating_point.py', 2702068SN/A 'x87/data_transfer_and_conversion/exchange.py', 2712068SN/A 'x87/data_transfer_and_conversion/convert_and_load_or_store_bcd.py', 2727794Sgblack@eecs.umich.edu 'x87/data_transfer_and_conversion/conditional_move.py', 2732068SN/A 'x87/data_transfer_and_conversion/extract.py', 2742068SN/A 'x87/load_constants/__init__.py', 2752068SN/A 'x87/load_constants/load_0_1_or_pi.py', 2762068SN/A 'x87/load_constants/load_logarithm.py', 2772068SN/A 'x87/arithmetic/__init__.py', 2787794Sgblack@eecs.umich.edu 'x87/arithmetic/subtraction.py', 2792068SN/A 'x87/arithmetic/addition.py', 2802068SN/A 'x87/arithmetic/partial_remainder.py', 2812068SN/A 'x87/arithmetic/multiplication.py', 282 'x87/arithmetic/division.py', 283 'x87/arithmetic/change_sign.py', 284 'x87/arithmetic/round.py', 285 'x87/arithmetic/square_root.py', 286 'x87/transcendental_functions/__init__.py', 287 'x87/transcendental_functions/trigonometric_functions.py', 288 'x87/transcendental_functions/logarithmic_functions.py', 289 'x87/compare_and_test/__init__.py', 290 'x87/compare_and_test/classify.py', 291 'x87/compare_and_test/test.py', 292 'x87/compare_and_test/floating_point_ordered_compare.py', 293 'x87/compare_and_test/floating_point_unordered_compare.py', 294 'x87/compare_and_test/integer_compare.py', 295 'x87/stack_management/__init__.py', 296 'x87/stack_management/stack_control.py', 297 'x87/stack_management/clear_state.py', 298 'x87/control/__init__.py', 299 'x87/control/clear_exceptions.py', 300 'x87/control/initialize.py', 301 'x87/control/wait_for_exceptions.py', 302 'x87/control/save_x87_status_word.py', 303 'x87/control/save_and_restore_x87_control_word.py', 304 'x87/control/save_and_restore_x87_environment.py', 305 'x87/no_operation.py' 306 ) 307 308 309 # Add in files generated by the ISA description. 310 isa_desc_files = env.ISADesc('isa/main.isa') 311 for f in isa_desc_files: 312 # Add in python file dependencies that won't be caught otherwise 313 for pyfile in python_files: 314 env.Depends(f, "isa/insts/%s" % pyfile) 315