diff options
| author | Marc-André Lureau | 2017-06-07 18:36:24 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2017-06-20 14:31:33 +0200 |
| commit | 5d7fb0f254164e883a077186530fc2aa706954a4 (patch) | |
| tree | 275039df28db794490ce88107dfe3c32ada5bfed | |
| parent | pc: use get_uint() for "apic-id" property (diff) | |
| download | qemu-5d7fb0f254164e883a077186530fc2aa706954a4.tar.gz qemu-5d7fb0f254164e883a077186530fc2aa706954a4.tar.xz qemu-5d7fb0f254164e883a077186530fc2aa706954a4.zip | |
pc: use get_uint() for "hpet-intcap" property
TYPE_HPET's property HPET_INTCAP is defined with DEFINE_PROP_UINT32().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-33-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
| -rw-r--r-- | hw/i386/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index f6d5717f8b..02f9a8fe91 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1558,7 +1558,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, * and earlier, use IRQ2 for compat. Otherwise, use IRQ16~23, * IRQ8 and IRQ2. */ - uint8_t compat = object_property_get_int(OBJECT(hpet), + uint8_t compat = object_property_get_uint(OBJECT(hpet), HPET_INTCAP, NULL); if (!compat) { qdev_prop_set_uint32(hpet, HPET_INTCAP, hpet_irqs); |
