All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Claudio Fontana <cfontana@suse.de>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [RFC v2 04/24] target/arm: move psci.c into tcg/sysemu/
Date: Mon, 1 Mar 2021 10:16:22 -0800	[thread overview]
Message-ID: <3f51339c-27e6-ccdf-f470-5a987254df0e@linaro.org> (raw)
In-Reply-To: <20210301164936.19446-5-cfontana@suse.de>

On 3/1/21 8:49 AM, Claudio Fontana wrote:
> diff --git a/target/arm/internals.h b/target/arm/internals.h
> index 05cebc8597..e18d475572 100644
> --- a/target/arm/internals.h
> +++ b/target/arm/internals.h
> @@ -292,21 +292,15 @@ vaddr arm_adjust_watchpoint_address(CPUState *cs, vaddr addr, int len);
>   /* Callback function for when a watchpoint or breakpoint triggers. */
>   void arm_debug_excp_handler(CPUState *cs);
>   
> -#if defined(CONFIG_USER_ONLY) || !defined(CONFIG_TCG)
> -static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
> -{
> -    return false;
> -}
> -static inline void arm_handle_psci_call(ARMCPU *cpu)
> -{
> -    g_assert_not_reached();
> -}
> -#else

I don't see that removing this ifdef...

> @@ -10040,11 +10040,13 @@ void arm_cpu_do_interrupt(CPUState *cs)
>                         env->exception.syndrome);
>       }
>   
> +#ifndef CONFIG_USER_ONLY
>       if (arm_is_psci_call(cpu, cs->exception_index)) {
>           arm_handle_psci_call(cpu);
>           qemu_log_mask(CPU_LOG_INT, "...handled as PSCI call\n");
>           return;
>       }
> +#endif /* CONFIG_USER_ONLY */

... is an improvement on adding this one.  Just leave the static inline stub 
alone.  At some point you move the do_interrupt pieces, and the stubs can be 
removed completely, perhaps?


r~


       reply	other threads:[~2021-03-01 18:17 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210301164936.19446-1-cfontana@suse.de>
     [not found] ` <20210301164936.19446-5-cfontana@suse.de>
2021-03-01 18:16   ` Richard Henderson [this message]
2021-03-02 10:38     ` [RFC v2 04/24] target/arm: move psci.c into tcg/sysemu/ Claudio Fontana
2021-03-02 11:54   ` Peter Maydell
2021-03-02 18:36     ` Claudio Fontana
     [not found] ` <20210301164936.19446-8-cfontana@suse.de>
2021-03-01 18:49   ` [RFC v2 07/24] target/arm: move physical address translation to new modules Richard Henderson
2021-03-02 10:58     ` Claudio Fontana
     [not found] ` <20210301164936.19446-9-cfontana@suse.de>
2021-03-01 22:22   ` [RFC v2 08/24] target/arm: split cpregs from tcg/helper.c Richard Henderson
     [not found] ` <20210301164936.19446-11-cfontana@suse.de>
2021-03-02  3:36   ` [RFC v2 10/24] target/arm: only perform TCG cpu and machine inits if tcg enabled Richard Henderson
2021-03-02  7:58     ` Claudio Fontana
     [not found] ` <20210301164936.19446-12-cfontana@suse.de>
2021-03-02  3:41   ` [RFC v2 11/24] target/arm: kvm: add stubs for some helpers Richard Henderson
     [not found] ` <20210301164936.19446-13-cfontana@suse.de>
2021-03-02  4:02   ` [RFC v2 12/24] target/arm: move cpsr_read, cpsr_write to cpu_common Richard Henderson
2021-03-02  8:11     ` Claudio Fontana
     [not found] ` <20210301164936.19446-14-cfontana@suse.de>
2021-03-02  4:07   ` [RFC v2 13/24] target/arm: add temporary stub for arm_rebuild_hflags Richard Henderson
     [not found] ` <20210301164936.19446-15-cfontana@suse.de>
2021-03-02  4:24   ` [RFC v2 14/24] target/arm: split vfp state setting from tcg helpers Richard Henderson
2021-03-02  8:18     ` Claudio Fontana
     [not found] ` <20210301164936.19446-16-cfontana@suse.de>
2021-03-02  4:35   ` [RFC v2 15/24] target/arm: move arm_mmu_idx* to get-phys-addr Richard Henderson
2021-03-02 12:16     ` Claudio Fontana
     [not found] ` <20210301164936.19446-17-cfontana@suse.de>
2021-03-02  4:41   ` [RFC v2 16/24] target/arm: move sve_zcr_len_for_el to common_cpu Richard Henderson
2021-03-03  8:17     ` Claudio Fontana
     [not found] ` <20210301164936.19446-19-cfontana@suse.de>
2021-03-02  5:43   ` [RFC v2 18/24] target/arm: move arm_cpu_list " Richard Henderson
     [not found] ` <20210301164936.19446-6-cfontana@suse.de>
2021-03-02  5:50   ` [RFC v2 05/24] target/arm: wrap arm_cpu_exec_interrupt in CONFIG_TCG Richard Henderson
2021-03-02  8:00     ` Claudio Fontana
     [not found] ` <20210301164936.19446-7-cfontana@suse.de>
2021-03-02  6:17   ` [RFC v2 06/24] target/arm: split off cpu-sysemu.c Richard Henderson
2021-03-02  8:06     ` Claudio Fontana
     [not found] ` <20210301164936.19446-20-cfontana@suse.de>
2021-03-02  6:23   ` [RFC v2 19/24] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code Richard Henderson
2021-03-02 11:58     ` Claudio Fontana
2021-03-02 12:11       ` Peter Maydell
     [not found] ` <20210301164936.19446-25-cfontana@suse.de>
2021-03-02  7:40   ` [RFC v2 24/24] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled() Claudio Fontana
     [not found] ` <20210301164936.19446-22-cfontana@suse.de>
2021-03-02 16:56   ` [RFC v2 21/24] target/arm: cpu64: wrap TCG-only parts of aarch64_cpu_dump_state Richard Henderson
2021-03-02 18:01     ` Claudio Fontana
2021-03-02 18:49       ` Richard Henderson
     [not found] ` <20210301164936.19446-23-cfontana@suse.de>
2021-03-02 16:58   ` [RFC v2 22/24] target/arm: cpu64: wrap arm cpregs with CONFIG_TCG Richard Henderson
2021-03-02 18:06     ` Claudio Fontana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f51339c-27e6-ccdf-f470-5a987254df0e@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=cfontana@suse.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.