[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] TCG support for AVX
From: |
Peter Maydell |
Subject: |
Re: [PATCH 2/4] TCG support for AVX |
Date: |
Mon, 18 Apr 2022 20:33:15 +0100 |
On Mon, 18 Apr 2022 at 18:48, Paul Brook <paul@nowt.org> wrote:
>
> Add TCG translation of guest AVX/AVX2 instructions
> This comprises:
>
> * VEX encodings of most (all?) "legacy" SSE operations.
> These typically add an extra source operand, and clear the unused half
> of the destination register (SSE encodings leave this unchanged)
> Previously we were incorrectly translating VEX encoded instructions
> as if they were legacy SSE encodings.
> * 256-bit variants of many instructions. AVX adds floating point
> operations. AVX2 adds integer operations.
> * A few new instructions (VBROADCAST, VGATHER, VZERO)
>
> Signed-off-by: Paul Brook <paul@nowt.org>
> ---
> target/i386/cpu.c | 8 +-
> target/i386/helper.h | 2 +
> target/i386/ops_sse.h | 2606 ++++++++++++++++++++++++----------
> target/i386/ops_sse_header.h | 364 +++--
> target/i386/tcg/fpu_helper.c | 3 +
> target/i386/tcg/translate.c | 1902 +++++++++++++++++++------
> 6 files changed, 3597 insertions(+), 1288 deletions(-)
Massively too large for a single patch, I'm afraid. This needs
to be split, probably into at least twenty patches, which each
are a reviewable chunk of code that does one coherent thing.
(Also I think Paolo may have been looking at AVX implementation?)
thanks
-- PMM
- [PATCH 0/3] AVX guest implementation, Paul Brook, 2022/04/18
- [PATCH 1/4] Add AVX_EN hflag, Paul Brook, 2022/04/18
- [PATCH 3/4] Enable all x86-64 cpu features in user mode, Paul Brook, 2022/04/18
- [PATCH 2/4] TCG support for AVX, Paul Brook, 2022/04/18
- Re: [PATCH 2/4] TCG support for AVX,
Peter Maydell <=
- Re: [PATCH 2/4] TCG support for AVX, Paul Brook, 2022/04/18
- Re: [PATCH 2/4] TCG support for AVX, Peter Maydell, 2022/04/18
- Re: [PATCH 2/4] TCG support for AVX, Richard Henderson, 2022/04/18
- Re: [PATCH 2/4] TCG support for AVX, Paolo Bonzini, 2022/04/20
- Re: [PATCH 2/4] TCG support for AVX, Paul Brook, 2022/04/20
[PATCH 4/4] AVX tests, Paul Brook, 2022/04/18
[PATCH v2 01/42] i386: pcmpestr 64-bit sign extension bug, Paul Brook, 2022/04/24