cpu: Introduce cpu_class_set_parent_reset()
commitef0a6249a80f05906dffa3a954e0563421972244
authorGreg Kurz <groug@kaod.org>
Mon, 16 Dec 2019 15:01:12 +0000 (16 16:01 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 19:59:06 +0000 (24 20:59 +0100)
tree5fb12ac2fd848f806c40dfc424125c487803f957
parent3e08b2b9cb64bff2b73fa9128c0e49bfcde0dd40
cpu: Introduce cpu_class_set_parent_reset()

Similarly to what we already do with qdev, use a helper to overload the
reset QOM methods of the parent in children classes, for clarity.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <157650847239.354886.2782881118916307978.stgit@bahia.lan>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/cpu.c
include/hw/core/cpu.h