diff options
author | Richard Henderson <rth@twiddle.net> | 2013-03-21 10:01:49 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-22 15:28:54 +0100 |
commit | 9ca3f7f3160365de9030e1a6128a871625abe346 (patch) | |
tree | a93054450065c486cbda7e9cf528d31a84993785 /target-ppc/translate.c | |
parent | c791fe8436cf6b93ddb035a5b7a87487da5f7b30 (diff) | |
download | hqemu-9ca3f7f3160365de9030e1a6128a871625abe346.zip hqemu-9ca3f7f3160365de9030e1a6128a871625abe346.tar.gz |
target-ppc: Use NARROW_MODE macro for tlbie
Removing conditional compilation in the process.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 3b47553..5e741d1 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 } |