diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 8f111ae732df81b50362ec5429f0c2e30016c432..644f484c487467b018e865f6c09200f482d84c96 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -315,8 +315,7 @@ void kvm_arch_post_run(CPUState *cpu, struct kvm_run *run) int kvm_arch_process_async_events(CPUState *cs) { - S390CPU *cpu = S390_CPU(cs); - return cpu->env.halted; + return cs->halted; } void kvm_s390_interrupt_internal(S390CPU *cpu, int type, uint32_t parm,