From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 11:45:27 +0000 (+0100) Subject: reduce variable size, continuation not needed X-Git-Tag: semi_working_ecp5~580 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dea0b7755be4fcc6a7df217391ec7dbc8b840d4;p=soc.git reduce variable size, continuation not needed --- 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