aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-19 14:59:21 +0200
committerAvi Kivity <avi@redhat.com>2009-09-21 12:23:37 +0300
commitb08d7635dc946ce61416b3344a42824256b0efc4 (patch)
treeda2fe195a1cbc6842e82f3654ea040fec4681bc2 /hw
parentapic: Variable only used when CAP_IRQCHIP is defined (diff)
downloadqemu-kvm-b08d7635dc946ce61416b3344a42824256b0efc4.tar.gz
qemu-kvm-b08d7635dc946ce61416b3344a42824256b0efc4.tar.bz2
qemu-kvm-b08d7635dc946ce61416b3344a42824256b0efc4.zip
i8259: kvm_* functions only defined when KVM_CAP_IRQCHIP devined
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i8259.c b/hw/i8259.c
index aaec6d81e..3b98bab5d 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -464,18 +464,18 @@ static uint32_t elcr_ioport_read(void *opaque, uint32_t addr1)
return s->elcr;
}
+#ifdef KVM_CAP_IRQCHIP
static void kvm_kernel_pic_save_to_user(const void *opaque);
static int kvm_kernel_pic_load_from_user(void *opaque);
+#endif
static const VMStateDescription vmstate_pic = {
.name = "i8259",
.version_id = 1,
#ifdef KVM_CAP_IRQCHIP
-#ifdef TARGET_I386
.pre_save = kvm_kernel_pic_save_to_user,
.post_load = kvm_kernel_pic_load_from_user,
#endif
-#endif
.minimum_version_id = 1,
.minimum_version_id_old = 1,
.fields = (VMStateField []) {