From 807a59d944ab2857ed3812ec11ecc9f92f0f373c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 2 Jun 2020 22:07:46 +0100 Subject: [PATCH] move setting cia input to branch from get_cu_inputs function --- src/soc/fu/branch/test/test_pipe_caller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/branch/test/test_pipe_caller.py b/src/soc/fu/branch/test/test_pipe_caller.py index c4d8dd5f..0403199a 100644 --- a/src/soc/fu/branch/test/test_pipe_caller.py +++ b/src/soc/fu/branch/test/test_pipe_caller.py @@ -206,7 +206,6 @@ class TestRunner(FHDLTestCase): # ask the decoder to decode this binary data (endian'd) yield pdecode2.dec.bigendian.eq(0) # little / big? yield instruction.eq(ins) # raw binary instr. - yield branch.p.data_i.cia.eq(simulator.pc.CIA.value) # note, here, the op will need further decoding in order # to set the correct SPRs on SPR1/2/3. op_bc* require # spr1 to be set to CTR, op_bctar require spr2 to be @@ -256,6 +255,8 @@ class TestRunner(FHDLTestCase): inp = yield from get_cu_inputs(dec2, sim) + if 'cia' in inp: + yield branch.p.data_i.cia.eq(inp['cia']) if 'spr1' in inp: yield branch.p.data_i.spr1.eq(inp['spr1']) if 'spr2' in inp: -- 2.30.2