aboutsummaryrefslogtreecommitdiff
path: root/target-s390x/cpu.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-05-18 13:08:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-19 13:07:34 +0200
commitb01501db18dbb04a30c647981b376fb5712bc34f (patch)
tree72fdc0e222b98fdced4e983c0e36f9b63307361c /target-s390x/cpu.h
parentf115a19c40b6ef19f08d12eeb032d88f176d6870 (diff)
s390x: move .needed functions for subsections to machine.c
These functions are only used when defining subsections, so move them there. Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-s390x/cpu.h')
-rw-r--r--target-s390x/cpu.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h
index 996b79023e..00e9f694b4 100644
--- a/target-s390x/cpu.h
+++ b/target-s390x/cpu.h
@@ -1271,32 +1271,6 @@ static inline void s390_crypto_reset(void)
}
}
-#ifdef CONFIG_KVM
-static inline bool vregs_needed(void *opaque)
-{
- if (kvm_enabled()) {
- return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS);
- }
- return 0;
-}
-static inline bool riccb_needed(void *opaque)
-{
- if (kvm_enabled()) {
- return kvm_s390_get_ri();
- }
- return 0;
-}
-#else
-static inline bool vregs_needed(void *opaque)
-{
- return 0;
-}
-static inline bool riccb_needed(void *opaque)
-{
- return 0;
-}
-#endif
-
/* machine check interruption code */
/* subclasses */