Message ID | 20191220120438.16114-12-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp451001ilf; Fri, 20 Dec 2019 04:19:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxNyhBdzrN6MfrLEop41L8GgQV8VJ7yyNnGoibG8pam7nOAItVif13f4af9DeUUvVsUhekD X-Received: by 2002:a9d:222f:: with SMTP id o44mr2029123ota.51.1576844360424; Fri, 20 Dec 2019 04:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576844360; cv=none; d=google.com; s=arc-20160816; b=QJiiGtl25QQya+gWOLtNDaJwtzv3bACEnyWWbej5wKaDVBF/k1GHX/ts+21ZTF2AUF g7US9ZlWFbhcP2dtD1PXFjDonPC00EmXDZPMDYF20Ig4lx2+Mv5Fd267DOL8eFWgb9e0 wMD6S7/uHbxPlIUITxOSpxHpt4N8GflSJafn9nSIsqDpTeW1riwo6vTSmoQuqKF84Hf5 XiTviIvsaxYJPgLD2tWHC5htbn2ChiXkbW4HWQDYCgqvQzQGz6x8hhwn/fZI7Q4PpufP UY226lxiB2WGROnQkTIfclg4zZPqcI4vVtE6/QNZhzdUUgwRkZZK3ezbnPf/xM2bh6TD xZow== 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=YX/3QlJb96xuPlFrDu4WTqDveBFpdotwZIYVwV0XY7M=; b=laI0MupuSfcCh/zikJNfllc/7oxUNym7x7hf/ylKElTG0Rjy9Wdp2MW0lEPQGFj2QQ BrEoaixBauvQEx69Uzb7kr3D2Ywjvj6IFNCZFS78vVZbXgfn8N/Fj3BfPmsT2bDoxfTJ VE+zNZjBczX+9R1dHPa3/1n1VMuRYD7IxLQJunw1qQhpuAsdG957aIjShGZGvj5kQWOy jms3QjF86vmrzMsZG5k45GFNLLpTGyI2Y+Qcu5AGaPXelmFz03Ej1cWvgnzCihuQXJ4k sVh5U8NDScWLbXax2DpJ84+0pfLrXnuN8HQQ/RaSwPoDJLXkrg7MaxJlKhIptSYjfPBK FYYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KZafxjOH; 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 o4si4817692oib.70.2019.12.20.04.19.20 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Dec 2019 04:19:20 -0800 (PST) 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=KZafxjOH; 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]:54278 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 1iiHFX-0006tQ-Ia for patch@linaro.org; Fri, 20 Dec 2019 07:19:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54443) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1iiH1y-000587-SF for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:05:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1iiH1q-0008SZ-5X for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:05:15 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:52406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1iiH1o-0008Oj-O0 for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:05:09 -0500 Received: by mail-wm1-x341.google.com with SMTP id p9so8694650wmc.2 for <qemu-devel@nongnu.org>; Fri, 20 Dec 2019 04:05:08 -0800 (PST) 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=YX/3QlJb96xuPlFrDu4WTqDveBFpdotwZIYVwV0XY7M=; b=KZafxjOH1S30qEh72GnMUHe2Au3BKIRFNGoG+fusNFoSXd61bMzh2txwNDqIhUrWQ8 lsrFGNfq94RRztbZSLmBp1IZazWVx1xgFb4Nlu+kauZ+ZoCEoh6d2zZZOjzPf3q7sGH+ fupYZcO6tS99qPBjwTnrreimuBWw6KkOc4ym3r07qndFNjQxi9h2UMruWlaTDBeWXBL7 d5Wahcms/WP45ndLpzTUGYw9DXWohfk2QxMDaFzg2w7VMtCgvwHYZ7NkCNbFc/Sk5nvU LOMfb3qzVxp09VdCibz878qyKu36LPWOMQaBj9tr0luSw6I4m4xUGuo0h5KYP/enWVb/ F3Tg== 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=YX/3QlJb96xuPlFrDu4WTqDveBFpdotwZIYVwV0XY7M=; b=AkBNO/DlnZBChzzVyYVoDLQOnVs2dHj+8/HzhXpfRNGxMoL9CFKBb8+9FcwliaNlYu HeqzF4O1zNIt+un/468R2GcJm8RQUhDoPEAsF+DT2Vafr/cejJmGnssOQwqOVoAjdheL ugnpSWjdiMhMSsxwubQK1e+J/7rECyatC5rStDIVTR2LsALu9GCCBiamZJvXwhRd4cbN lCK4OkpRh7Omkigb30i/wt4xaj15R3AVOIp9CmZSjToT+On5VE8CN1cw2c6bAgjqwXyx oxGdzfZSltKpZltWD66vT45gEkZYZUijnS0rR+RwFWTcodRtUnPeAm0wcps7Bc2zTz9u hu8g== X-Gm-Message-State: APjAAAWM7rbgDVEg7W/GQ/4vwt5sDpo6mbmoxnKHccqok2dGiLDYIPIq fN/t4WloUK7CUVidAKuSEZtwVA== X-Received: by 2002:a1c:7419:: with SMTP id p25mr15515137wmc.129.1576843507082; Fri, 20 Dec 2019 04:05:07 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x18sm9681364wrr.75.2019.12.20.04.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 04:04:51 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2C4A81FF9B; Fri, 20 Dec 2019 12:04:40 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v4 11/21] target/arm: default SVE length to 64 bytes for linux-user Date: Fri, 20 Dec 2019 12:04:28 +0000 Message-Id: <20191220120438.16114-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191220120438.16114-1-alex.bennee@linaro.org> References: <20191220120438.16114-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::341 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: damien.hedde@greensocs.com, Peter Maydell <peter.maydell@linaro.org>, luis.machado@linaro.org, Richard Henderson <richard.henderson@linaro.org>, "open list:ARM TCG CPUs" <qemu-arm@nongnu.org>, alan.hayward@arm.com, =?utf-8?q?Alex_Ben?= =?utf-8?q?n=C3=A9e?= <alex.bennee@linaro.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
gdbstub refactor and SVE support (+check-tcg tweaks)
|
expand
|
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index dd51adac059..2d2e786245b 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -199,9 +199,9 @@ static void arm_cpu_reset(CPUState *s) /* and to the SVE instructions */ env->cp15.cpacr_el1 = deposit64(env->cp15.cpacr_el1, 16, 2, 3); env->cp15.cptr_el[3] |= CPTR_EZ; - /* with maximum vector length */ + /* with reasonable vector length */ env->vfp.zcr_el[1] = cpu_isar_feature(aa64_sve, cpu) ? - cpu->sve_max_vq - 1 : 0; + MIN(cpu->sve_max_vq - 1, 3) : 0; env->vfp.zcr_el[2] = env->vfp.zcr_el[1]; env->vfp.zcr_el[3] = env->vfp.zcr_el[1]; /*