Make s390x stopping mechanism work

This commit is contained in:
mio
2021-12-27 23:48:20 +01:00
parent a38151bf77
commit 034a1aa5f2
7 changed files with 22 additions and 6 deletions

View File

@ -598,3 +598,12 @@ void s390x_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
tcg_s390_program_interrupt(env, PGM_SPECIFICATION, retaddr);
}
void helper_uc_s390x_exit(CPUS390XState *env)
{
CPUState *cs = env_cpu(env);
cs->exception_index = EXCP_HLT;
cs->halted = 1;
cpu_loop_exit(cs);
}