diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2012-01-28 07:24:23 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2012-01-28 07:24:23 -0800 |
commit | eab5c602865bcd399f069f332edd42c4ea4edffe (patch) | |
tree | aa4c28987d67d47ad2695a0fecbb99f6229e0f2a /src | |
parent | c3d41a2def15cdaf2ac3984315f452dacc6a0884 (diff) | |
download | gem5-eab5c602865bcd399f069f332edd42c4ea4edffe.tar.xz |
MIPS: Fix a compiler warning from the eret instruction.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/mips/isa/formats/control.isa | 10 |
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; } }}; |