MIPS: Fix a compiler warning from the eret instruction.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 28 Jan 2012 15:24:23 +0000 (07:24 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 28 Jan 2012 15:24:23 +0000 (07:24 -0800)
src/arch/mips/isa/formats/control.isa

index 2d6748c05a06f7e6e0c70ecfaf332ae9256a8b7c..d8e5eb1111c4b1ea55448916cceb3f62fc29b138 100644 (file)
@@ -88,14 +88,14 @@ def template CP0Execute {{
 
                 if (isCoprocessorEnabled(xc, 0)) {
                     %(code)s;
+
+                    if(fault == NoFault)
+                    {
+                        %(op_wb)s;
+                    }
                 } else {
                     fault = new CoprocessorUnusableFault(0);
                 }
-
-                if(fault == NoFault)
-                {
-                    %(op_wb)s;
-                }
                 return fault;
         }
 }};