From: Gabe Black Date: Sat, 28 Jan 2012 15:24:23 +0000 (-0800) Subject: MIPS: Fix a compiler warning from the eret instruction. X-Git-Tag: stable_2012_06_28~273 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eab5c602865bcd399f069f332edd42c4ea4edffe;p=gem5.git MIPS: Fix a compiler warning from the eret instruction. --- 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; } }};