diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-19 11:06:31 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-04-25 15:15:25 +0200 |
commit | 17523a38194d80f2955c6a8e0702e0fc86dd083d (patch) | |
tree | ceff1817f66a84b59251359bc20b3d3a3766c315 | |
parent | 73a1e96935dbaec950a310916eec13b46871b8b2 (diff) | |
download | qemu-17523a38194d80f2955c6a8e0702e0fc86dd083d.zip qemu-17523a38194d80f2955c6a8e0702e0fc86dd083d.tar.gz qemu-17523a38194d80f2955c6a8e0702e0fc86dd083d.tar.bz2 |
target/s390x: Remove KVM stubs in cpu_models.h
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>
-rw-r--r-- | target/s390x/cpu_models.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/target/s390x/cpu_models.h b/target/s390x/cpu_models.h index d7b8912..a89c2a1 100644 --- a/target/s390x/cpu_models.h +++ b/target/s390x/cpu_models.h @@ -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 */ |