From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMgmg-0005o2-5B for qemu-devel@nongnu.org; Sat, 14 Feb 2015 12:45:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMgmb-0005JB-RP for qemu-devel@nongnu.org; Sat, 14 Feb 2015 12:45:38 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:56149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMgmb-0005In-K5 for qemu-devel@nongnu.org; Sat, 14 Feb 2015 12:45:33 -0500 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id E6FCA2329C310 for ; Sat, 14 Feb 2015 17:45:28 +0000 (GMT) From: Leon Alrae Date: Sat, 14 Feb 2015 17:45:01 +0000 Message-ID: <1423935904-29405-12-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1423935904-29405-1-git-send-email-leon.alrae@imgtec.com> References: <1423935904-29405-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL v2 11/14] target-mips: use CP0EnLo_XI instead of magic number List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Leon Alrae Reviewed-by: Maciej W. Rozycki --- target-mips/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.1.0