]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: Correct buffer allocation for SVE Z registers
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 16:25:00 +0000 (17:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 7 Sep 2022 13:25:47 +0000 (14:25 +0100)
commit908493192d02ff1b2eac97ef3d6a5c054d8c3b67
treebdcd89b25bd318e920eda70bc87e893a3f016e02
parent085e97a9b321c5460db44ce113871f701d8a5463
kselftest/arm64: Correct buffer allocation for SVE Z registers

The buffer used for verifying SVE Z registers allocated enough space for
16 maximally sized registers rather than 32 due to using the macro for the
number of P registers. In practice this didn't matter since for historical
reasons the maximum VQ defined in the ABI is greater the architectural
maximum so we will always allocate more space than is needed even with
emulated platforms implementing the architectural maximum. Still, we should
use the right define.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220829162502.886816-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/syscall-abi.c