Decode: Set correct rpc for coprocessor register transfer.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Wed, 7 Jan 2009 09:59:24 +0000 (04:59 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Wed, 7 Jan 2009 09:59:24 +0000 (04:59 -0500)
Decode.v

index b58951a..90ac3d6 100644 (file)
--- a/Decode.v
+++ b/Decode.v
@@ -63,9 +63,10 @@ module Decode(
                `DECODE_BRANCH,                 /* Branch */
                `DECODE_LDCSTC,                 /* Coprocessor data transfer */
                `DECODE_CDP,                    /* Coprocessor data op */
-               `DECODE_MRCMCR,                 /* Coprocessor register transfer */
                `DECODE_SWI:                    /* SWI */
                        rpc = inpc + 8;
+               `DECODE_MRCMCR:                 /* Coprocessor register transfer */
+                       rpc = inpc + 12;
                `DECODE_ALU:                    /* ALU */
                        rpc = inpc + (insn[25] ? 8 : (insn[4] ? 12 : 8));
                default:                        /* X everything else out */
This page took 0.023053 seconds and 4 git commands to generate.