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
phase method which invokes the DeviceClass::legacy_reset method.
This will allow us to remove all the get_transitional_function
handling from resettable.c.
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
hw/core/qdev.c | 55 ++++++++++++++++++++------------------------------
1 file changed, 22 insertions(+), 33 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>