mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
7b0706503e
commit
c0b5be5247
3 changed files with 12 additions and 14 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue