From: Philippe Mathieu-Daudé Date: Mon, 16 Aug 2021 00:04:04 +0000 (+0200) Subject: target/mips: Remove duplicated check_cp1_enabled() calls in Loongson EXT X-Git-Tag: v6.2.0-rc0~134^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1feb46d12a7e7aeed804f2cca69f509c1bea8ef;p=thirdparty%2Fqemu.git target/mips: Remove duplicated check_cp1_enabled() calls in Loongson EXT We already call check_cp1_enabled() earlier in the "pre-conditions" checks for GSLWXC1 and GSLDXC1 in gen_loongson_lsdc2() prologue. Remove the duplicated calls. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Huacai Chen Message-Id: <20210816001031.1720432-1-f4bug@amsat.org> --- diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index 30780deb96f..a58d50e40e2 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -4693,7 +4693,6 @@ static void gen_loongson_lsdc2(DisasContext *ctx, int rt, break; #endif case OPC_GSLWXC1: - check_cp1_enabled(ctx); gen_base_offset_addr(ctx, t0, rs, offset); if (rd) { gen_op_addr_add(ctx, t0, cpu_gpr[rd], t0); @@ -4706,7 +4705,6 @@ static void gen_loongson_lsdc2(DisasContext *ctx, int rt, break; #if defined(TARGET_MIPS64) case OPC_GSLDXC1: - check_cp1_enabled(ctx); gen_base_offset_addr(ctx, t0, rs, offset); if (rd) { gen_op_addr_add(ctx, t0, cpu_gpr[rd], t0);