From bae889fe708350f7a212113194b81759523cccbb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 26 Jun 2022 12:10:35 +0100 Subject: [PATCH] missing module argument to TestRunner execute --- src/soc/fu/compunits/test/test_compunit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index 58c381b8..e115c215 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -187,7 +187,7 @@ class TestRunner(FHDLTestCase): self.funit = funit self.bigendian = bigendian - def execute(self, cu, l0, instruction, pdecode2, simdec2, test): + def execute(self, m, cu, l0, instruction, pdecode2, simdec2, test): program = test.program print("test", test.name, test.mem) @@ -239,7 +239,7 @@ class TestRunner(FHDLTestCase): # set operand and get inputs yield from set_operand(cu, pdecode2, sim) # reset read-operand mask - rdmask = get_rdflags(pdecode2.e, cu) + rdmask = get_rdflags(m, pdecode2.e, cu) #print ("hardcoded rdmask", cu.rdflags(pdecode2.e)) #print ("decoder rdmask", rdmask) yield cu.rdmaskn.eq(~rdmask) @@ -359,7 +359,7 @@ class TestRunner(FHDLTestCase): for test in self.test_data: print(test.name) with self.subTest(test.name): - yield from self.execute(cu, l0, instruction, + yield from self.execute(m, cu, l0, instruction, pdecode2, simdec2, test) -- 2.30.2