From: Leon Alrae Date: Mon, 26 Jan 2015 16:17:39 +0000 (+0000) Subject: target-mips: use CP0EnLo_XI instead of magic number X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~346^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b1979d7b37c7fa6b187442e0990afa6f88fe3b;p=sdk%2Femulator%2Fqemu.git target-mips: use CP0EnLo_XI instead of magic number Signed-off-by: Leon Alrae Reviewed-by: Maciej W. Rozycki --- diff --git a/target-mips/translate.c b/target-mips/translate.c index a24863c..b80af98 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -4947,7 +4947,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel) #if defined(TARGET_MIPS64) if (ctx->rxi) { TCGv tmp = tcg_temp_new(); - tcg_gen_andi_tl(tmp, arg, (3ull << 62)); + tcg_gen_andi_tl(tmp, arg, (3ull << CP0EnLo_XI)); tcg_gen_shri_tl(tmp, tmp, 32); tcg_gen_or_tl(arg, arg, tmp); tcg_temp_free(tmp); @@ -5002,7 +5002,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel) #if defined(TARGET_MIPS64) if (ctx->rxi) { TCGv tmp = tcg_temp_new(); - tcg_gen_andi_tl(tmp, arg, (3ull << 62)); + tcg_gen_andi_tl(tmp, arg, (3ull << CP0EnLo_XI)); tcg_gen_shri_tl(tmp, tmp, 32); tcg_gen_or_tl(arg, arg, tmp); tcg_temp_free(tmp);