From patchwork Fri Jun 22 14:12:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 139678 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp965907lji; Fri, 22 Jun 2018 07:51:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgy/b2E5m2BiyhO6U6PqRkFmyLbi3Ybj/wR+NPYgoM9QNZUJCJaUqg7aSLiTuUhXU+X7F2 X-Received: by 2002:a37:15aa:: with SMTP id 42-v6mr1609960qkv.428.1529679104571; Fri, 22 Jun 2018 07:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679104; cv=none; d=google.com; s=arc-20160816; b=z54hwG/knOyRNbGEsq0VvqJGaEaMCxvrc7YUU4p77l/gnjvRHnpjUu5hW+wki1Pm6/ qIFSglIBikcmcycO+BybgkS17M5NAlhYWZwFPAp1qHscGZD8hMQZiRDEmDzzDbuZu/dX YWcMe3INl4k1kFF384teG2N9XvL5Klv3+K4KPMutZfbDqAljNiBwj1nvtm7W7nIHReQO akVwVnOk+NU6PukA19mrHCQhxqiwU43vmUqXKQlXxuy1fLRc7bnEpEgovtKBrPKxBD2g iQGP/xJtwQwJPoFXHerNaXbKS3BEklgx5u8Qfw5C/5i58n/OwobqHQrWTTpFwYNyNSvV xthg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=eRUvf69/Mjicin5hPK1+CpPdqfXsU3+UuNwgwB7o0xM=; b=SzOakQe7bw+q7DfPcEToL36H1GIjCtRvs5poYGnofBPRPQEGFgDx38bPRf4nY395lx xjkOIIwyTNgOF8xKcFpc/iuuqfEP80v/mzcPDRa92lSINptEbruWifuGLB9fzyPMn0Rx 6E9mKWQOuo/erFG5nNoSZZpQI/hcp5lWVQNR+WmyRBgs8ENIHl7QaOA6BbGYt01RLlSz cIJKu6IoJKResjMB0UVdsp00Cq5yxO491EoZVjUigVdtemhWPzFuHWU+2Dxi5MtgYsYK hzWBUhvj/Xw14HdpjmM0RJdF8Ah5QjJphNO5XPEBkg8S8jg0M79RNcu9+p8T0R/W0qdx z3cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="aACd/RtS"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k45-v6si1646964qvk.217.2018.06.22.07.51.44 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:51:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="aACd/RtS"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWNPc-0004jA-44 for patch@linaro.org; Fri, 22 Jun 2018 10:51:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMww-0005uG-J4 for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:22:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWMwv-0003XC-Ia for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:22:06 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:46726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWMwv-0003Wc-Bz for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:22:05 -0400 Received: by mail-wr0-x242.google.com with SMTP id l14-v6so1827272wrq.13 for ; Fri, 22 Jun 2018 07:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eRUvf69/Mjicin5hPK1+CpPdqfXsU3+UuNwgwB7o0xM=; b=aACd/RtSajoF4DhzlR/Ywd+Tupjtxn4kdCpC/R2uZuXX/idBY2GEVY9WC24rGcPYMD YkdRm03xZP53mtzOg0bDxSTrVGXT0RICukUNwK1uwCBO09gKzeGtceLw/3Y9mbQ8oVMc J8VtueIBRLu12aSFiclowxF8x9/OcFC3QS5rs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eRUvf69/Mjicin5hPK1+CpPdqfXsU3+UuNwgwB7o0xM=; b=LOReXGQuVmocXQR1VVqkwINbPLySYtP7Hy2DOqWmniep2XPrn1hQbRgvIeaVYw3uGu OoYmUJVSHZNof7U5aweUG0longo2rOo5vZDBjZTiUDajEi0DgkO5puNsNdoG6s1rykrS rnFztw8EbuJIf7lK9NUX8aE2LqYLRhhZuVmKAcoN5A2EjhS9JIl5GT/EfvhC3IjqBfKA /hKG+h5CAAtylagDPaO1+bmqxpM3S0uwgKQxZTo6iqqB4KFaEDygqh3xIyJXyAAaB0/t HmxbqHOtJJs2KxqLsQjE4bV6pcHS/LbQJA84snWs9CfyM70LKNAIQQcilnd8g3gtWdDN LxSg== X-Gm-Message-State: APt69E26LuPwx5kbWHEFbsNOrNtFFNOHQxYr9CcWn7GyvQZy9Xh9QXP6 DUlNSWIp5xgE0uEVO3RB2OTAKQ== X-Received: by 2002:adf:f40a:: with SMTP id g10-v6mr1791334wro.256.1529677324381; Fri, 22 Jun 2018 07:22:04 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p196-v6sm2525585wmb.20.2018.06.22.07.22.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 07:22:00 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 587D03E0CEF; Fri, 22 Jun 2018 15:12:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 22 Jun 2018 15:12:04 +0100 Message-Id: <20180622141205.16306-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622141205.16306-1-alex.bennee@linaro.org> References: <20180622141205.16306-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [RISU PATCH v4 21/22] risu_reginfo_aarch64: limit SVE_VQ_MAX to current architecture X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson 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 --- risu_reginfo_aarch64.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 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];