Skip to content

tcg: Fix for Bug 1863508

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tcg: Remove CONFIG_VECTOR16accel/tcg/tcg-runtime-gvec.c configure+1 -900 replies
2/4tcg: Tidy tcg-runtime-gvec.c typesaccel/tcg/tcg-runtime-gvec.c+130 -1401 reply
3/4tcg: Tidy tcg-runtime-gvec.c DUP*accel/tcg/tcg-runtime-gvec.c+15 -351 reply
4/4tcg: Remove tcg-runtime-gvec.c DO_CMP0accel/tcg/tcg-runtime-gvec.c+1 -40 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/4
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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