From ea81c79b43ad750ddb84fc4a0ea95e16de0ddb68 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 4 Jul 2020 19:18:05 +0100 Subject: [PATCH] update trap docstring --- src/soc/fu/trap/main_stage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/trap/main_stage.py b/src/soc/fu/trap/main_stage.py index 662ff44c..0ba10012 100644 --- a/src/soc/fu/trap/main_stage.py +++ b/src/soc/fu/trap/main_stage.py @@ -60,7 +60,8 @@ class TrapMainStage(PipeModBase): self.fields.create_specs() def trap(self, m, trap_addr, return_addr): - """trap """ # TODO add descriptive docstring + """trap. sets new PC, stores MSR and old PC in SRR1 and SRR0 + """ comb = m.d.comb msr_i = self.i.msr nia_o, srr0_o, srr1_o = self.o.nia, self.o.srr0, self.o.srr1 -- 2.30.2