[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/36] target/arm: Add stubs for AArch32 Neon decodetree
From: |
Richard Henderson |
Subject: |
Re: [PATCH 03/36] target/arm: Add stubs for AArch32 Neon decodetree |
Date: |
Thu, 30 Apr 2020 11:30:03 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/30/20 11:09 AM, Peter Maydell wrote:
> Add the infrastructure for building and invoking a decodetree decoder
> for the AArch32 Neon encodings. At the moment the new decoder covers
> nothing, so we always fall back to the existing hand-written decode.
>
> We follow the same pattern we did for the VFP decodetree conversion
> (commit 78e138bc1f672c145ef6ace74617d and following): code that deals
> with Neon will be moving gradually out to translate-neon.vfp.inc,
> which we #include into translate.c.
>
> In order to share the decode files between A32 and T32, we
> split Neon into 3 parts:
> * data-processing
> * load-store
> * 'shared' encodings
>
> The first two groups of instructions have similar but not identical
> A32 and T32 encodings, so we need to manually transform the T32
> encoding into the A32 one before calling the decoder; the third group
> covers the Neon instructions which are identical in A32 and T32.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> target/arm/Makefile.objs | 18 +++++++++++++++++
> target/arm/translate-neon.inc.c | 32 +++++++++++++++++++++++++++++
> target/arm/translate.c | 36 +++++++++++++++++++++++++++++++--
> target/arm/neon-dp.decode | 29 ++++++++++++++++++++++++++
> target/arm/neon-ls.decode | 29 ++++++++++++++++++++++++++
> target/arm/neon-shared.decode | 27 +++++++++++++++++++++++++
> 6 files changed, 169 insertions(+), 2 deletions(-)
> create mode 100644 target/arm/translate-neon.inc.c
> create mode 100644 target/arm/neon-dp.decode
> create mode 100644 target/arm/neon-ls.decode
> create mode 100644 target/arm/neon-shared.decode
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH 00/36] target/arm: Convert Neon to decodetree (part 1), Peter Maydell, 2020/04/30
- [PATCH 01/36] target/arm/translate-vfp.inc.c: Remove duplicate simd_r32 check, Peter Maydell, 2020/04/30
- [PATCH 04/36] target/arm: Convert VCMLA (vector) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 02/36] target/arm: Don't allow Thumb Neon insns without FEATURE_NEON, Peter Maydell, 2020/04/30
- [PATCH 05/36] target/arm: Convert VCADD (vector) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 03/36] target/arm: Add stubs for AArch32 Neon decodetree, Peter Maydell, 2020/04/30
- Re: [PATCH 03/36] target/arm: Add stubs for AArch32 Neon decodetree,
Richard Henderson <=
- [PATCH 06/36] target/arm: Convert V[US]DOT (vector) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 09/36] target/arm: Convert V[US]DOT (scalar) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 08/36] target/arm: Convert VCMLA (scalar) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 07/36] target/arm: Convert VFM[AS]L (vector) to decodetree, Peter Maydell, 2020/04/30
- [PATCH 10/36] target/arm: Convert VFM[AS]L (scalar) to decodetree, Peter Maydell, 2020/04/30