From nobody Thu Nov 14 06:57:30 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1705438996; cv=none; d=zohomail.com; s=zohoarc; b=b8FgLOOpFc7C/DXskBElhHuc7DP1jeP0X3tPPjcAi171zjOMVdwZ5zqi2HZb7pqBwGxqKDMICWpalDYxz6hzrMdtxJkn4Cc+lyn2YJbHUkgta5FfccDg63ZVixWJEKK4tLSHaa8jjVRR6VQ9B9oohjS3GnSKcTTO6HVgjRmQgdA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705438996; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/mqYdrvBHfNvDL7QQKTXH50VH69mfmJxorO62IA/mls=; b=HEF3OigOnNr34VqZ1B6FW3aXitn/POqOLGybIpuWVW6tXokt8ga6XlLKkbOCZoZBsxAu2Uaxp4vD1qH4WhqusX18aPdtdNDu9h1HRsCAGI47GJo9b96Q6SbvYimSuJ5GBSTSZw1nEqWuCTIoikpn3pvlsIl7TTd2v1IaZfU+LhQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1705438996803509.75143479074234; Tue, 16 Jan 2024 13:03:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPqWA-0004c4-4L; Tue, 16 Jan 2024 15:58:42 -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 1rPqW8-0004bk-BS for qemu-devel@nongnu.org; Tue, 16 Jan 2024 15:58:40 -0500 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPqW6-0007bB-SK for qemu-devel@nongnu.org; Tue, 16 Jan 2024 15:58:40 -0500 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5cf87cdc4c5so978608a12.1 for ; Tue, 16 Jan 2024 12:58:38 -0800 (PST) Received: from grind.dc1.ventanamicro.com ([152.234.123.64]) by smtp.gmail.com with ESMTPSA id sh2-20020a17090b524200b0028df5c748e4sm11326949pjb.44.2024.01.16.12.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 12:58:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1705438717; x=1706043517; darn=nongnu.org; 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=/mqYdrvBHfNvDL7QQKTXH50VH69mfmJxorO62IA/mls=; b=kO5qtMx1RJA2x0G8miywvcMIaGluTxwnMEYJ/lR4W2hvyUIX6k/7biHR9kQC9+dSa4 J6DRVDUYRT0AYJ2BZ5XweLVYVeZKx107/mbdb0GAPAQL1kbtpEu34X/peaV0kGlnUMlN 3bkcSPI081MidrD204KwmKIZtRAqLrSYoAyDcqTU2xZpEi7g6WyRC2xDBjfyCigaD0lu c5qxtQ9hldi/Oa4qLazk3TZcvyEWPyP7BkQD61CDo0SrErsY/rw77M/LExPTREnFMdVZ dz3nzpl0AuSLT0xht92mCj1dmJXQZ+XvRaQVlNdi/y5nG0y72t4bFG4T7xLgKakRwcGb /+zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705438717; x=1706043517; 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=/mqYdrvBHfNvDL7QQKTXH50VH69mfmJxorO62IA/mls=; b=H+n8ssqSZPItF17FRFJeYA/7+0KYIJpxYRskRq7Orj/ghnWEQc5EKtrE5R5X6eG0YP pSYXBY655DMltnMZJ3k6M10QAyoE/mRHPT3SvEC0Uq82zGU+FazkjGJFHWfyJaVs0mG0 ptbNRFab3aZbMxbZEamWKl6qQW7A7AK6cSG/oqmiSpvbxtqQIrSSFSmkvx1mmvpWLkmH Pc3TIkEzxCzAHxIHaYFUGnjRruDZDK0Idd4UYjmq6/GiorlagZSfE7ke7H4aV0YvqIEp bgAFpWEAqatRttWeg23j8TpOrOovYAirq4+bAWIT5zcWyOQB7mwF6q5Ogz0ZvHXFUDtW LWWw== X-Gm-Message-State: AOJu0Yx7zEpBUc9OzbN/EE3CYp6an65SabvCbcyW8HKSBXQBoUYY+80y X97UMgPXr6WFtNKhbh1b2/8lXFjEpE2uYS9HId/qjI7V8dqUbw== X-Google-Smtp-Source: AGHT+IFDTbXlE+DWfrI3rxq8Wuc6wjz/ANNQl0UEic9uw9mxsrXaMe7soHDECwNBKFLwJQkOyT9rOg== X-Received: by 2002:a17:90b:24e:b0:28e:82df:5559 with SMTP id fz14-20020a17090b024e00b0028e82df5559mr969931pjb.23.1705438717059; Tue, 16 Jan 2024 12:58:37 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com, richard.henderson@linaro.org, max.chou@sifive.com, Daniel Henrique Barboza Subject: [PATCH v3 04/13] target/riscv/insn_trans/trans_rvbf16.c.inc: use cpu->cfg.vlenb Date: Tue, 16 Jan 2024 17:58:08 -0300 Message-ID: <20240116205817.344178-5-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240116205817.344178-1-dbarboza@ventanamicro.com> References: <20240116205817.344178-1-dbarboza@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=dbarboza@ventanamicro.com; helo=mail-pg1-x531.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ventanamicro.com) X-ZM-MESSAGEID: 1705438997927100001 Content-Type: text/plain; charset="utf-8" Use ctx->cfg_ptr->vlenb instead of ctx->cfg_ptr->vlen / 8. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn_trans/trans_rvbf16.c.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvbf16.c.inc b/target/riscv/insn= _trans/trans_rvbf16.c.inc index 4e39c00884..8ee99df3f3 100644 --- a/target/riscv/insn_trans/trans_rvbf16.c.inc +++ b/target/riscv/insn_trans/trans_rvbf16.c.inc @@ -83,8 +83,8 @@ static bool trans_vfncvtbf16_f_f_w(DisasContext *ctx, arg= _vfncvtbf16_f_f_w *a) data =3D FIELD_DP32(data, VDATA, VMA, ctx->vma); tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0), vreg_ofs(ctx, a->rs2), tcg_env, - ctx->cfg_ptr->vlen / 8, - ctx->cfg_ptr->vlen / 8, data, + ctx->cfg_ptr->vlenb, + ctx->cfg_ptr->vlenb, data, gen_helper_vfncvtbf16_f_f_w); mark_vs_dirty(ctx); gen_set_label(over); @@ -112,8 +112,8 @@ static bool trans_vfwcvtbf16_f_f_v(DisasContext *ctx, a= rg_vfwcvtbf16_f_f_v *a) data =3D FIELD_DP32(data, VDATA, VMA, ctx->vma); tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0), vreg_ofs(ctx, a->rs2), tcg_env, - ctx->cfg_ptr->vlen / 8, - ctx->cfg_ptr->vlen / 8, data, + ctx->cfg_ptr->vlenb, + ctx->cfg_ptr->vlenb, data, gen_helper_vfwcvtbf16_f_f_v); mark_vs_dirty(ctx); gen_set_label(over); @@ -143,8 +143,8 @@ static bool trans_vfwmaccbf16_vv(DisasContext *ctx, arg= _vfwmaccbf16_vv *a) tcg_gen_gvec_4_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0), vreg_ofs(ctx, a->rs1), vreg_ofs(ctx, a->rs2), tcg_env, - ctx->cfg_ptr->vlen / 8, - ctx->cfg_ptr->vlen / 8, data, + ctx->cfg_ptr->vlenb, + ctx->cfg_ptr->vlenb, data, gen_helper_vfwmaccbf16_vv); mark_vs_dirty(ctx); gen_set_label(over); --=20 2.43.0