summary refs log tree commit diff stats
path: root/include/hw/core/sysemu-cpu-ops.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-17 12:51:39 +0200
committerRichard Henderson <richard.henderson@linaro.org>2021-05-26 15:33:59 -0700
commit6bc0d6a04733cb39d2d2bf3380a857709113242f (patch)
tree252ce64f401aad09a48d8f6222d70c9701129883 /include/hw/core/sysemu-cpu-ops.h
parent2b60b62e05893de9698aa4a2c27de244870f0a50 (diff)
downloadfocaccia-qemu-6bc0d6a04733cb39d2d2bf3380a857709113242f.tar.gz
focaccia-qemu-6bc0d6a04733cb39d2d2bf3380a857709113242f.zip
cpu: Move CPUClass::get_paging_enabled to SysemuCPUOps
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210517105140.1062037-23-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/core/sysemu-cpu-ops.h')
-rw-r--r--include/hw/core/sysemu-cpu-ops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-ops.h
index 213e5287ab..a9ba39e5f2 100644
--- a/include/hw/core/sysemu-cpu-ops.h
+++ b/include/hw/core/sysemu-cpu-ops.h
@@ -22,6 +22,10 @@ typedef struct SysemuCPUOps {
     void (*get_memory_mapping)(CPUState *cpu, MemoryMappingList *list,
                                Error **errp);
     /**
+     * @get_paging_enabled: Callback for inquiring whether paging is enabled.
+     */
+    bool (*get_paging_enabled)(const CPUState *cpu);
+    /**
      * @get_phys_page_debug: Callback for obtaining a physical address.
      */
     hwaddr (*get_phys_page_debug)(CPUState *cpu, vaddr addr);