From fbf8a7b7c1afa8c3395bd752d7dec29f04107d12 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 5 Jun 2020 04:41:05 +0100 Subject: [PATCH] set SRR0 in OP_SC --- src/soc/fu/trap/main_stage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/fu/trap/main_stage.py b/src/soc/fu/trap/main_stage.py index a241a7d4..3fdfd81e 100644 --- a/src/soc/fu/trap/main_stage.py +++ b/src/soc/fu/trap/main_stage.py @@ -211,6 +211,8 @@ class TrapMainStage(PipeModBase): comb += nia_o.ok.eq(1) comb += srr1_o.data.eq(msr_i) comb += srr1_o.ok.eq(1) + comb += srr0_o.data.eq(cia_i+4) # addr to begin from on return + comb += srr0_o.ok.eq(1) # TODO (later) #with m.Case(InternalOp.OP_ADDPCIS): -- 2.30.2