reduce variable size, continuation not needed
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 11:45:27 +0000 (12:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 11:45:27 +0000 (12:45 +0100)
src/soc/fu/div/test/test_pipe_caller.py

index fa10ae58da4870c4ab6cc1ed9b7f7521fe8dba9a..de9df1895aadc6f7463738c5dc5caeb5bba84d47 100644 (file)
@@ -273,14 +273,13 @@ class TestRunner(unittest.TestCase):
         def process():
             for test in test_data:
                 print(test.name)
-                program = test.program
+                prog = test.program
                 with self.subTest(test.name):
                     isa_sim = ISA(pdecode2, test.regs, test.sprs, test.cr,
                                   test.mem, test.msr,
                                   bigendian=bigendian)
-                    gen = program.generate_instructions()
-                    instructions = list(
-                        zip(gen, program.assembly.splitlines()))
+                    gen = prog.generate_instructions()
+                    instructions = list(zip(gen, prog.assembly.splitlines()))
                     yield Delay(0.1e-6)
 
                     index = isa_sim.pc.CIA.value//4