diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-04 11:25:09 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-07 19:02:32 +0200 |
| commit | 044431cfe7a9325cc5c22b5feb5a6116d0264e2f (patch) | |
| tree | 67b0c61cee34100ea44c9d5f87bc591bb158f7a9 /target/i386/cpu.c | |
| parent | 6da9447929a88c05bc82a6ead0c967ce1e1e838c (diff) | |
| download | focaccia-qemu-044431cfe7a9325cc5c22b5feb5a6116d0264e2f.tar.gz focaccia-qemu-044431cfe7a9325cc5c22b5feb5a6116d0264e2f.zip | |
sysemu/kvm: Restrict hvf_get_supported_cpuid() to x86 targets
hvf_get_supported_cpuid() is only defined for x86 targets (in target/i386/hvf/x86_cpuid.c). Its declaration is pointless on all other targets. All the calls to it in target/i386/cpu.c are guarded by a call on hvf_enabled(), so are elided when HVF is not built in. Therefore we can remove the unnecessary function stub. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20231004092510.39498-3-philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/cpu.c')
| -rw-r--r-- | target/i386/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 9fad31b8db..ac0ae502f5 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -26,6 +26,7 @@ #include "tcg/helper-tcg.h" #include "sysemu/reset.h" #include "sysemu/hvf.h" +#include "hvf/hvf-i386.h" #include "kvm/kvm_i386.h" #include "sev.h" #include "qapi/error.h" |