[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 01/17] ppc: do not look at the MMU index
From: |
Paolo Bonzini |
Subject: |
[Qemu-ppc] [PATCH 01/17] ppc: do not look at the MMU index |
Date: |
Thu, 28 Aug 2014 19:14:57 +0200 |
The MMU index is an internal detail that should not be
needed by the translator. Look at the MSR directly.
Signed-off-by: Paolo Bonzini <address@hidden>
---
target-ppc/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index c07bb01..5a8267a 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -11261,7 +11261,7 @@ static inline void
gen_intermediate_code_internal(PowerPCCPU *cpu,
ctx.tb = tb;
ctx.exception = POWERPC_EXCP_NONE;
ctx.spr_cb = env->spr_cb;
- ctx.mem_idx = env->mmu_idx;
+ ctx.mem_idx = (!msr_pr && msr_hv) ? 2 : 1 - msr_pr;
ctx.insns_flags = env->insns_flags;
ctx.insns_flags2 = env->insns_flags2;
ctx.access_type = -1;
--
1.8.3.1
- [Qemu-ppc] [RFT/RFH PATCH 00/16] PPC speedup patches for TCG, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 01/17] ppc: do not look at the MMU index,
Paolo Bonzini <=
- [Qemu-ppc] [PATCH 02/17] ppc: avoid excessive TLB flushing, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 04/17] ppc: use ARRAY_SIZE in gdbstub.c, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 03/17] ppc: fix monitor access to CR, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 05/17] ppc: use CRF_* in fpu_helper.c, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 06/17] ppc: use CRF_* in int_helper.c, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 07/17] ppc: fix result of DLMZB when no zero bytes are found, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 08/17] ppc: introduce helpers for mfocrf/mtocrf, Paolo Bonzini, 2014/08/28
- [Qemu-ppc] [PATCH 09/17] ppc: reorganize gen_compute_fprf, Paolo Bonzini, 2014/08/28