[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 15/57] accel/tcg: Use have_atomic16 in ldst_atomicity.c.in
From: |
Peter Maydell |
Subject: |
Re: [PATCH v4 15/57] accel/tcg: Use have_atomic16 in ldst_atomicity.c.inc |
Date: |
Fri, 5 May 2023 11:37:23 +0100 |
On Wed, 3 May 2023 at 08:08, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Hosts using Intel and AMD AVX cpus are quite common.
> Add fast paths through ldst_atomicity using this.
>
> Only enable with CONFIG_INT128; some older clang versions do not
> support __int128_t, and the inline assembly won't work on structures.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> accel/tcg/ldst_atomicity.c.inc | 76 +++++++++++++++++++++++++++-------
> 1 file changed, 60 insertions(+), 16 deletions(-)
Inline x86 asm in a bit of generic code seems rather awkward.
Ideally the compiler should be doing this for us; failing
that can we at least abstract out the operations to a
set of functions that we can provide (or not provide)
implementations of?
-- PMM
- Re: [PATCH v4 08/57] target/loongarch: Do not include tcg-ldst.h, (continued)
- [PATCH v4 07/57] accel/tcg: Honor atomicity of stores, Richard Henderson, 2023/05/03
- [PATCH v4 10/57] accel/tcg: Implement helper_{ld, st}*_mmu for user-only, Richard Henderson, 2023/05/03
- [PATCH v4 14/57] tcg/i386: Add have_atomic16, Richard Henderson, 2023/05/03
- [PATCH v4 15/57] accel/tcg: Use have_atomic16 in ldst_atomicity.c.inc, Richard Henderson, 2023/05/03
- Re: [PATCH v4 15/57] accel/tcg: Use have_atomic16 in ldst_atomicity.c.inc,
Peter Maydell <=
- [PATCH v4 16/57] accel/tcg: Add aarch64 specific support in ldst_atomicity, Richard Henderson, 2023/05/03
- [PATCH v4 17/57] tcg/aarch64: Detect have_lse, have_lse2 for linux, Richard Henderson, 2023/05/03
- [PATCH v4 18/57] tcg/aarch64: Detect have_lse, have_lse2 for darwin, Richard Henderson, 2023/05/03
- [PATCH v4 19/57] accel/tcg: Add have_lse2 support in ldst_atomicity, Richard Henderson, 2023/05/03
- [PATCH v4 20/57] tcg: Introduce TCG_OPF_TYPE_MASK, Richard Henderson, 2023/05/03
- [PATCH v4 23/57] tcg/ppc: Use full load/store helpers in user-only mode, Richard Henderson, 2023/05/03