[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 5/5] target-ppc: Use NARROW_MODE macro for tlbie
From: |
Richard Henderson |
Subject: |
[Qemu-ppc] [PATCH 5/5] target-ppc: Use NARROW_MODE macro for tlbie |
Date: |
Thu, 21 Mar 2013 13:01:49 -0700 |
Removing conditional compilation in the process.
Signed-off-by: Richard Henderson <address@hidden>
---
target-ppc/translate.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 2bb28b8..af936cd 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -4320,15 +4320,14 @@ static void gen_tlbie(DisasContext *ctx)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
-#if defined(TARGET_PPC64)
- if (!ctx->sf_mode) {
+ if (NARROW_MODE(ctx)) {
TCGv t0 = tcg_temp_new();
tcg_gen_ext32u_tl(t0, cpu_gpr[rB(ctx->opcode)]);
gen_helper_tlbie(cpu_env, t0);
tcg_temp_free(t0);
- } else
-#endif
+ } else {
gen_helper_tlbie(cpu_env, cpu_gpr[rB(ctx->opcode)]);
+ }
#endif
}
--
1.8.1.4
- [Qemu-ppc] [PATCH 0/5] target-ppc: fix add-with-carry in narrow mode, Richard Henderson, 2013/03/21
- [Qemu-ppc] [PATCH 1/5] target-ppc: Fix add and subf carry generation in narrow mode, Richard Henderson, 2013/03/21
- [Qemu-ppc] [PATCH 3/5] target-ppc: Use NARROW_MODE macro for comparisons, Richard Henderson, 2013/03/21
- [Qemu-ppc] [PATCH 2/5] target-ppc: Use NARROW_MODE macro for branches, Richard Henderson, 2013/03/21
- [Qemu-ppc] [PATCH 5/5] target-ppc: Use NARROW_MODE macro for tlbie,
Richard Henderson <=
- [Qemu-ppc] [PATCH 4/5] target-ppc: Use NARROW_MODE macro for addresses, Richard Henderson, 2013/03/21
- Re: [Qemu-ppc] [PATCH 0/5] target-ppc: fix add-with-carry in narrow mode, Alexander Graf, 2013/03/21