From 3dea0b7755be4fcc6a7df217391ec7dbc8b840d4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 12:45:27 +0100 Subject: [PATCH] reduce variable size, continuation not needed --- src/soc/fu/div/test/test_pipe_caller.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index fa10ae58..de9df189 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -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 -- 2.30.2