Cleaned up the decoder slightly.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Oct 2006 02:47:17 +0000 (22:47 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Oct 2006 02:47:17 +0000 (22:47 -0400)
--HG--
extra : convert_revision : a7050aa8768c132f0161f00ba17ae02d71f0b829

src/arch/sparc/isa/decoder.isa

index d5f0a0738f2aee31905e6e30d258c5d111a9698b..a2657b3cd704bdf1bd2867c2b1cd22d0a185a867 100644 (file)
@@ -447,12 +447,12 @@ decode OP default Unknown::unknown()
             0x32: Priv::wrpr({{
                 // XXX Need to protect with format that traps non-priv
                 // access
-                fault = xc->setMiscRegWithEffect(RD + PrStart, Rs1 ^ Rs2_or_imm13);
+                xc->setMiscRegWithEffect(RD + PrStart, Rs1 ^ Rs2_or_imm13);
             }});
             0x33: HPriv::wrhpr({{
                 // XXX Need to protect with format that traps non-priv/priv
                 // access
-                fault = xc->setMiscRegWithEffect(RD + HprStart, Rs1 ^ Rs2_or_imm13);
+                xc->setMiscRegWithEffect(RD + HprStart, Rs1 ^ Rs2_or_imm13);
             }});
             0x34: decode OPF{
                 format BasicOperate{
@@ -719,7 +719,6 @@ decode OP default Unknown::unknown()
                         //no matter what. This ensures that the results
                         //are written in the new window as well.
                         xc->setMiscRegWithEffect(MISCREG_CWP, Cwp);
-                        warn("About to set the CWP to %d\n", Cwp);
                     }
                 }
             }});