mirror of https://gitee.com/openkylin/qemu.git
s390x/tcg: use s390_program_interrupt() in per_check_exception()
We can now drop updating the cc. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20171130162744.25442-13-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
277b156d8d
commit
8808338200
|
@ -412,7 +412,7 @@ void HELPER(per_check_exception)(CPUS390XState *env)
|
|||
* of EXECUTE, while per_address contains the target of EXECUTE.
|
||||
*/
|
||||
ilen = get_ilen(cpu_ldub_code(env, env->per_address));
|
||||
program_interrupt(env, PGM_PER, ilen);
|
||||
s390_program_interrupt(env, PGM_PER, ilen, GETPC());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5837,9 +5837,6 @@ static ExitStatus translate_one(CPUS390XState *env, DisasContext *s)
|
|||
tcg_gen_movi_i64(psw_addr, s->next_pc);
|
||||
}
|
||||
|
||||
/* Save off cc. */
|
||||
update_cc_op(s);
|
||||
|
||||
/* Call the helper to check for a possible PER exception. */
|
||||
gen_helper_per_check_exception(cpu_env);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue