Skip to contentSkip to conversation

s390/pci: remove unnecessary cpu_synchronize_state

PATCH Applied Frank Blaschka 3 participants 3 messages Dec 8, 2014 – Dec 9, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/pci: remove unnecessary cpu_synchronize_state

Remove all unnecessary calls to cpu_synchronize_state

---
 hw/s390x/s390-pci-inst.c | 6 ------
 1 file changed, 6 deletions(-)
hw/s390x/s390-pci-inst.c +0 -6
index f503665..83ab60f 100644
@@ -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;
Signature · 1 line
1.8.5.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines · On Mon, 8 Dec 2014 09:18:59 +0100 Frank Blaschka…

Remove all unnecessary calls to cpu_synchronize_state

---
 hw/s390x/s390-pci-inst.c | 6 ------
 1 file changed, 6 deletions(-)
hw/s390x/s390-pci-inst.c +0 -4
index f503665..83ab60f 100644
@@ -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;

hw/s390x/s390-pci-inst.c int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba) · line 787

Quoted 8 lines
hw/s390x/s390-pci-inst.c +0 -2
@@ -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;