Re: [PATCH v2 10/11] hw/core/qdev: Simplify legacy_reset handling

2024-09-03 Thread Philippe Mathieu-Daudé
On 30/8/24 16:58, Peter Maydell wrote: Now that all devices which still implement a the legacy reset method register it via device_class_legacy_reset(), we can simplify the handling of these devices. Instead of using the complex Resettable::get_transitional_function machinery, we register a hold

[PATCH v2 10/11] hw/core/qdev: Simplify legacy_reset handling

2024-08-30 Thread Peter Maydell
Now that all devices which still implement a the legacy reset method register it via device_class_legacy_reset(), we can simplify the handling of these devices. Instead of using the complex Resettable::get_transitional_function machinery, we register a hold phase method which invokes the DeviceCla