[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/10] target/s390x/helper: Clean ifdef'ry
From: |
Cornelia Huck |
Subject: |
[PULL 09/10] target/s390x/helper: Clean ifdef'ry |
Date: |
Fri, 5 Jun 2020 17:37:55 +0200 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
All this code is guarded checking CONFIG_USER_ONLY definition.
Drop the duplicated checks.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200526172427.17460-7-f4bug@amsat.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
target/s390x/helper.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/target/s390x/helper.c b/target/s390x/helper.c
index 09f60406aa33..9257d388baed 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.25.4
- [PULL 00/10] s390x update, Cornelia Huck, 2020/06/05
- [PULL 01/10] s390x/kvm: help valgrind in several places, Cornelia Huck, 2020/06/05
- [PULL 02/10] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name, Cornelia Huck, 2020/06/05
- [PULL 03/10] docs/s390x: document the virtual css, Cornelia Huck, 2020/06/05
- [PULL 05/10] vfio-ccw: allow non-prefetch ORBs, Cornelia Huck, 2020/06/05
- [PULL 06/10] docs/s390x: document vfio-ccw, Cornelia Huck, 2020/06/05
- [PULL 04/10] docs/s390x: document 3270, Cornelia Huck, 2020/06/05
- [PULL 08/10] target/s390x: Only compile decode_basedisp() on system-mode, Cornelia Huck, 2020/06/05
- [PULL 07/10] MAINTAINERS: add Thomas as additional s390x maintainer, Cornelia Huck, 2020/06/05
- [PULL 09/10] target/s390x/helper: Clean ifdef'ry,
Cornelia Huck <=
- [PULL 10/10] target/s390x: Restrict system-mode declarations, Cornelia Huck, 2020/06/05
- Re: [PULL 00/10] s390x update, Peter Maydell, 2020/06/05