]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target/s390x: Remove KVM stubs in cpu_models.h
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 19 Apr 2024 09:06:31 +0000 (11:06 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 25 Apr 2024 13:15:25 +0000 (15:15 +0200)
Since the calls are elided when KVM is not available,
we can remove the stubs (which are never compiled).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240419090631.48055-1-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu_models.h

index d7b89129891a1fbc8b2534f35c8400e705a6718c..a89c2a15ab54794b43ba5d7b69206a81572f977c 100644 (file)
@@ -114,23 +114,8 @@ static inline uint64_t s390_cpuid_from_cpu_model(const S390CPUModel *model)
 S390CPUDef const *s390_find_cpu_def(uint16_t type, uint8_t gen, uint8_t ec_ga,
                                     S390FeatBitmap features);
 
-#ifdef CONFIG_KVM
 bool kvm_s390_cpu_models_supported(void);
 void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp);
 void kvm_s390_apply_cpu_model(const S390CPUModel *model,  Error **errp);
-#else
-static inline void kvm_s390_get_host_cpu_model(S390CPUModel *model,
-                                               Error **errp)
-{
-}
-static inline void kvm_s390_apply_cpu_model(const S390CPUModel *model,
-                                            Error **errp)
-{
-}
-static inline bool kvm_s390_cpu_models_supported(void)
-{
-    return false;
-}
-#endif
 
 #endif /* TARGET_S390X_CPU_MODELS_H */