Received: from eggs.gnu.org ([2001:4830:134:3::10]:46595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0TwV-0006eE-4w for qemu-devel@nongnu.org; Mon, 15 Dec 2014 06:36:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0TwJ-0005cw-I6 for qemu-devel@nongnu.org; Mon, 15 Dec 2014 06:35:59 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:58837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0TwJ-0005cW-8n for qemu-devel@nongnu.org; Mon, 15 Dec 2014 06:35:47 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 15 Dec 2014 11:35:46 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0D95D17D8062 for ; Mon, 15 Dec 2014 11:36:08 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBFBZhk858654884 for ; Mon, 15 Dec 2014 11:35:43 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBFBZh0W019000 for ; Mon, 15 Dec 2014 04:35:43 -0700 From: Cornelia Huck Date: Mon, 15 Dec 2014 12:35:31 +0100 Message-Id: <1418643332-29100-11-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1418643332-29100-1-git-send-email-cornelia.huck@de.ibm.com> References: <1418643332-29100-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL 10/11] s390/pci: remove unnecessary cpu_synchronize_state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: Frank Blaschka , qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Cornelia Huck From: Frank Blaschka Remove all unnecessary calls to cpu_synchronize_state Signed-off-by: Frank Blaschka Signed-off-by: Cornelia Huck Reviewed-by: Thomas Huth --- hw/s390x/s390-pci-inst.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c index f503665..83ab60f 100644 --- a/hw/s390x/s390-pci-inst.c +++ b/hw/s390x/s390-pci-inst.c @@ -564,8 +564,6 @@ int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr) uint8_t pcias; uint8_t len; - cpu_synchronize_state(CPU(cpu)); - if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PRIVILEGED, 6); return 0; @@ -711,8 +709,6 @@ int mpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba) S390PCIBusDevice *pbdev; uint64_t cc = ZPCI_PCI_LS_OK; - cpu_synchronize_state(CPU(cpu)); - if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PRIVILEGED, 6); return 0; @@ -786,8 +782,6 @@ int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba) uint32_t data; uint64_t cc = ZPCI_PCI_LS_OK; - cpu_synchronize_state(CPU(cpu)); - if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PRIVILEGED, 6); return 0; -- 1.7.9.5