diff options
author | Philippe Mathieu-Daudé | 2021-05-17 12:51:37 +0200 |
---|---|---|
committer | Richard Henderson | 2021-05-27 00:33:59 +0200 |
commit | 08928c6d0db7d554ef041256e52330bb257bc70f (patch) | |
tree | fbe55a7f7c345e6f6cd419ed8a48e15fedfcffa1 /target/openrisc | |
parent | cpu: Move CPUClass::asidx_from_attrs to SysemuCPUOps (diff) | |
download | qemu-08928c6d0db7d554ef041256e52330bb257bc70f.tar.gz qemu-08928c6d0db7d554ef041256e52330bb257bc70f.tar.xz qemu-08928c6d0db7d554ef041256e52330bb257bc70f.zip |
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>
Diffstat (limited to 'target/openrisc')
-rw-r--r-- | target/openrisc/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/openrisc/cpu.c b/target/openrisc/cpu.c index 12d9173043..d8e80b81a2 100644 --- a/target/openrisc/cpu.c +++ b/target/openrisc/cpu.c @@ -178,6 +178,7 @@ static void openrisc_any_initfn(Object *obj) #include "hw/core/sysemu-cpu-ops.h" static const struct SysemuCPUOps openrisc_sysemu_ops = { + .get_phys_page_debug = openrisc_cpu_get_phys_page_debug, }; #endif @@ -210,7 +211,6 @@ static void openrisc_cpu_class_init(ObjectClass *oc, void *data) cc->gdb_read_register = openrisc_cpu_gdb_read_register; cc->gdb_write_register = openrisc_cpu_gdb_write_register; #ifndef CONFIG_USER_ONLY - cc->get_phys_page_debug = openrisc_cpu_get_phys_page_debug; dc->vmsd = &vmstate_openrisc_cpu; cc->sysemu_ops = &openrisc_sysemu_ops; #endif |