From: Claudio Fontana <cfontana@suse.de>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [RFC v2 14/24] target/arm: split vfp state setting from tcg helpers
Date: Tue, 2 Mar 2021 09:18:52 +0100 [thread overview]
Message-ID: <03d6abf6-e076-17d9-d23a-5dd00bc4540e@suse.de> (raw)
In-Reply-To: <3658a432-7dc1-ce34-e341-710ea6013556@linaro.org>
On 3/2/21 5:24 AM, Richard Henderson wrote:
> On 3/1/21 8:49 AM, Claudio Fontana wrote:
>> vfp_get_fpsr and vfp_set_fpsr are needed also for KVM.
>>
>> Signed-off-by: Claudio Fontana<cfontana@suse.de>
>> ---
>> target/arm/cpu-vfp.h | 29 +++++
>> target/arm/cpu-vfp.c | 92 +++++++++++++++
>> target/arm/kvm/helper-stubs.c | 10 ++
>> target/arm/tcg/cpu-vfp.c | 146 +++++++++++++++++++++++
>> target/arm/tcg/vfp_helper.c | 210 +---------------------------------
>> target/arm/meson.build | 1 +
>> target/arm/tcg/meson.build | 1 +
>> 7 files changed, 281 insertions(+), 208 deletions(-)
>> create mode 100644 target/arm/cpu-vfp.h
>> create mode 100644 target/arm/cpu-vfp.c
>> create mode 100644 target/arm/tcg/cpu-vfp.c
>
> kvm/helper-stubs.c should be for all !tcg.
>
>
> r~
>
Can you explain more what you mean?
In this patch kvm/helper-stubs.c is updated to include two stubs:
uint32_t vfp_get_fpscr_from_host(CPUARMState *env)
{
return 0;
}
void vfp_set_fpscr_to_host(CPUARMState *env, uint32_t val)
{
}
The corresponding tcg code instead is in tcg/arm/cpu-vtp.c.
For the non-stub code that comprises
vfp_get_fpscr
vfp_set_fpscr
the code is moved to target/arm/cpu-vfp.c,
to be shared by tcg and kvm.
Thanks,
C
next prev parent reply other threads:[~2021-03-02 8:20 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 ` [RFC v2 04/24] target/arm: move psci.c into tcg/sysemu/ Richard Henderson
2021-03-02 10:38 ` 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 [this message]
[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=03d6abf6-e076-17d9-d23a-5dd00bc4540e@suse.de \
--to=cfontana@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).