X86: Make the isa parser run if any of the microcode files change.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 10 Sep 2007 23:49:07 +0000 (16:49 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 10 Sep 2007 23:49:07 +0000 (16:49 -0700)
--HG--
extra : convert_revision : 7f6d07de7e0d728a9333fb46c953dbe6cb04e600

src/arch/x86/SConscript

index b791a06247e499df0bd938cf2543d815b8464fc6..31e38abe1191467de7b0cf98e8740f82906badfc 100644 (file)
@@ -84,6 +84,7 @@
 # Authors: Gabe Black
 
 Import('*')
+
 if env['TARGET_ISA'] == 'x86':
     Source('emulenv.cc')
     Source('floatregfile.cc')
@@ -110,9 +111,80 @@ if env['TARGET_ISA'] == 'x86':
         Source('linux/process.cc')
         Source('linux/syscalls.cc')
 
+    python_files = (
+            '__init__.py',
+            'arithmetic/__init__.py',
+            'arithmetic/add_and_subtract.py',
+            'arithmetic/increment_and_decrement.py',
+            'arithmetic/multiply_and_divide.py',
+            'cache_and_memory_management.py',
+            'compare_and_test/__init__.py',
+            'compare_and_test/bit_scan.py',
+            'compare_and_test/bit_test.py',
+            'compare_and_test/bounds.py',
+            'compare_and_test/compare.py',
+            'compare_and_test/set_byte_on_condition.py',
+            'compare_and_test/test.py',
+            'control_transfer/__init__.py',
+            'control_transfer/call.py',
+            'control_transfer/conditional_jump.py',
+            'control_transfer/interrupts_and_exceptions.py',
+            'control_transfer/jump.py',
+            'control_transfer/loop.py',
+            'control_transfer/xreturn.py',
+            'data_conversion/__init__.py',
+            'data_conversion/ascii_adjust.py',
+            'data_conversion/bcd_adjust.py',
+            'data_conversion/endian_conversion.py',
+            'data_conversion/extract_sign_mask.py',
+            'data_conversion/sign_extension.py',
+            'data_conversion/translate.py',
+            'data_transfer/__init__.py',
+            'data_transfer/conditional_move.py',
+            'data_transfer/move.py',
+            'data_transfer/stack_operations.py',
+            'data_transfer/xchg.py',
+            'flags/__init__.py',
+            'flags/load_and_store.py',
+            'flags/push_and_pop.py',
+            'flags/set_and_clear.py',
+            'input_output/__init__.py',
+            'input_output/general_io.py',
+            'input_output/string_io.py',
+            'load_effective_address.py',
+            'load_segment_registers.py',
+            'logical.py',
+            'no_operation.py',
+            'processor_information.py',
+            'rotate_and_shift/__init__.py',
+            'rotate_and_shift/rotate.py',
+            'rotate_and_shift/shift.py',
+            'semaphores.py',
+            'string/__init__.py',
+            'string/compare_strings.py',
+            'string/load_string.py',
+            'string/move_string.py',
+            'string/scan_string.py',
+            'string/store_string.py',
+            'system/__init__.py',
+            'system/undefined_operation.py',
+            'system_calls.py',
+            'sse/__init__.py',
+            'sse/move.py',
+            'sse/convert.py',
+            'sse/add_and_subtract.py',
+            'sse/multiply_and_divide.py',
+            'sse/logical.py',
+            'sse/compare.py',
+            'sse/square_root.py'
+            )
+
     # Add in files generated by the ISA description.
     isa_desc_files = env.ISADesc('isa/main.isa')
-    # Only non-header files need to be compiled.
     for f in isa_desc_files:
+        # Add in python file dependencies that won't be caught otherwise
+        for pyfile in python_files:
+            env.Depends(f, "isa/insts/%s" % pyfile)
+        # Only non-header files need to be compiled.
         if not f.path.endswith('.hh'):
             Source(f)