diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-21 12:52:57 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
commit | f821d894de2025611f2b19598fc4191ac4167ed9 (patch) | |
tree | f7063365a2f7e7c37d8253f65eb76442e8ca7257 | |
parent | a86cf967a1afe8ccbf58d34983816bc2985d65d2 (diff) | |
download | qemu-f821d894de2025611f2b19598fc4191ac4167ed9.zip qemu-f821d894de2025611f2b19598fc4191ac4167ed9.tar.gz qemu-f821d894de2025611f2b19598fc4191ac4167ed9.tar.bz2 |
cpus: Restrict cpu_get_memory_mapping() to system emulation
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250121142341.17001-5-philmd@linaro.org>
-rw-r--r-- | include/hw/core/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 7b6b22c..9dd6ac7 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -616,6 +616,8 @@ extern bool mttcg_enabled; */ bool cpu_paging_enabled(const CPUState *cpu); +#if !defined(CONFIG_USER_ONLY) + /** * cpu_get_memory_mapping: * @cpu: The CPU whose memory mappings are to be obtained. @@ -627,8 +629,6 @@ bool cpu_paging_enabled(const CPUState *cpu); bool cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, Error **errp); -#if !defined(CONFIG_USER_ONLY) - /** * cpu_write_elf64_note: * @f: pointer to a function that writes memory to a file |