[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 28/30] target/tricore: Restrict has_work() handler to sysemu
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 28/30] target/tricore: Restrict has_work() handler to sysemu |
Date: |
Sun, 12 Sep 2021 19:27:29 +0200 |
Restrict has_work() to sysemu.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/tricore/cpu.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/target/tricore/cpu.c b/target/tricore/cpu.c
index b95682b7f04..419fa624bd5 100644
--- a/target/tricore/cpu.c
+++ b/target/tricore/cpu.c
@@ -62,10 +62,12 @@ static void tricore_cpu_reset(DeviceState *dev)
cpu_state_reset(env);
}
+#if !defined(CONFIG_USER_ONLY)
static bool tricore_cpu_has_work(CPUState *cs)
{
return true;
}
+#endif /* !CONFIG_USER_ONLY */
static void tricore_cpu_realizefn(DeviceState *dev, Error **errp)
{
@@ -154,6 +156,9 @@ static const struct TCGCPUOps tricore_tcg_ops = {
.initialize = tricore_tcg_init,
.synchronize_from_tb = tricore_cpu_synchronize_from_tb,
.tlb_fill = tricore_cpu_tlb_fill,
+#if !defined(CONFIG_USER_ONLY)
+ .has_work = tricore_cpu_has_work,
+#endif
};
static void tricore_cpu_class_init(ObjectClass *c, void *data)
@@ -167,7 +172,6 @@ static void tricore_cpu_class_init(ObjectClass *c, void
*data)
device_class_set_parent_reset(dc, tricore_cpu_reset, &mcc->parent_reset);
cc->class_by_name = tricore_cpu_class_by_name;
- cc->has_work = tricore_cpu_has_work;
cc->gdb_read_register = tricore_cpu_gdb_read_register;
cc->gdb_write_register = tricore_cpu_gdb_write_register;
--
2.31.1
- Re: [PATCH v4 20/30] target/ppc: Introduce PowerPCCPUClass::has_work(), (continued)
- [PATCH v4 21/30] target/ppc: Restrict has_work() handlers to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 22/30] target/riscv: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 23/30] target/rx: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 24/30] target/s390x: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 25/30] target/sh4: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 26/30] target/sparc: Remove pointless use of CONFIG_TCG definition, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 27/30] target/sparc: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 28/30] target/tricore: Restrict has_work() handler to sysemu,
Philippe Mathieu-Daudé <=
- [PATCH v4 29/30] target/xtensa: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/12
- [PATCH v4 30/30] accel: Add missing AccelOpsClass::has_work() and drop SysemuCPUOps one, Philippe Mathieu-Daudé, 2021/09/12
- Re: [PATCH v4 00/30] accel: Move has_work() from SysemuCPUOps to AccelOpsClass, Richard Henderson, 2021/09/15