mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
s390x/tcg: take care of external interrupt subclasses
We can now let go of INTERRUPT_EXT. When cr0 changes, we have to revalidate if we now have a pending external interrupt, just like when the PSW (or SYSTEM MASK only) changes. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20170928203708.9376-6-david@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
8417f904ba
commit
9dec238826
4 changed files with 50 additions and 13 deletions
|
@ -209,7 +209,37 @@ bool s390_cpu_has_ext_int(S390CPU *cpu)
|
|||
return false;
|
||||
}
|
||||
|
||||
return env->pending_int & INTERRUPT_EXT;
|
||||
if ((env->pending_int & INTERRUPT_EMERGENCY_SIGNAL) &&
|
||||
(env->cregs[0] & CR0_EMERGENCY_SIGNAL_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((env->pending_int & INTERRUPT_EXTERNAL_CALL) &&
|
||||
(env->cregs[0] & CR0_EXTERNAL_CALL_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((env->pending_int & INTERRUPT_EXTERNAL_CALL) &&
|
||||
(env->cregs[0] & CR0_EXTERNAL_CALL_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((env->pending_int & INTERRUPT_EXT_CLOCK_COMPARATOR) &&
|
||||
(env->cregs[0] & CR0_CKC_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((env->pending_int & INTERRUPT_EXT_CPU_TIMER) &&
|
||||
(env->cregs[0] & CR0_CPU_TIMER_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((env->pending_int & INTERRUPT_EXT_SERVICE) &&
|
||||
(env->cregs[0] & CR0_SERVICE_SC)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool s390_cpu_has_io_int(S390CPU *cpu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue