]> Joshua Wise's Git repositories - firearm.git/blobdiff - Decode.v
Merge nyus:/storage/git/firearm
[firearm.git] / Decode.v
index 359bbc0d61ae5abacbbc36fcfd256b85ba6fa0ea..a34eb3bce91f510b774707dec4c99aacfd75b883 100644 (file)
--- a/Decode.v
+++ b/Decode.v
@@ -65,9 +65,9 @@ module Decode(
                `DECODE_CDP,                    /* Coprocessor data op */
                `DECODE_MRCMCR,                 /* Coprocessor register transfer */
                `DECODE_SWI:                    /* SWI */
-                       rpc = inpc - 8;
+                       rpc = inpc + 8;
                `DECODE_ALU:                    /* ALU */
-                       rpc = inpc - (insn[25] ? 8 : (insn[4] ? 12 : 8));
+                       rpc = inpc + (insn[25] ? 8 : (insn[4] ? 12 : 8));
                default:                        /* X everything else out */
                        rpc = 32'hxxxxxxxx;
                endcase
This page took 0.02241 seconds and 4 git commands to generate.