# List of headers to generate
isa_switch_hdrs = Split('''
- arguments.hh
faults.hh
interrupts.hh
isa.hh
# output from the ISA description (*.isa) files.
#
-#
-# Grab the CPU Model information
-#
-
-# Convert to File node to fix path
-cpu_models_file = File('../cpu/cpu_models.py')
-
-# This sucks in the defintions of the CpuModel objects.
-execfile(cpu_models_file.srcnode().abspath)
-
# The emitter patches up the sources & targets to include the
# autogenerated files as targets and isa parser itself as a source.
def isa_desc_emitter(target, source, env):
ARCH_DIR = Dir('.')
+# import ply here because SCons screws with sys.path when performing actions.
+import ply
+
def isa_desc_action(target, source, env):
# Add the current directory to the system path so we can import files
sys.path[0:0] = [ ARCH_DIR.srcnode().abspath ]