aboutsummaryrefslogtreecommitdiff
path: root/target-s390x/kvm.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2013-07-02 13:43:38 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2013-09-20 12:46:53 +0200
commit3d0a615fe92501684d8d2dc54326f0241b666bd2 (patch)
tree3294e975f8c53a7314902d9213cf9852e5ab4ed4 /target-s390x/kvm.c
parent1902269c19a2c8ba852f90f04d6dfde1d1145d6f (diff)
downloadqemu-3d0a615fe92501684d8d2dc54326f0241b666bd2.zip
qemu-3d0a615fe92501684d8d2dc54326f0241b666bd2.tar.gz
qemu-3d0a615fe92501684d8d2dc54326f0241b666bd2.tar.bz2
s390/cpu: Make setcc() function available to other files
Moved the setcc() function to cpu.h so that it can be used by other files, too. It now also does not modify the kvm state anymore since this gets updated during kvm_arch_put_registers() anyway. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target-s390x/kvm.c')
-rw-r--r--target-s390x/kvm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 0bc317e..a5d5584 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -418,18 +418,6 @@ static void enter_pgmcheck(S390CPU *cpu, uint16_t code)
kvm_s390_interrupt(cpu, KVM_S390_PROGRAM_INT, code);
}
-static inline void setcc(S390CPU *cpu, uint64_t cc)
-{
- CPUS390XState *env = &cpu->env;
- CPUState *cs = CPU(cpu);
-
- cs->kvm_run->psw_mask &= ~(3ull << 44);
- cs->kvm_run->psw_mask |= (cc & 3) << 44;
-
- env->psw.mask &= ~(3ul << 44);
- env->psw.mask |= (cc & 3) << 44;
-}
-
static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
uint16_t ipbh0)
{