aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/translate/vsx-impl.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-27 16:56:28 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-07 12:33:47 +1000
commitef24726e4847d61ca647e3ae8dc47422ca721259 (patch)
tree8356c7f0a362e800a0a7aedc62c2947d42e358e1 /target-ppc/translate/vsx-impl.c
parent44f35bd1ac3dccd4e7fbd5d443c84e959c8a1a14 (diff)
ppc: Don't update the NIP in floating point generated code
This is no longer necessary as the helpers will properly retrieve the return address. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/translate/vsx-impl.c')
-rw-r--r--target-ppc/translate/vsx-impl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target-ppc/translate/vsx-impl.c b/target-ppc/translate/vsx-impl.c
index 7361c4779c..9f77b06bd8 100644
--- a/target-ppc/translate/vsx-impl.c
+++ b/target-ppc/translate/vsx-impl.c
@@ -380,8 +380,6 @@ static void gen_##name(DisasContext * ctx) \
gen_exception(ctx, POWERPC_EXCP_VSXU); \
return; \
} \
- /* NIP cannot be restored if the memory exception comes from an helper */ \
- gen_update_nip(ctx, ctx->nip - 4); \
opc = tcg_const_i32(ctx->opcode); \
gen_helper_##name(cpu_env, opc); \
tcg_temp_free_i32(opc); \
@@ -394,10 +392,6 @@ static void gen_##name(DisasContext * ctx) \
gen_exception(ctx, POWERPC_EXCP_VSXU); \
return; \
} \
- /* NIP cannot be restored if the exception comes */ \
- /* from a helper. */ \
- gen_update_nip(ctx, ctx->nip - 4); \
- \
gen_helper_##name(cpu_vsrh(xT(ctx->opcode)), cpu_env, \
cpu_vsrh(xB(ctx->opcode))); \
}