summaryrefslogtreecommitdiffstats
path: root/qemu-doc.texi
diff options
context:
space:
mode:
authorDamien Hedde2020-01-30 17:02:04 +0100
committerPeter Maydell2020-01-30 17:02:04 +0100
commit614f731adb9cc86bd45ce749f597e68dbde253b1 (patch)
tree4e0162e867fff4b649b6d9ae25eb1a691eb5e8dd /qemu-doc.texi
parenthw/core: add Resettable support to BusClass and DeviceClass (diff)
downloadqemu-614f731adb9cc86bd45ce749f597e68dbde253b1.tar.gz
qemu-614f731adb9cc86bd45ce749f597e68dbde253b1.tar.xz
qemu-614f731adb9cc86bd45ce749f597e68dbde253b1.zip
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>
Diffstat (limited to 'qemu-doc.texi')
0 files changed, 0 insertions, 0 deletions