From 3e7398eb1e0c7d5b8c1c45f5ac15ca2fd8a8661a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 22 Jun 2018 15:12:04 +0100 Subject: risu_reginfo_aarch64: limit SVE_VQ_MAX to current architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The kernel headers optimistically assume it's going to grow but as we are never going to use that many on current hardware we limit SVE_VQ_MAX to what we will. Signed-off-by: Richard Henderson Signed-off-by: Alex Bennée Message-id: 20180622141205.16306-22-alex.bennee@linaro.org Signed-off-by: Peter Maydell --- risu_reginfo_aarch64.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/risu_reginfo_aarch64.h b/risu_reginfo_aarch64.h index b3701b3..c33b86f 100644 --- a/risu_reginfo_aarch64.h +++ b/risu_reginfo_aarch64.h @@ -31,6 +31,11 @@ struct sve_reginfo { }; #endif +/* The kernel headers set this based on future arch extensions. + The current arch maximum is 16. Save space below. */ +#undef SVE_VQ_MAX +#define SVE_VQ_MAX 16 + struct reginfo { uint64_t fault_address; uint64_t regs[31]; -- cgit v1.2.3