[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 25/31] target/s390x: Restrict has_work() handler to sysemu and
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v5 25/31] target/s390x: Restrict has_work() handler to sysemu and TCG |
Date: |
Mon, 20 Sep 2021 23:44:41 +0200 |
Restrict has_work() to TCG sysemu.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/s390x/cpu.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index 7b7b05f1d3a..df8ade9021d 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -88,6 +88,7 @@ static void s390_cpu_set_pc(CPUState *cs, vaddr value)
cpu->env.psw.addr = value;
}
+#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY)
static bool s390_cpu_has_work(CPUState *cs)
{
S390CPU *cpu = S390_CPU(cs);
@@ -104,6 +105,7 @@ static bool s390_cpu_has_work(CPUState *cs)
return s390_cpu_has_int(cpu);
}
+#endif /* CONFIG_TCG && !CONFIG_USER_ONLY */
/* S390CPUClass::reset() */
static void s390_cpu_reset(CPUState *s, cpu_reset_type type)
@@ -269,6 +271,7 @@ static const struct TCGCPUOps s390_tcg_ops = {
.tlb_fill = s390_cpu_tlb_fill,
#if !defined(CONFIG_USER_ONLY)
+ .has_work = s390_cpu_has_work,
.cpu_exec_interrupt = s390_cpu_exec_interrupt,
.do_interrupt = s390_cpu_do_interrupt,
.debug_excp_handler = s390x_cpu_debug_excp_handler,
@@ -292,7 +295,6 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
scc->reset = s390_cpu_reset;
cc->class_by_name = s390_cpu_class_by_name,
- cc->has_work = s390_cpu_has_work;
cc->dump_state = s390_cpu_dump_state;
cc->set_pc = s390_cpu_set_pc;
cc->gdb_read_register = s390_cpu_gdb_read_register;
--
2.31.1
- [PATCH v5 15/31] target/i386: Restrict has_work() handler to sysemu and TCG, (continued)
- [PATCH v5 15/31] target/i386: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 16/31] target/m68k: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 17/31] target/microblaze: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 18/31] target/mips: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 19/31] target/nios2: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 20/31] target/openrisc: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 21/31] target/ppc: Introduce PowerPCCPUClass::has_work(), Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 23/31] target/riscv: Restrict has_work() handler to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 22/31] target/ppc: Restrict has_work() handlers to sysemu and TCG, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 24/31] target/rx: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 25/31] target/s390x: Restrict has_work() handler to sysemu and TCG,
Philippe Mathieu-Daudé <=
- [PATCH v5 26/31] target/sh4: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 27/31] target/sparc: Remove pointless use of CONFIG_TCG definition, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 28/31] target/sparc: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 30/31] target/xtensa: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 29/31] target/tricore: Restrict has_work() handler to sysemu, Philippe Mathieu-Daudé, 2021/09/20
- [PATCH v5 31/31] accel: Add missing AccelOpsClass::has_work() and drop SysemuCPUOps one, Philippe Mathieu-Daudé, 2021/09/20