From d885325c67ba2c0b83d397b292cd13c63537dbf3 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Fri, 15 May 2020 14:25:17 -0400 Subject: [PATCH] Fix broken test_ba --- src/soc/branch/test/test_pipe_caller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/branch/test/test_pipe_caller.py b/src/soc/branch/test/test_pipe_caller.py index 4f68c56b..e55a3fbf 100644 --- a/src/soc/branch/test/test_pipe_caller.py +++ b/src/soc/branch/test/test_pipe_caller.py @@ -121,7 +121,7 @@ class TestRunner(FHDLTestCase): instructions = list(zip(gen, program.assembly.splitlines())) index = (simulator.pc.CIA.value - initial_cia)//4 - while index < len(instructions): + while index < len(instructions) and index >= 0: print(index) ins, code = instructions[index] -- 2.30.2