[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 11/14] target-mips: use CP0EnLo_XI instead of magi
From: |
Leon Alrae |
Subject: |
[Qemu-devel] [PULL v2 11/14] target-mips: use CP0EnLo_XI instead of magic number |
Date: |
Sat, 14 Feb 2015 17:45:01 +0000 |
Signed-off-by: Leon Alrae <address@hidden>
Reviewed-by: Maciej W. Rozycki <address@hidden>
---
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
- [Qemu-devel] [PULL v2 00/14] target-mips queue, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 02/14] jazz: do not explode QEMUMachineInitArgs structure, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 01/14] isa: add memory space parameter to isa_bus_new, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 09/14] target-mips: fix detection of the end of the page during translation, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 13/14] target-mips: pass 0 instead of -1 as rs in microMIPS LUI instruction, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 08/14] target-mips: Make CP0.Status.CU1 read-only for the 5Kc and 5KEc processors, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 06/14] gt64xxx: remove isa_mem_base usage, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 04/14] mips: remove isa_mem_base usage, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 03/14] jazz: remove usage of isa_mem_base, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 05/14] piix4: use PCI address space instead of system memory, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 11/14] target-mips: use CP0EnLo_XI instead of magic number,
Leon Alrae <=
- [Qemu-devel] [PULL v2 07/14] isa: remove isa_mem_base variable, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 14/14] linux-user: correct stat structure in MIPS N32, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 10/14] target-mips: ll and lld cause AdEL exception for unaligned address, Leon Alrae, 2015/02/14
- [Qemu-devel] [PULL v2 12/14] target-mips: fix broken snapshotting, Leon Alrae, 2015/02/14
- Re: [Qemu-devel] [PULL v2 00/14] target-mips queue, Peter Maydell, 2015/02/17
- Re: [Qemu-devel] [PULL v2 00/14] target-mips queue, Peter Maydell, 2015/02/24