[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/11] target/s390x/helper: Clean ifdef'ry
From: |
Cornelia Huck |
Subject: |
Re: [PATCH 07/11] target/s390x/helper: Clean ifdef'ry |
Date: |
Mon, 11 May 2020 12:44:35 +0200 |
On Sat, 9 May 2020 15:09:06 +0200
Philippe Mathieu-Daudé <address@hidden> wrote:
> All this code is guarded checking CONFIG_USER_ONLY definition.
> Drop the duplicated checks.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> Suspicious ifdef'ry in s390_handle_wait() from commit 83f7f32901c.
> ---
> target/s390x/helper.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/target/s390x/helper.c b/target/s390x/helper.c
> index 09f60406aa..26e3b366e8 100644
> --- a/target/s390x/helper.c
> +++ b/target/s390x/helper.c
> @@ -33,6 +33,7 @@
> #endif
>
> #ifndef CONFIG_USER_ONLY
> +
I'd probably not have added the whitespace here...
> void s390x_tod_timer(void *opaque)
> {
> cpu_inject_clock_comparator((S390CPU *) opaque);
(...)
> @@ -328,6 +324,7 @@ int s390_store_adtl_status(S390CPU *cpu, hwaddr addr,
> hwaddr len)
> cpu_physical_memory_unmap(sa, len, 1, len);
> return 0;
> }
> +
...and here, but I don't feel strongly about it.
> #endif /* CONFIG_USER_ONLY */
>
> void s390_cpu_dump_state(CPUState *cs, FILE *f, int flags)
Reviewed-by: Cornelia Huck <address@hidden>
- Re: [PATCH 03/11] sysemu/tcg: Only declare tcg_allowed when TCG is available, (continued)
- [PATCH 04/11] sysemu/hvf: Only declare hvf_allowed when HVF is available, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 05/11] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 06/11] target/s390x: Only compile decode_basedisp() on system-mode, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 07/11] target/s390x/helper: Clean ifdef'ry, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 08/11] target/s390x: Restrict system-mode declarations, Philippe Mathieu-Daudé, 2020/05/09
[PATCH 09/11] target/cpu: Restrict handlers using hwaddr type to system-mode, Philippe Mathieu-Daudé, 2020/05/09