mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8377e3fb85
In simd_desc() we create a SIMD descriptor from various pieces
including an arbitrary data value from the caller. We try to
sanitize these to make sure everything will fit: the 'data' value
needs to fit in the SIMD_DATA_BITS (== 22) sized field. However we
do that sanitizing with:
tcg_debug_assert(data == sextract32(data, 0, SIMD_DATA_BITS));
This works for the case where the data is supposed to be considered
as a signed integer (which can then be returned via simd_data()).
However, some callers want to treat the data value as unsigned.
Specifically, for the Arm SVE operations, make_svemte_desc()
assembles a data value as a collection of fields, and it needs to use
all 22 bits. Currently if MTE is enabled then its MTEDESC SIZEM1
field may have the most significant bit set, and then it will trip
this assertion.
Loosen the assertion so that we only check that the data value will
fit into the field in some way, either as a signed or as an unsigned
value. This means we will fail to detect some kinds of bug in the
callers, but we won't spuriously assert for intentional use of the
data field as unsigned.
Cc: qemu-stable@nongnu.org
Fixes:
|
3 weeks ago | |
---|---|---|
.. | ||
aarch64 | 7 months ago | |
arm | 2 months ago | |
i386 | 2 months ago | |
loongarch64 | 2 months ago | |
mips | 10 months ago | |
ppc | 1 month ago | |
riscv | 1 month ago | |
s390x | 2 months ago | |
sparc64 | 2 months ago | |
tci | 10 months ago | |
debuginfo.c | 10 months ago | |
meson.build | 5 months ago | |
optimize.c | 2 months ago | |
perf.c | 10 months ago | |
region.c | 11 months ago | |
tcg-common.c | 2 years ago | |
tcg-internal.h | 2 months ago | |
tcg-ldst.c.inc | 2 years ago | |
tcg-op-gvec.c | 3 weeks ago | |
tcg-op-ldst.c | 2 months ago | |
tcg-op-vec.c | 2 months ago | |
tcg-op.c | 2 months ago | |
tcg-pool.c.inc | 4 years ago | |
tcg.c | 1 month ago | |
tci.c | 7 months ago |