From patchwork Wed Jun 13 12:56:00 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: 138473 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp715436lji; Wed, 13 Jun 2018 06:20:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKItci+Xwi/utVAgfd6Y4gokYj3oDQgXpIX3k1wzwWvv4pUmtCoHWwNYvCTeBFY6uXGLG5P1 X-Received: by 2002:a37:be44:: with SMTP id o65-v6mr4092076qkf.439.1528896000508; Wed, 13 Jun 2018 06:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528896000; cv=none; d=google.com; s=arc-20160816; b=YMHAk0eICaS+bMJ5az/Pq2fYCKeQMAwVjNdQmxVNWtcssmbDSx1woiQEmy85PCgj/Q vq3xqJW6xjvBsIctM+pfUTBJ5coeWxF9X5IHLsui3f4Q6A6QmfZFKE8qF/qow4IEKhsS dMNK4xoTN7j2OPWMVwg8+IxHkVt9fi7NzGNqH4ZjbZzV1ZBwa0gdIfci0P19r3V8nM+u 38T9+yVUU2BnNMmWHj4hvSCLPDeXlRj5Z/xeFM5GPyFEQfepgsluDUtYrRdqXJx5fMFl Rlcb1gzPS0kjU5V6nRjiw3+F3IIbFu5/ABNa7cR7NCxSOMAzyoh9b4Rx36LzEHOdgK2x gCEQ== 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=bfmFmKrpGCY/E92zkYM4Uu8NWTONQsbaq2XAD+l963AMMgjNSIaBiK1CUySFsL6yPE lBD27FhNJ1OJ4vpDqST8UnumJqv7bTI4VTc4BGiP0jrpZquLgvnehj7UnStgt3aS1FN3 WTRLbIjytDYG/P+nSnQGTz+CNMzLY4ieVYZ2x1neukVU3vWEl1coaR7vtnTQT7qq+WkI BfsOVJrbZBK5vyPs30lOJXBa+urDYTNGOlrxWrl1TYHYlQXhv38Dq1xYhIcJG3zo86fM dzh+G1r+Nh//hqCNLWxz/2qLpo6FtQgQoEe1g8bTSMp2rd29z5Ef/vnez5o0jR7TD0mt 8UDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=B0cgWlnK; 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 w38-v6si2665487qtc.330.2018.06.13.06.20.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 13 Jun 2018 06:20:00 -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=B0cgWlnK; 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]:34234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5gt-0005Rw-US for patch@linaro.org; Wed, 13 Jun 2018 09:20:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5SH-0001X8-CE for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:04:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT5SF-0005V4-Sq for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:04:53 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT5SF-0005T2-Kz for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:04:51 -0400 Received: by mail-wm0-x243.google.com with SMTP id v131-v6so5286119wma.1 for ; Wed, 13 Jun 2018 06:04:51 -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=B0cgWlnKmhbJ3Q1PYgepMPEVLXmNVJWsFVR+Iwu8UxkXvAoONVXagL1LjfaZM6WwDl EZkTxqu3FSel85VeepguHR5lNrJxcjoMRQ7zTO5ek0FskMyTIMWDXz2L5wwxxd90clwJ xjyW4QDsgANXoRxf0lYr9I1txKErqkCElBSlU= 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=RCtNqGR4988rIokkOdNlry5QQ9TFBtt3wOwTxFENPjFPyb0Me4JyZ3XP+CI4ahqWZK 08A31kKQ8mdOLx3CyMlfn8twsLQ641jXA9vtXEQIFsnO8dZ5XM87f3FSM0Ty5ioJNbeZ gxnD7bTO6F0Q66Ci7nKTxuH/M/Kfaa+C9ZegyLSYjFbCl7IpUfz3/oXUvalvD3zlhGLL ewoGbVfdD50nN/hs3mpmnY38f1TDeNLtJYS0+kzsO8ewZ34YEU3tT4MlilPKoPTdBmGD 9kLFPV9XCceG71p6QjpLumkHmQT/iKqFfA8JqzFUSCyk2K0N2iGbwOjVNB7lzBrGlleO hWPg== X-Gm-Message-State: APt69E3S8xvoUnGMrysHa6wE/k6F6TdCal0nqICPoRz3yTuV2oOpMuWg WWCmwc+I5m2jg5qnomUzvIlbDQ== X-Received: by 2002:a1c:9189:: with SMTP id t131-v6mr3755594wmd.89.1528895090590; Wed, 13 Jun 2018 06:04:50 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 132-v6sm4114638wmr.33.2018.06.13.06.04.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 06:04:49 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3D4993E1351; Wed, 13 Jun 2018 13:56:02 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 13 Jun 2018 13:56:00 +0100 Message-Id: <20180613125601.14371-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613125601.14371-1-alex.bennee@linaro.org> References: <20180613125601.14371-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:c09::243 Subject: [Qemu-devel] [RISU PATCH v3 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];