mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
cpu: Move CPUClass::write_elf* to SysemuCPUOps
The write_elf*() handlers are used to dump vmcore images. This feature is only meaningful for system emulation. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210517105140.1062037-19-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
83ec01b675
commit
715e3c1afb
8 changed files with 43 additions and 38 deletions
|
@ -9267,6 +9267,8 @@ static Property ppc_cpu_properties[] = {
|
|||
#include "hw/core/sysemu-cpu-ops.h"
|
||||
|
||||
static const struct SysemuCPUOps ppc_sysemu_ops = {
|
||||
.write_elf32_note = ppc32_cpu_write_elf32_note,
|
||||
.write_elf64_note = ppc64_cpu_write_elf64_note,
|
||||
.virtio_is_big_endian = ppc_cpu_is_big_endian,
|
||||
.legacy_vmsd = &vmstate_ppc_cpu,
|
||||
};
|
||||
|
@ -9316,10 +9318,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->get_phys_page_debug = ppc_cpu_get_phys_page_debug;
|
||||
cc->sysemu_ops = &ppc_sysemu_ops;
|
||||
#endif
|
||||
#if defined(CONFIG_SOFTMMU)
|
||||
cc->write_elf64_note = ppc64_cpu_write_elf64_note;
|
||||
cc->write_elf32_note = ppc32_cpu_write_elf32_note;
|
||||
#endif
|
||||
|
||||
cc->gdb_num_core_regs = 71;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue