mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 16:36:44 +07:00
KVM: s390: Fix sparse warnings in priv.c
sparse complained about the missing UL postfix for long constants. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
78c4b59f72
commit
843200e7cc
@ -490,12 +490,12 @@ static int handle_epsw(struct kvm_vcpu *vcpu)
|
||||
kvm_s390_get_regs_rre(vcpu, ®1, ®2);
|
||||
|
||||
/* This basically extracts the mask half of the psw. */
|
||||
vcpu->run->s.regs.gprs[reg1] &= 0xffffffff00000000;
|
||||
vcpu->run->s.regs.gprs[reg1] &= 0xffffffff00000000UL;
|
||||
vcpu->run->s.regs.gprs[reg1] |= vcpu->arch.sie_block->gpsw.mask >> 32;
|
||||
if (reg2) {
|
||||
vcpu->run->s.regs.gprs[reg2] &= 0xffffffff00000000;
|
||||
vcpu->run->s.regs.gprs[reg2] &= 0xffffffff00000000UL;
|
||||
vcpu->run->s.regs.gprs[reg2] |=
|
||||
vcpu->arch.sie_block->gpsw.mask & 0x00000000ffffffff;
|
||||
vcpu->arch.sie_block->gpsw.mask & 0x00000000ffffffffUL;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user