Message ID | 20200317175053.5278-18-alex.bennee@linaro.org |
---|---|
State | Accepted |
Commit | 7b6a2198e71794c851f39ac7a92d39692c786820 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4452291ile; Tue, 17 Mar 2020 11:11:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv4K9GqI2Zjaao9bPZwe/BQ+41JneRqu4tYadk5J5kyTgt8VxjeGc8hgxGCfC0IM4CL+VPy X-Received: by 2002:a37:7a04:: with SMTP id v4mr131866qkc.340.1584468692169; Tue, 17 Mar 2020 11:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584468692; cv=none; d=google.com; s=arc-20160816; b=Qa2mAdwSbG/9YPlf1K4NK2eEl6yomgc0XD7zv+dtCdyu6LV+fZ7+8nDw4ZRZA4KELm JnlKckbTKMTQ+H99sm4tYCgCTCKWsg+1E4UzUuoiOEdLc3+BekR/xzVebchvFZjYchw1 D79cxVDhUQrOp6xLiR9/KwlF7v4Ys3JjYWJXspGiKW63DKHTlPp8mVkgHoFCTVmsWxEY S6w6Hw/Q5MCC1Ll7/59vcNPSZ6QlA+m443xFjxp49EmX7YY+781IerQpifa8et2TUtze HtZqCFv76VQ8VndscL9iYWi/8DbT/w5HI8mxpB/5SlSvhKOpwoKW9DPmeNWxF5anufof BkRg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=M48cU5ZUp7kKc2JaWuC8XHAXXhtPfcdV39imYH+qaek=; b=Xrtis5I2EFfS7W+22wyoT+bZJ1n4ZI6REuW04GfNFi5XF/68PZxDLp1llPXM+rpPpK yQb+04qHc5q58ydrfBIzqssMqeQLyDvSokaDEhinCFAY7lvEsaTOq2PBoywK497EdvdP Oq8WJnphwPzTa2CenmvRjF/W2LAhl5lFihbVsn60zEKcjzatnQieMt+l18dnkClH+Jgq e6NbKfMpzFlxiT8NHTe/1LdaUsB+yGXb1nY64rnpxaWixp+b8AJhTTcUeRjOpR+LVxyq 4qNR8lcBqbRPpqmv3e3FIgdi9XXzmNxXgS1KU1MhLidE/oemNyMsMYFPDxhZK6WaamNz hbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VGczjF6f; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s43si2427896qtj.330.2020.03.17.11.11.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Mar 2020 11:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VGczjF6f; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:38658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1jEGgd-00041l-EM for patch@linaro.org; Tue, 17 Mar 2020 14:11:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36898) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1jEGUb-0005pJ-87 for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1jEGUa-00012P-4v for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:05 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:36506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1jEGUZ-0000xO-Tf for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:59:04 -0400 Received: by mail-wm1-x342.google.com with SMTP id g62so284791wme.1 for <qemu-devel@nongnu.org>; Tue, 17 Mar 2020 10:59:03 -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=M48cU5ZUp7kKc2JaWuC8XHAXXhtPfcdV39imYH+qaek=; b=VGczjF6fWuU01syDM+MwafszV7e942MfzTNFFU+dND1iId9lkr7VUSDsJNYet3eOIU 0u76opveYLEtiKZEwAHUpWCOFfvuCxPBQHXgm0ucA2WF7Mrwb2hBmoqZTsLoto/JBU6f n/o+VAdRREoC+nguDZ3IKch6eZ9n8iP1BSq3BF5R3yE+BebltDh1IwCbSH6H+vGccEZH mB93aqe5YG/Gp9r17KEY3BXEROTq5TQIu9F2D2BBdo/5vM6SmuNiD6GMRMDHzg5y4m4j gWAlhevT3a9YddQ1LZND2qR/AIoZ5sDXYtClrW5bYiuHlL7W83hw7kInblpU8Me/vNBw 2fDg== 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=M48cU5ZUp7kKc2JaWuC8XHAXXhtPfcdV39imYH+qaek=; b=pYaBKITRE63TP0pnqrcWCu9H11193tETHRWQRlG3KH66wAyYKEKDyoDdLtrfYkfsnE nr5PZpr3qW9+O4Ct4Ua3sYGsUehunNlbLwXjhTWlx4t0dQ2vUBIFy6BJPXOHLAamk2oQ QCz1iNq+HL+iEhO5pDOy06tjeTt4R1XH83G3UeNuNQ5ypHHAwRL5igwS2HX1q6mRpqfv ytsP+tj6Q4DZYm1s5mImSidLwTACT+jVC8knzxortc8iAi4m1jC8wuBub6+1zZUMZhxJ Uwabmge0pmrpU2iAyHs0lBY6ZtBc+fhL1caGqkodsRQLub+7Be5wwvoz1IKFQhcIy5b4 sf9Q== X-Gm-Message-State: ANhLgQ23YdsYvjnPc8gvxW1OXdx7OdkE4vJyTYbB8yw/PFLaDjJ9bG9S ez7siuKyTN3Xn+25j8vv/NqykQ== X-Received: by 2002:a1c:de41:: with SMTP id v62mr236590wmg.60.1584467942841; Tue, 17 Mar 2020 10:59:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q8sm251177wmg.6.2020.03.17.10.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 10:58:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2112D1FFA5; Tue, 17 Mar 2020 17:50:55 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Subject: [PULL 17/28] target/arm: default SVE length to 64 bytes for linux-user Date: Tue, 17 Mar 2020 17:50:42 +0000 Message-Id: <20200317175053.5278-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200317175053.5278-1-alex.bennee@linaro.org> References: <20200317175053.5278-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Richard Henderson <richard.henderson@linaro.org>, "open list:ARM TCG CPUs" <qemu-arm@nongnu.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
testing and gdbstub updates
|
expand
|
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 3623ecefbd9..0909ce86a12 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -195,9 +195,10 @@ static void arm_cpu_reset(CPUState *s) env->cp15.cpacr_el1 = deposit64(env->cp15.cpacr_el1, 20, 2, 3); /* and to the SVE instructions */ env->cp15.cpacr_el1 = deposit64(env->cp15.cpacr_el1, 16, 2, 3); - /* with maximum vector length */ - env->vfp.zcr_el[1] = cpu_isar_feature(aa64_sve, cpu) ? - cpu->sve_max_vq - 1 : 0; + /* with reasonable vector length */ + if (cpu_isar_feature(aa64_sve, cpu)) { + env->vfp.zcr_el[1] = MIN(cpu->sve_max_vq - 1, 3); + } /* * Enable TBI0 and TBI1. While the real kernel only enables TBI0, * turning on both here will produce smaller code and otherwise