From f01798c3d5cdc12089b3f2efd770dc737a4b04f9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 12:00:36 +0100 Subject: [PATCH] allow Decode2ToExecute1Type to take an opkls argument --- src/soc/decoder/decode2execute1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/decoder/decode2execute1.py b/src/soc/decoder/decode2execute1.py index 98ed32f6..73296930 100644 --- a/src/soc/decoder/decode2execute1.py +++ b/src/soc/decoder/decode2execute1.py @@ -64,7 +64,7 @@ class Decode2ToOperand(RecordObject): class Decode2ToExecute1Type(RecordObject): - def __init__(self, name=None, asmcode=True): + def __init__(self, name=None, asmcode=True, opkls=Decode2ToOperand): RecordObject.__init__(self, name=name) @@ -93,4 +93,4 @@ class Decode2ToExecute1Type(RecordObject): self.write_cr = Data(3, name="cr_out") # decode operand data - self.do = Decode2ToOperand(name) + self.do = opkls(name) -- 2.30.2