mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23: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
|
@ -1948,6 +1948,7 @@ static gchar *arm_gdb_arch_name(CPUState *cs)
|
|||
#include "hw/core/sysemu-cpu-ops.h"
|
||||
|
||||
static const struct SysemuCPUOps arm_sysemu_ops = {
|
||||
.get_phys_page_attrs_debug = arm_cpu_get_phys_page_attrs_debug,
|
||||
.asidx_from_attrs = arm_asidx_from_attrs,
|
||||
.write_elf32_note = arm_cpu_write_elf32_note,
|
||||
.write_elf64_note = arm_cpu_write_elf64_note,
|
||||
|
@ -1993,7 +1994,6 @@ static void arm_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->gdb_read_register = arm_cpu_gdb_read_register;
|
||||
cc->gdb_write_register = arm_cpu_gdb_write_register;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->get_phys_page_attrs_debug = arm_cpu_get_phys_page_attrs_debug;
|
||||
cc->sysemu_ops = &arm_sysemu_ops;
|
||||
#endif
|
||||
cc->gdb_num_core_regs = 26;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue