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>
This commit is contained in:
Richard Henderson 2013-03-21 10:01:49 +00:00 committed by Alexander Graf
parent c791fe8436
commit 9ca3f7f316
1 changed files with 3 additions and 4 deletions

View File

@ -4320,15 +4320,14 @@ static void gen_tlbie(DisasContext *ctx)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return; return;
} }
#if defined(TARGET_PPC64) if (NARROW_MODE(ctx)) {
if (!ctx->sf_mode) {
TCGv t0 = tcg_temp_new(); TCGv t0 = tcg_temp_new();
tcg_gen_ext32u_tl(t0, cpu_gpr[rB(ctx->opcode)]); tcg_gen_ext32u_tl(t0, cpu_gpr[rB(ctx->opcode)]);
gen_helper_tlbie(cpu_env, t0); gen_helper_tlbie(cpu_env, t0);
tcg_temp_free(t0); tcg_temp_free(t0);
} else } else {
#endif
gen_helper_tlbie(cpu_env, cpu_gpr[rB(ctx->opcode)]); gen_helper_tlbie(cpu_env, cpu_gpr[rB(ctx->opcode)]);
}
#endif #endif
} }