Paul Brook wrote:
>> +static SysBusDeviceInfo hpet_device_info = {
>> +.qdev.name= "hpet",
>> +.qdev.size= sizeof(HPETState),
>> +.qdev.no_user = 1,
>
> Why shouldn't the user create HPET devices? I thought you'd removed all the
> global state.
Long-term, there is no reason t
> +static SysBusDeviceInfo hpet_device_info = {
> +.qdev.name= "hpet",
> +.qdev.size= sizeof(HPETState),
> +.qdev.no_user = 1,
Why shouldn't the user create HPET devices? I thought you'd removed all the
global state.
Paul
From: Jan Kiszka
Register the HPET as a sysbus device and create it that way. As it can
route its IRQs to any ISA IRQ, we need to connect it to all 24 of them.
Once converted to qdev, we can move reset handler and vmstate
registration into its hands as well.
Signed-off-by: Jan Kiszka
---
hw/hp