From patchwork Tue Feb 21 02:19:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 655349 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcd:0:0:0:0:0 with SMTP id e13csp1725303wrc; Mon, 20 Feb 2023 18:22:40 -0800 (PST) X-Google-Smtp-Source: AK7set8+3ofrC4wiBGj/QtftnGl0mWloy57ZfxTe2lED3nstU34uJUqBmDHuXRvFTFfnlkw7MuHZ X-Received: by 2002:ac8:5c02:0:b0:3b8:4cba:e26e with SMTP id i2-20020ac85c02000000b003b84cbae26emr18484792qti.51.1676946160773; Mon, 20 Feb 2023 18:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676946160; cv=none; d=google.com; s=arc-20160816; b=xN5/Tc31Pz1ex0padefGfWBWorbQTdcFPAiWuk+yIkfSB1fDG2nJ7ebIBj1ioMMC7l 7sbtNnscmYo5DuIkgeJ+8Ui3QcUnd7uyqJ8OMfyKuN1rG84wc9uvIrL0wNglykY7QLDA vR2O26Rkh0vjB+nYYJnrhJSkwC9bUSOo2d3QiykHNfdYTq4wlVyY3leYeAgGVY+zS98K 64qrk7CNRB6NWXeLpc9uhtrnFnniW4iQzRMyXCjq/RxM+F4K1ol8o15Bw+r5vWW46y2M /cDRd1DW5pzk6UfMPk0XSw94yvS0I9iuXPEOaSzkkBY/oExoT+iUnROvYAgB0PktDHql y1wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=KtfS729W8SNygqiwUg2I8CHVdzajfLrBoTMYCRIqeSU=; b=YBMg3OztuAhqInHEiPcXCRczRfB3t8i0x9W0wF9t/boCS2QPLWqzqoaxQDw8oAKq/H iRrnqq05rV+oJ8wb4RI88DyOA8jGIb3QW/ygT2FjhRsMLkryLcx+lvz2hnPoDkvPiKFL 4PhgL1PY7QpKAwNm4NrtS26lev9ri6vGHikF1365IqEQIUWGMbk2n9Um+u9EKWMt8yIA ieMq7WtlY/gkv5rVQV1SHoGUTUIllSy2+eh2Iunj1d3NaSqDkoJvB+fu8wPCSW0Eq0RH oRFq2xlkDHPj8g0NbPyk9E+r5yTVojug3ZqBhEOmOTd2LbtVNvHH+hc/3vvSAEGnUcOR IzJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgcWGFyF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z126-20020a376584000000b0071d0386ab33si10171689qkb.518.2023.02.20.18.22.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Feb 2023 18:22:40 -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=pass header.i=@linaro.org header.s=google header.b=GgcWGFyF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUIGK-0001dX-84; Mon, 20 Feb 2023 21:20:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUIGF-0001cU-28 for qemu-devel@nongnu.org; Mon, 20 Feb 2023 21:20:07 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUIGD-0008E5-GN for qemu-devel@nongnu.org; Mon, 20 Feb 2023 21:20:06 -0500 Received: by mail-pj1-x1034.google.com with SMTP id ei9-20020a17090ae54900b002349a303ca5so3220174pjb.4 for ; Mon, 20 Feb 2023 18:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KtfS729W8SNygqiwUg2I8CHVdzajfLrBoTMYCRIqeSU=; b=GgcWGFyFYNckp3//qU1LAPMmRRlabLwlK6qCYJZOcIQCY0iVDimhnsZRh2K9KRwSIL 7u8RSx5LvApsE7aptca1e33092HscbxcYpTlPzfjt/8crr6qt1aiIeU/P6FG1Uai8CV/ B0PWaGT14b9MCvRRfjsUoRVgVY3Ks3xOn2Npd7i92gS/T1yUEpLACxm+1twh7leOtL3L OzlCw/Et5dpGIt3sQvfLHRNtq9IdhW8ULWp0Wi5sMl7wRcdU5UzJClp26KsKHZA/u+Ym mGv+SrCiXZcFwRrT/P+WfIlTX3V9RNeM3c7Th30netTZx5UVuJ25b9Hb+HKG/Xc/t/m1 k/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KtfS729W8SNygqiwUg2I8CHVdzajfLrBoTMYCRIqeSU=; b=ke3psLe10MmHM1Rdb/XhoPCOaIugEtbkW+EdNdZSBAUYCiy2KuqiFgUxvQ+DBHV9F9 SIgk+WgRCiZWUt+soXWGEHh4D49pEWnkCW+F9GjShna8IptrwXak6RrW8GDz8sKvGrDQ mbgYhVlvuMvfkrMOOH2PcWc+xx5xJna2tPdfUFsebVIEB+pe5Aj7dm/UXs7eKbCB3R7o qJ4mrJRtkgE76fWk9k3OIEOVt23bjqo1TTSmTIB25RJ/MRr2kEoVFGtMITQW2D7RVLhk 7ceaOzlyz9AaHT5e4Of+G6O/ISNx2i023QJv9V/txTHSyGcFOX/0L8ZcfQGiY/qFxvXN wOSg== X-Gm-Message-State: AO0yUKWnRf+BpMwILagM6x2huOXKZKjBCfCD1IeXTrJcjDkr694cNv9l BXmXBXN/JEifFKtDRfzENtDkIfaPCmCIB7BaL+Y= X-Received: by 2002:a17:902:fa87:b0:196:7664:39c with SMTP id lc7-20020a170902fa8700b001967664039cmr3364688plb.31.1676946004117; Mon, 20 Feb 2023 18:20:04 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id f3-20020a170902e98300b0019141c79b1dsm8559328plb.254.2023.02.20.18.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 18:20:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Fabiano Rosas Subject: [PATCH v2 06/14] target/arm: Hoist pred_width in arm_gen_dynamic_svereg_xml Date: Mon, 20 Feb 2023 16:19:43 -1000 Message-Id: <20230221021951.453601-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230221021951.453601-1-richard.henderson@linaro.org> References: <20230221021951.453601-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Fabiano Rosas Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/arm/gdbstub64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c index 070ba20d99..895e19f084 100644 --- a/target/arm/gdbstub64.c +++ b/target/arm/gdbstub64.c @@ -283,6 +283,7 @@ int arm_gen_dynamic_svereg_xml(CPUState *cs, int orig_base_reg) GString *s = g_string_new(NULL); DynamicGDBXMLInfo *info = &cpu->dyn_svereg_xml; int reg_width = cpu->sve_max_vq * 128; + int pred_width = cpu->sve_max_vq * 16; int base_reg = orig_base_reg; int i; @@ -319,13 +320,13 @@ int arm_gen_dynamic_svereg_xml(CPUState *cs, int orig_base_reg) g_string_append_printf(s, "", - i, cpu->sve_max_vq * 16, base_reg++); + i, pred_width, base_reg++); } g_string_append_printf(s, "", - cpu->sve_max_vq * 16, base_reg++); + pred_width, base_reg++); /* Define the vector length pseudo-register. */ g_string_append_printf(s,