mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
cpu: Move CPUClass::get_phys_page_debug to SysemuCPUOps
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210517105140.1062037-21-f4bug@amsat.org> [rth: Drop declaration movement from target/*/cpu.h] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
faf39e8283
commit
08928c6d0d
22 changed files with 35 additions and 30 deletions
|
@ -600,6 +600,7 @@ static const char *riscv_gdb_get_dynamic_xml(CPUState *cs, const char *xmlname)
|
|||
#include "hw/core/sysemu-cpu-ops.h"
|
||||
|
||||
static const struct SysemuCPUOps riscv_sysemu_ops = {
|
||||
.get_phys_page_debug = riscv_cpu_get_phys_page_debug,
|
||||
.write_elf64_note = riscv_cpu_write_elf64_note,
|
||||
.write_elf32_note = riscv_cpu_write_elf32_note,
|
||||
.legacy_vmsd = &vmstate_riscv_cpu,
|
||||
|
@ -647,7 +648,6 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
|
|||
cc->gdb_stop_before_watchpoint = true;
|
||||
cc->disas_set_info = riscv_cpu_disas_set_info;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->get_phys_page_debug = riscv_cpu_get_phys_page_debug;
|
||||
cc->sysemu_ops = &riscv_sysemu_ops;
|
||||
#endif
|
||||
cc->gdb_arch_name = riscv_gdb_arch_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue