summaryrefslogtreecommitdiff
path: root/src/arch/mips/isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2012-01-28 07:24:23 -0800
committerGabe Black <gblack@eecs.umich.edu>2012-01-28 07:24:23 -0800
commiteab5c602865bcd399f069f332edd42c4ea4edffe (patch)
treeaa4c28987d67d47ad2695a0fecbb99f6229e0f2a /src/arch/mips/isa
parentc3d41a2def15cdaf2ac3984315f452dacc6a0884 (diff)
downloadgem5-eab5c602865bcd399f069f332edd42c4ea4edffe.tar.xz
MIPS: Fix a compiler warning from the eret instruction.
Diffstat (limited to 'src/arch/mips/isa')
-rw-r--r--src/arch/mips/isa/formats/control.isa10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/mips/isa/formats/control.isa b/src/arch/mips/isa/formats/control.isa
index 2d6748c05..d8e5eb111 100644
--- a/src/arch/mips/isa/formats/control.isa
+++ b/src/arch/mips/isa/formats/control.isa
@@ -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;
}
}};