]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Stop using variable length array in dc_zva
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 May 2019 11:55:04 +0000 (12:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 May 2019 11:55:04 +0000 (12:55 +0100)
commit63159601fb3e396b28da14cbb71e50ed3f5a0331
tree93000e89219661e4b073b956b6dbc23006e00c77
parentf1e2598c46d480c9e21213a244bc514200762828
target/arm: Stop using variable length array in dc_zva

Currently the dc_zva helper function uses a variable length
array. In fact we know (as the comment above remarks) that
the length of this array is bounded because the architecture
limits the block size and QEMU limits the target page size.
Use a fixed array size and assert that we don't run off it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190503120448.13385-1-peter.maydell@linaro.org
target/arm/helper.c