From: Christian Borntraeger Date: Thu, 20 Feb 2020 13:16:22 +0000 (+0100) Subject: s390/sclp: improve special wait psw logic X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8b51c0961cc13e55b26bb6665ec3a341abdc7658;p=qmiga%2Fqemu.git s390/sclp: improve special wait psw logic There is a special quiesce PSW that we check for "shutdown". Otherwise disabled wait is detected as "crashed". Architecturally we must only check PSW bits 116-127. Fix this. Cc: qemu-stable@nongnu.org Signed-off-by: Christian Borntraeger Message-Id: <1582204582-22995-1-git-send-email-borntraeger@de.ibm.com> Reviewed-by: David Hildenbrand Acked-by: Janosch Frank Signed-off-by: Cornelia Huck --- diff --git a/target/s390x/helper.c b/target/s390x/helper.c index b810ad431e..ed72684911 100644 --- a/target/s390x/helper.c +++ b/target/s390x/helper.c @@ -89,7 +89,7 @@ hwaddr s390_cpu_get_phys_addr_debug(CPUState *cs, vaddr vaddr) static inline bool is_special_wait_psw(uint64_t psw_addr) { /* signal quiesce */ - return psw_addr == 0xfffUL; + return (psw_addr & 0xfffUL) == 0xfffUL; } void s390_handle_wait(S390CPU *cpu)