qemu-e2k/accel
Richard Henderson b826044fc0 accel/tcg: Assert mmu_idx in range before use in cputlb
Coverity reports out-of-bound accesses within cputlb.c.
This should be a false positive due to how the index is
decoded from MemOpIdx.  To be fair, nothing is checking
the correct bounds during encoding either.

Assert index in range before use, both to catch user errors
and to pacify static analysis.

Fixes: Coverity CID 1487120, 1487127, 1487170, 1487196, 1487215, 1487238
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220401170813.318609-1-richard.henderson@linaro.org>
2022-04-26 19:57:56 -07:00
..
hvf Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
kvm Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
qtest misc: Remove unnecessary "sysemu/cpu-timers.h" include 2022-03-06 13:15:42 +01:00
stubs compiler.h: replace QEMU_NORETURN with G_NORETURN 2022-04-21 17:03:51 +04:00
tcg accel/tcg: Assert mmu_idx in range before use in cputlb 2022-04-26 19:57:56 -07:00
xen
accel-common.c
accel-softmmu.c
accel-softmmu.h
accel-user.c
dummy-cpus.c
Kconfig
meson.build accel/meson: Only build hw virtualization with system emulation 2022-03-06 13:15:42 +01:00