From c418bab07e8bbf6035fbaeff88b0439c73e40391 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 5 May 2021 12:51:26 +0100 Subject: [PATCH] add SVP64 RM fields to ALU input record --- src/soc/fu/alu/alu_input_record.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/alu/alu_input_record.py b/src/soc/fu/alu/alu_input_record.py index 4126fc6c..39585f31 100644 --- a/src/soc/fu/alu/alu_input_record.py +++ b/src/soc/fu/alu/alu_input_record.py @@ -2,6 +2,8 @@ from soc.fu.base_input_record import CompOpSubsetBase from openpower.decoder.power_enums import MicrOp, Function, CryIn from nmigen.hdl.rec import Layout +# needed for SVP64 information at the pipeline +from openpower.decoder.power_svp64_rm import sv_input_record_layout class CompALUOpSubset(CompOpSubsetBase): """CompALUOpSubset @@ -11,7 +13,7 @@ class CompALUOpSubset(CompOpSubsetBase): grab subsets. """ def __init__(self, name=None): - layout = (('insn_type', MicrOp), + layout = [('insn_type', MicrOp), ('fn_unit', Function), ('imm_data', Layout((("data", 64), ("ok", 1)))), ('rc', Layout((("rc", 1), ("ok", 1)))), # Data @@ -26,6 +28,6 @@ class CompALUOpSubset(CompOpSubsetBase): ('is_signed', 1), ('data_len', 4), # actually used by ALU, in OP_EXTS ('insn', 32), - ) + ] + sv_input_record_layout super().__init__(layout, name=name) -- 2.30.2