]> git.proxmox.com Git - qemu.git/commitdiff
target-ppc: Use NARROW_MODE macro for tlbie
authorRichard Henderson <rth@twiddle.net>
Thu, 21 Mar 2013 10:01:49 +0000 (10:01 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:54 +0000 (15:28 +0100)
Removing conditional compilation in the process.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c

index 3b47553878a2fb676b7d3d52347d7c54db64ea7e..5e741d1ab4511e3099a31dc02e1a6503c58b2996 100644 (file)
@@ -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
 }