mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
a86cf967a1
commit
f821d894de
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue