mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/s390x: Implement EXECUTE via new TranslationBlock
Previously, helper_ex would construct the insn and then implement the insn via direct calls other helpers. This was sufficient to boot Linux but that is all. It is easy enough to go the whole nine yards by stashing state for EXECUTE within the cpu, and then rely on a new TB to be created that properly and completely interprets the insn. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
06fc03486c
commit
303c681a8f
5 changed files with 85 additions and 141 deletions
|
@ -642,6 +642,11 @@ bool s390_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|||
S390CPU *cpu = S390_CPU(cs);
|
||||
CPUS390XState *env = &cpu->env;
|
||||
|
||||
if (env->ex_value) {
|
||||
/* Execution of the target insn is indivisible from
|
||||
the parent EXECUTE insn. */
|
||||
return false;
|
||||
}
|
||||
if (env->psw.mask & PSW_MASK_EXT) {
|
||||
s390_cpu_do_interrupt(cs);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue