[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/7] target/s390x/helper: Clean ifdef'ry
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 6/7] target/s390x/helper: Clean ifdef'ry |
Date: |
Tue, 26 May 2020 19:24:26 +0200 |
All this code is guarded checking CONFIG_USER_ONLY definition.
Drop the duplicated checks.
Reviewed-by: David Hildenbrand <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
target/s390x/helper.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/target/s390x/helper.c b/target/s390x/helper.c
index 09f60406aa..9257d388ba 100644
--- a/target/s390x/helper.c
+++ b/target/s390x/helper.c
@@ -42,9 +42,6 @@ void s390x_cpu_timer(void *opaque)
{
cpu_inject_cpu_timer((S390CPU *) opaque);
}
-#endif
-
-#ifndef CONFIG_USER_ONLY
hwaddr s390_cpu_get_phys_page_debug(CPUState *cs, vaddr vaddr)
{
@@ -98,14 +95,12 @@ void s390_handle_wait(S390CPU *cpu)
CPUState *cs = CPU(cpu);
if (s390_cpu_halt(cpu) == 0) {
-#ifndef CONFIG_USER_ONLY
if (is_special_wait_psw(cpu->env.psw.addr)) {
qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
} else {
cpu->env.crash_reason = S390_CRASH_REASON_DISABLED_WAIT;
qemu_system_guest_panicked(cpu_get_crash_info(cs));
}
-#endif
}
}
--
2.21.3
- [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 1/7] sysemu/accel: Restrict machine methods to system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 2/7] sysemu/tcg: Only declare tcg_allowed when TCG is available, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 3/7] sysemu/hvf: Only declare hvf_allowed when HVF is available, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 4/7] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 5/7] target/s390x: Only compile decode_basedisp() on system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 6/7] target/s390x/helper: Clean ifdef'ry,
Philippe Mathieu-Daudé <=
- [PATCH v2 7/7] target/s390x: Restrict system-mode declarations, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Cornelia Huck, 2020/05/27