@@ -24,7 +24,7 @@ def generate_arg_str(arg: arch.FnParam):
2424 arg_name = f" { arg .name } " if arg .name is not None else ""
2525 return f'{ instruction_utils .data_type_map [arg .ty .kind ]} { actual_size (arg .ty .size )} { arg_name } '
2626
27- def generate_functions (core : arch .CoreDef , static_vars : bool , decls_only : bool , generate_coverage : bool ):
27+ def generate_functions (core : arch .CoreDef , static_scalars : bool , decls_only : bool , generate_coverage : bool ):
2828 """Return a generator object to generate function behavior code. Uses function
2929 definitions in the core object.
3030 """
@@ -50,7 +50,7 @@ def generate_functions(core: arch.CoreDef, static_vars: bool, decls_only: bool,
5050 # set up a transformer context and generate code
5151 context = instruction_utils .TransformerContext (core .parameters , core .memories , core .memory_aliases , core .register_banks ,
5252 core .register_aliases , fn_def .args , fn_def .attributes , core .functions ,
53- 0 , core_default_width , core_name , static_vars , core .intrinsics , generate_coverage , True )
53+ 0 , core_default_width , core_name , static_scalars , core .intrinsics , generate_coverage , True )
5454
5555 logger .debug ("generating code for %s" , fn_name )
5656
@@ -142,7 +142,7 @@ def generate_fields(core_default_width, instr_def: arch.Instruction):
142142
143143 return (fields_code , asm_printer_code , seen_fields , enc_idx )
144144
145- def generate_instruction_callback (core : arch .CoreDef , instr_def : arch .Instruction , fields , static_vars : bool , block_end_on : BlockEndType , generate_coverage : bool ):
145+ def generate_instruction_callback (core : arch .CoreDef , instr_def : arch .Instruction , fields , static_scalars : bool , block_end_on : BlockEndType , generate_coverage : bool ):
146146 visitor = InstructionTransformVisitor ()
147147
148148 instr_name = instr_def .name
@@ -154,7 +154,7 @@ def generate_instruction_callback(core: arch.CoreDef, instr_def: arch.Instructio
154154 callback_template = Template (filename = str (template_dir / 'etiss_instruction_callback.mako' ))
155155
156156 context = instruction_utils .TransformerContext (core .parameters , core .memories , core .memory_aliases , core .register_banks , core .register_aliases , instr_def .fields , instr_def .attributes ,
157- core .functions , enc_idx , core_default_width , core_name , static_vars , core .intrinsics , generate_coverage , False )
157+ core .functions , enc_idx , core_default_width , core_name , static_scalars , core .intrinsics , generate_coverage , False )
158158
159159 # force a block end if necessary
160160 if ((attribute_info .InstrAttribute .NO_CONT in instr_def .attributes
@@ -189,7 +189,7 @@ def generate_instruction_callback(core: arch.CoreDef, instr_def: arch.Instructio
189189
190190 return callback_str
191191
192- def generate_instructions (core : arch .CoreDef , static_vars : bool , block_end_on : BlockEndType , generate_coverage : bool ):
192+ def generate_instructions (core : arch .CoreDef , static_scalars : bool , block_end_on : BlockEndType , generate_coverage : bool ):
193193 """Return a generator object to generate instruction behavior code. Uses instruction
194194 definitions in the core object.
195195 """
@@ -246,7 +246,7 @@ def gen_rand_suffix(length: int = 8):
246246 instr_def .operation = new_op
247247 instr_def .throws = True
248248
249- callback_str = generate_instruction_callback (core , instr_def , fields , static_vars , block_end_on , generate_coverage )
249+ callback_str = generate_instruction_callback (core , instr_def , fields , static_scalars , block_end_on , generate_coverage )
250250
251251 # render code for whole instruction
252252 templ_str = instr_template .render (
0 commit comments