[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] target/loongarch: Restrict sysemu/reset.h to system emulatio
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 3/5] target/loongarch: Restrict sysemu/reset.h to system emulation |
Date: |
Tue, 20 Dec 2022 15:56:23 +0100 |
In user emulation, threads -- implemented as CPU -- are
created/destroyed, but never reset. There is no point in
allowing the user emulation access the sysemu/reset API.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/loongarch/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c
index 0fb853d915..441dfbab74 100644
--- a/target/loongarch/cpu.c
+++ b/target/loongarch/cpu.c
@@ -16,7 +16,9 @@
#include "internals.h"
#include "fpu/softfloat-helpers.h"
#include "cpu-csr.h"
+#ifndef CONFIG_USER_ONLY
#include "sysemu/reset.h"
+#endif
const char * const regnames[32] = {
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
--
2.38.1
- [PATCH 0/5] cpus: Remove system reset() API from user emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 1/5] target/i386: Restrict qapi/qapi-events-run-state.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 2/5] target/i386: Restrict sysemu/reset.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 3/5] target/loongarch: Restrict sysemu/reset.h to system emulation,
Philippe Mathieu-Daudé <=
- [PATCH 4/5] target/s390x: Restrict sysemu/reset.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation, Philippe Mathieu-Daudé, 2022/12/20
- Re: [PATCH 0/5] cpus: Remove system reset() API from user emulation, Richard Henderson, 2022/12/20
- Re: [PATCH 0/5] cpus: Remove system reset() API from user emulation, Wilfred Mallawa, 2022/12/20