diff options
author | Greg Kurz | 2019-12-16 16:01:12 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-01-24 20:59:06 +0100 |
commit | ef0a6249a80f05906dffa3a954e0563421972244 (patch) | |
tree | 5fb12ac2fd848f806c40dfc424125c487803f957 /include/hw/core | |
parent | Merge remote-tracking branch 'remotes/philmd-gitlab/tags/edk2-next-20200121' ... (diff) | |
download | qemu-ef0a6249a80f05906dffa3a954e0563421972244.tar.gz qemu-ef0a6249a80f05906dffa3a954e0563421972244.tar.xz qemu-ef0a6249a80f05906dffa3a954e0563421972244.zip |
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>
Diffstat (limited to 'include/hw/core')
-rw-r--r-- | include/hw/core/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 77c6f05299..73e9a869a4 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -1135,6 +1135,10 @@ void cpu_exec_unrealizefn(CPUState *cpu); */ bool target_words_bigendian(void); +void cpu_class_set_parent_reset(CPUClass *cc, + void (*child_reset)(CPUState *cpu), + void (**parent_reset)(CPUState *cpu)); + #ifdef NEED_CPU_H #ifdef CONFIG_SOFTMMU |