[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/7] tcg-ia64: Fix tlb read error for 32-bit targets
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 5/7] tcg-ia64: Fix tlb read error for 32-bit targets. |
Date: |
Mon, 22 Nov 2010 14:57:56 -0800 |
Use ld4 not ld8 for reading the tlb of 32-bit targets.
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/ia64/tcg-target.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c
index 62f0804..da81f1b 100644
--- a/tcg/ia64/tcg-target.c
+++ b/tcg/ia64/tcg-target.c
@@ -1459,7 +1459,9 @@ static inline void tcg_out_qemu_tlb(TCGContext *s, TCGArg
addr_reg,
tcg_opc_a1 (TCG_REG_P0, OPC_ADD_A1, TCG_REG_R2,
TCG_REG_R2, TCG_AREG0));
tcg_out_bundle(s, mII,
- tcg_opc_m3 (TCG_REG_P0, OPC_LD8_M3, TCG_REG_R57,
+ tcg_opc_m3 (TCG_REG_P0,
+ (TARGET_LONG_BITS == 32
+ ? OPC_LD4_M3 : OPC_LD8_M3), TCG_REG_R57,
TCG_REG_R2, offset_addend - offset_rw),
tcg_opc_a1 (TCG_REG_P0, OPC_AND_A1, TCG_REG_R3,
TCG_REG_R3, TCG_REG_R56),
--
1.7.2.3
- [Qemu-devel] [PATCH 0/7] Fixes for ia64-linux host, Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 7/7] tcg-ia64: Fix warning in qemu_ld., Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 5/7] tcg-ia64: Fix tlb read error for 32-bit targets.,
Richard Henderson <=
- [Qemu-devel] [PATCH 3/7] tcg-ia64: Provide default GUEST_BASE., Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 1/7] microblaze: target-ify target_ucontext, Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 6/7] tcg-ia64: Fix address compilation in qemu_st., Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 4/7] tcg-ia64: Implement qemu_ld32., Richard Henderson, 2010/11/22
- [Qemu-devel] [PATCH 2/7] tcg: Fix default definition of divu_i32 and remu_i32., Richard Henderson, 2010/11/22