@@ -1,4 +1,3 @@
-DEF_HELPER_2(exception, noreturn, env, i32)
DEF_HELPER_2(data_exception, noreturn, env, i32)
DEF_HELPER_FLAGS_4(nc, TCG_CALL_NO_WG, i32, env, i32, i64, i64)
DEF_HELPER_FLAGS_4(oc, TCG_CALL_NO_WG, i32, env, i32, i64, i64)
@@ -2488,7 +2488,7 @@ void HELPER(ex)(CPUS390XState *env, uint32_t ilen, uint64_t r1, uint64_t addr)
} else if (opc == 0x0a) {
env->int_svc_code = extract64(insn, 48, 8);
env->int_svc_ilen = ilen;
- helper_exception(env, EXCP_SVC);
+ cpu_raise_excp(env_cpu(env), EXCP_SVC);
g_assert_not_reached();
}
@@ -56,16 +56,6 @@
#define HELPER_LOG(x...)
#endif
-/* Raise an exception statically from a TB. */
-void HELPER(exception)(CPUS390XState *env, uint32_t excp)
-{
- CPUState *cs = env_cpu(env);
-
- HELPER_LOG("%s: exception %d\n", __func__, excp);
- cs->exception_index = excp;
- cpu_loop_exit(cs);
-}
-
/* Store CPU Timer (also used for EXTRACT CPU TIME) */
uint64_t HELPER(stpt)(CPUS390XState *env)
{
@@ -400,7 +400,7 @@ static int get_mem_index(DisasContext *s)
static void gen_exception(int excp)
{
- gen_helper_exception(tcg_env, tcg_constant_i32(excp));
+ gen_helper_raise_excp(tcg_env, tcg_constant_i32(excp));
}
static void gen_program_exception(DisasContext *s, int code)