[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/28] cpus: Restrict cpu_get_memory_mapping() to system emulatio
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 04/28] cpus: Restrict cpu_get_memory_mapping() to system emulation |
Date: |
Tue, 21 Jan 2025 15:23:17 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/core/cpu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index b7367f6d808..2402706c7d9 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -614,6 +614,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.
@@ -625,8 +627,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
--
2.47.1
- [PATCH 00/28] cpus: Restrict CPU has_work() handlers to system emulation, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 01/28] target/hexagon: Ensure not being build on system emulation, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 02/28] target/rx: Ensure not being build on user emulation, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 03/28] target/tricore: Ensure not being build on user emulation, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 04/28] cpus: Restrict cpu_get_memory_mapping() to system emulation,
Philippe Mathieu-Daudé <=
- [PATCH 05/28] cpus: Restrict cpu_has_work() to system emulation, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 06/28] cpus: Un-inline cpu_has_work(), Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 08/28] target/alpha: Move has_work() from CPUClass to SysemuCPUOps, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 07/28] cpus: Introduce SysemuCPUOps::has_work() handler, Philippe Mathieu-Daudé, 2025/01/21
- [PATCH 09/28] target/arm: Move has_work() from CPUClass to SysemuCPUOps, Philippe Mathieu-Daudé, 2025/01/21