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: 928882 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="B0cgWlnK"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415S6b5CCBz9ry1 for ; Wed, 13 Jun 2018 23:20:22 +1000 (AEST) Received: from localhost ([::1]:34234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5hD-0005Rw-1W for incoming@patchwork.ozlabs.org; Wed, 13 Jun 2018 09:20:19 -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-Google-Smtp-Source: ADUXVKJ5EhvGz9iYUPUh0QSVdLL3VxBxFGW4BXm4QX0NCLuwnWCx1WIpksXops6D794gAYY3gAQbAw== 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+incoming=patchwork.ozlabs.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(+) 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];