[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 28/30] target/tricore: Restrict has_work() handler to sysemu a
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 28/30] target/tricore: Restrict has_work() handler to sysemu and TCG |
Date: |
Fri, 3 Sep 2021 20:14:35 +0200 |
Restrict has_work() to TCG sysemu.
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..728da5d4ee3 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_TCG) && !defined(CONFIG_USER_ONLY)
static bool tricore_cpu_has_work(CPUState *cs)
{
return true;
}
+#endif /* CONFIG_TCG && !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
- [PATCH v3 23/30] target/riscv: Restrict has_work() handler to sysemu and TCG, (continued)
- [PATCH v3 23/30] target/riscv: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/02
- [PATCH v3 24/30] target/rx: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/02
- [PATCH v3 25/30] target/s390x: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/03
- [PATCH v3 26/30] target/sh4: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/03
- [PATCH v3 27/30] target/sparc: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/03
- [PATCH v3 28/30] target/tricore: Restrict has_work() handler to sysemu and TCG,
Philippe Mathieu-Daudé <=
- [PATCH v3 29/30] target/xtensa: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/03
- [PATCH v3 30/30] accel: Add missing AccelOpsClass::has_work() and drop SysemuCPUOps one, Philippe Mathieu-Daudé, 2021/09/03