diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-09-04 14:43:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-07 13:32:37 +0200 |
commit | fc30abf84662fd68c9308aa07c18b71eed0dffc0 (patch) | |
tree | 7b319f78fc4296705fae1e30ae6ba71af5ccc0d1 /hw/i386/kvm/i8254.c | |
parent | 1f49d47661d00df4e229cd85353e701c60cf77a2 (diff) |
sysemu/kvm: Restrict kvm_has_pit_state2() to x86 targets
kvm_has_pit_state2() is only defined for x86 targets (in
target/i386/kvm/kvm.c). Its declaration is pointless on
all other targets. Have it return a boolean.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904124325.79040-13-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/kvm/i8254.c')
-rw-r--r-- | hw/i386/kvm/i8254.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index 6a7383d877..a649b2b7ca 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -34,6 +34,7 @@ #include "hw/timer/i8254_internal.h" #include "hw/qdev-properties-system.h" #include "sysemu/kvm.h" +#include "target/i386/kvm/kvm_i386.h" #include "qom/object.h" #define KVM_PIT_REINJECT_BIT 0 |