Damien Hedde 614f731adb hw/core/resettable: add support for changing parent
Add a function resettable_change_parent() to do the required
plumbing when changing the parent a of Resettable object.

We need to make sure that the reset state of the object remains
coherent with the reset state of the new parent.

We make the 2 following hypothesis:
+ when an object is put in a parent under reset, the object goes in
reset.
+ when an object is removed from a parent under reset, the object
leaves reset.

The added function avoids any glitch if both old and new parent are
already in reset.

Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200123132823.1117486-6-damien.hedde@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-01-30 16:02:04 +00:00
..
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-12-17 19:33:51 +01:00
2019-06-12 13:20:21 +02:00
2019-09-07 08:31:51 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2020-01-17 14:27:16 +00:00
2019-10-28 19:06:47 +01:00
2019-06-12 13:20:21 +02:00
2019-10-26 15:38:02 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-11-06 17:19:40 +01:00
2019-08-16 13:31:52 +02:00
2018-12-11 15:45:22 -02:00
2019-08-16 13:31:52 +02:00
2019-11-05 23:33:12 +01:00
2019-08-16 13:31:53 +02:00
2019-06-12 13:20:21 +02:00
2020-01-07 16:06:59 +04:00
2019-08-16 13:31:53 +02:00