target/s390x: factor out handling of WAIT PSW into s390_handle_wait()
commit83f7f32901c630f4fc01acd0d9082da466b17102
authorDavid Hildenbrand <david@redhat.com>
Thu, 28 Sep 2017 20:36:46 +0000 (28 22:36 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 20 Oct 2017 11:32:10 +0000 (20 13:32 +0200)
tree2c571253c7a9908b5cb6a2f8ef27f5cab93ba4a3
parent2b3394f13d2b38f0342ead78d5e60d42c29f1d4c
target/s390x: factor out handling of WAIT PSW into s390_handle_wait()

This will now also detect crashes under TCG. We can directly use
cpu->env.psw.addr instead of kvm_run, as we do a cpu_synchronize_state().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170928203708.9376-9-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/helper.c
target/s390x/internal.h
target/s390x/kvm.c