aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-09-04 14:43:23 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-09-07 13:32:37 +0200
commitfc30abf84662fd68c9308aa07c18b71eed0dffc0 (patch)
tree7b319f78fc4296705fae1e30ae6ba71af5ccc0d1 /hw
parent1f49d47661d00df4e229cd85353e701c60cf77a2 (diff)
downloadqemu-fc30abf84662fd68c9308aa07c18b71eed0dffc0.zip
qemu-fc30abf84662fd68c9308aa07c18b71eed0dffc0.tar.gz
qemu-fc30abf84662fd68c9308aa07c18b71eed0dffc0.tar.bz2
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')
-rw-r--r--hw/i386/kvm/i8254.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c
index 6a7383d..a649b2b 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