From: Leon Alrae Date: Tue, 14 Jul 2015 10:08:14 +0000 (+0100) Subject: target-mips: fix logically dead code reported by Coverity X-Git-Tag: v2.4.0-rc1~3^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47ada0ad3431b39863918dc80386634693d317b5;p=thirdparty%2Fqemu.git target-mips: fix logically dead code reported by Coverity Make use of CMPOP in floating-point compare instructions. Signed-off-by: Leon Alrae Reviewed-by: Aurelien Jarno --- diff --git a/target-mips/translate.c b/target-mips/translate.c index 73028572c94..4a1ffdbd946 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -9552,6 +9552,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, gen_cmp_s(ctx, func-48, ft, fs, cc); opn = condnames[func-48]; } + optype = CMPOP; break; case OPC_ADD_D: check_cp1_registers(ctx, fs | ft | fd); @@ -10036,6 +10037,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, gen_cmp_d(ctx, func-48, ft, fs, cc); opn = condnames[func-48]; } + optype = CMPOP; break; case OPC_CVT_S_D: check_cp1_registers(ctx, fs); @@ -10461,6 +10463,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, gen_cmp_ps(ctx, func-48, ft, fs, cc); opn = condnames[func-48]; } + optype = CMPOP; break; default: MIPS_INVAL(opn);