whoops trap address being set in wrong Decode2ExecuteType object
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Sep 2020 09:52:37 +0000 (10:52 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Sep 2020 09:52:37 +0000 (10:52 +0100)
src/soc/decoder/power_decoder2.py

index decdad46c53aa1e2df32911f326a376376c1968e..b1167f85b4b2fe3961eaeb15f336698a146fac81 100644 (file)
@@ -817,8 +817,8 @@ class PowerDecode2(PowerDecodeSubset):
         # set the trapaddr to 0x700 for a td/tw/tdi/twi operation
         with m.If(op.internal_op == MicrOp.OP_TRAP):
             # *DO NOT* call self.trap here.  that would reset absolutely
-            # rverything including destroying read of RA and RB.
-            comb += self.do_copy("trapaddr", 0x70, True) # strip first nibble
+            # everything including destroying read of RA and RB.
+            comb += self.do_copy("trapaddr", 0x70) # strip first nibble
 
         # check if instruction is privileged
         is_priv_insn = instr_is_priv(m, op.internal_op, e.do.insn)