qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 10/11] hw/core/qdev: Simplify legacy_reset handling
Date: Tue, 3 Sep 2024 16:52:53 +0200
User-agent: Mozilla Thunderbird

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.maydell@linaro.org>
---
  hw/core/qdev.c | 55 ++++++++++++++++++++------------------------------
  1 file changed, 22 insertions(+), 33 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]