From: Gabe Black Date: Fri, 14 May 2010 21:22:51 +0000 (-0700) Subject: SPARC: Implement the version of movcc that uses the fp condition codes. X-Git-Tag: stable_2012_02_02~1408 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5c559b6abf3eb803eeaa4b635d482b39afe9e9e;p=gem5.git SPARC: Implement the version of movcc that uses the fp condition codes. --- diff --git a/src/arch/sparc/isa/decoder.isa b/src/arch/sparc/isa/decoder.isa index ce5e34ff0..b9b38b569 100644 --- a/src/arch/sparc/isa/decoder.isa +++ b/src/arch/sparc/isa/decoder.isa @@ -395,7 +395,33 @@ decode OP default Unknown::unknown() }}); 0x2C: decode MOVCC3 { - 0x0: Trap::movccfcc({{fault = new FpDisabled;}}); + 0x0: decode CC + { + 0x0: movccfcc0({{ + if(passesCondition(Fsr<11:10>, COND4)) + Rd = Rs2_or_imm11; + else + Rd = Rd; + }}); + 0x1: movccfcc1({{ + if(passesCondition(Fsr<33:32>, COND4)) + Rd = Rs2_or_imm11; + else + Rd = Rd; + }}); + 0x2: movccfcc2({{ + if(passesCondition(Fsr<35:34>, COND4)) + Rd = Rs2_or_imm11; + else + Rd = Rd; + }}); + 0x3: movccfcc3({{ + if(passesCondition(Fsr<37:36>, COND4)) + Rd = Rs2_or_imm11; + else + Rd = Rd; + }}); + } 0x1: decode CC { 0x0: movcci({{