aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2018-07-10 22:51:53 +0200
committerJuan Quintela <quintela@redhat.com>2018-08-21 19:52:16 +0200
commitc0b5be52474c7cbe39424119cd2ea376a6ae42a7 (patch)
tree61b1aa2029d57ae46014207d80228f79dee02108 /hw
parent7b0706503e5c9eff254537ea0a29041c4cf42771 (diff)
downloadqemu-c0b5be52474c7cbe39424119cd2ea376a6ae42a7.zip
qemu-c0b5be52474c7cbe39424119cd2ea376a6ae42a7.tar.gz
qemu-c0b5be52474c7cbe39424119cd2ea376a6ae42a7.tar.bz2
check: Only test pvpanic when it is compiled in
It was not possible to compile out pvpanic. Use the same trick than applesmc. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/misc/pvpanic.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c
index b26250d..9d8961b 100644
--- a/hw/misc/pvpanic.c
+++ b/hw/misc/pvpanic.c
@@ -99,17 +99,6 @@ static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
isa_register_ioport(d, &s->io, s->ioport);
}
-#define PVPANIC_IOPORT_PROP "ioport"
-
-uint16_t pvpanic_port(void)
-{
- Object *o = object_resolve_path_type("", TYPE_PVPANIC, NULL);
- if (!o) {
- return 0;
- }
- return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL);
-}
-
static Property pvpanic_isa_properties[] = {
DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicState, ioport, 0x505),
DEFINE_PROP_END_OF_LIST(),