tcg: Fix for Bug 1863508
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | tcg: Remove CONFIG_VECTOR16accel/ configure | +1 | 0 replies | |
| 2/4 | tcg: Tidy tcg-runtime-gvec.c typesaccel/ | +130 | 1 reply | |
| 3/4 | tcg: Tidy tcg-runtime-gvec.c DUP*accel/ | +15 | 1 reply | |
| 4/4 | tcg: Remove tcg-runtime-gvec.c DO_CMP0accel/ | +1 | 0 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé |
|---|---|
| 1/4 | |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] tcg: Fix for Bug 1863508
The comment in tcg-runtime-gvec.c about CONFIG_VECTOR16 says that tcg-op-gvec.c has eliminated size 8 vectors, and only passes on multiples of 16. This may have been true of the first few operations, but is not true of all operations.
In particular, multiply, shift by scalar, and compare of 8- and 16-bit elements are not expanded inline if host vector operations are not supported.
For an x86_64 host that does not support AVX, this means that we will fall back to the helper, which will attempt to use SSE instructions, which will SEGV on an invalid 8-byte aligned memory operation.
The first patch removes the CONFIG_VECTOR16 code and configuration; the subsequent patches tidy up tcg-runtime-gvec.c.
r~
Richard Henderson (4):
tcg: Remove CONFIG_VECTOR16
tcg: Tidy tcg-runtime-gvec.c types
tcg: Tidy tcg-runtime-gvec.c DUP*
tcg: Remove tcg-runtime-gvec.c DO_CMP0
configure | 56 ------- accel/tcg/tcg-runtime-gvec.c | 298 ++++++++++++++--------------------- 2 files changed, 116 insertions(+), 238 deletions(-)
Signature · 1 line
2.20.1