From patchwork Wed Dec 18 14:29:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Craig Blackmore X-Patchwork-Id: 13913776 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FCAAE77187 for ; Wed, 18 Dec 2024 14:30:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNv3s-0000Xq-Ao; Wed, 18 Dec 2024 09:30:04 -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 1tNv3p-0000Wx-Q0 for qemu-devel@nongnu.org; Wed, 18 Dec 2024 09:30:01 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNv3n-00047B-VD for qemu-devel@nongnu.org; Wed, 18 Dec 2024 09:30:01 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso46315125e9.3 for ; Wed, 18 Dec 2024 06:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1734532198; x=1735136998; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UdukYHvSd1mFOZMM4pl71+ImVf8PR4lrYvEzB4RPWRw=; b=hEzFbELQ7kt4YWeZ8F6cpkTVgkEkVw8vJeKGWaRvrGFyoH+zG43+C0hb+kAD1QtRPX 2n6EqOf9wg4iL4MQJdLj1wWjbIexejZFY0/5iymH8gfEMOVZJZmJJ1bINcTPE4qF3pJ3 12zhjBOgKR1sC4obGwyN3KZZiHqGM8MT1spR0FV65u3NYFHRRGWfCs6m3Ck0p/4Zxmb/ cw8/3umDvAPEewG4zHGBbZ0zH4r6vBSQTsSIsYYnrYoqbMx3MXfh7b6faNiBzXbzjjen bX2xK3kVGPdJQqGqa6mD/VffhUSMd8Vh7HVBtodmPcRz54b1AZbRq6tO56nAThX9BnMK skaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734532198; x=1735136998; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UdukYHvSd1mFOZMM4pl71+ImVf8PR4lrYvEzB4RPWRw=; b=ApVFL3qIQYtkWUC4nFrKrO/Ee2n9+A/PXbPA71bVwux3NlEtLFIVNU8PntX2IZRIH0 vtyPri7K5C9ehCCF2Hlh/0t+oHhPBExeaYo5UM7geF1i8HpG5axkMDf5F2caiYZoth// 4gjSECfR5Kg35/077/UC3/UEbfJG1ePE6lOQZAD+Jpo8ZeKU8OM9YS699zuKDP2y6A53 eznVQrJMLWT1VqHVqNKm6rcDEovl6z1NPxvObFCUYqE6ywqvry8vWMR+yIruHFf6Dssq duv0yJWK+22JVcZ5HxacYeAc6q+2F48uiDqj85UuIZ98/K0+yCVF8nu7xR7gcHBuFQne iddg== X-Gm-Message-State: AOJu0YwGCMLj73Or+8CRQhexe4GThwj04Yhwg1KMvjkKK4lhNf+6pg/C AVSnZvZIMN7NrNXMVz90S6/9mk1jv5YNGyogMJ8sRjMQ4G7ZYxorm0et6idB+9XHXMpnRkjcmgW 8HVI= X-Gm-Gg: ASbGncuoWNs/DXykmPkCNSnXO1rtxB2HvP5pvGdfzP3YgF7jug4lOP5/OzXgBzVOUgH 0GFnHFvUFJvpl3h2+mZepSdXHIybcLVOF9L9lABDXpByCAQakShsbwYgeirmnYLvecFobVClkaH PWyBcjSPBKU+3MW6ktzsX/BObM2qKdlATWrs/LuAhyzoOtD2F8Qqde71tBTj0yNSFmB+yrgbe2e 3+H5hvCCeAgLCf9XWOD5FSfRL4SZrIBgAYOm2u+uRtl8OKYhK4JqNnjQ4ezCUAhey5SEaApX6YR 5ZXFs3ajdW24K5eoxHDKuTUb5e5DKZtSD0yA2wAj/2YzrVnd X-Google-Smtp-Source: AGHT+IHzuHKIhbzdRupfQx9qLbbtcCfYIV8uGwnwLKItg1YnLKvbNQXT0fqZtxKiilHOEuXXG1raOQ== X-Received: by 2002:a05:600c:4511:b0:434:9d62:aa23 with SMTP id 5b1f17b1804b1-43655426b06mr24018125e9.20.1734532198201; Wed, 18 Dec 2024 06:29:58 -0800 (PST) Received: from dorian.. (sals-04-b2-v4wan-167965-cust660.vm36.cable.virginm.net. [80.3.10.149]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c801a47csm14330046f8f.44.2024.12.18.06.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 06:29:57 -0800 (PST) From: Craig Blackmore To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Craig Blackmore , Richard Henderson , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Helene Chelin , Nathan Egge , Max Chou Subject: [PATCH v6 0/1] target/riscv: rvv: Use wider accesses for unit stride load/store Date: Wed, 18 Dec 2024 14:29:36 +0000 Message-ID: <20241218142937.1028602-1-craig.blackmore@embecosm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=craig.blackmore@embecosm.com; helo=mail-wm1-x335.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=ham 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org There were no comments on the RFC so reposting as a final patch. Changes since v5: - Removed RFC Changes since v4: - Split into a seperate submission to simplify review - Use load/store atomic functions as suggested by Richard Henderson - Do 8, 4, 2 byte atomic ldst for sizes smaller than 16 bytes This patch now uses the atomic ldst functions from accel/tcg/ldst_atomicity.c.inc to ensure element size atomicity. I was not sure of the best way to make these functions accessible from the riscv target, so any suggestions are very welcome. Previous versions: - v1: https://lore.kernel.org/all/20240717153040.11073-1-paolo.savini@embecosm.com/ - v2: https://lore.kernel.org/all/20241002135708.99146-1-paolo.savini@embecosm.com/ - v3: https://lore.kernel.org/all/20241014220153.196183-1-paolo.savini@embecosm.com/ - v4: https://lore.kernel.org/all/20241029194348.59574-1-paolo.savini@embecosm.com/ - v5: https://lore.kernel.org/all/20241211143118.661268-1-craig.blackmore@embecosm.com/ Cc: Richard Henderson Cc: Palmer Dabbelt Cc: Alistair Francis Cc: Bin Meng Cc: Weiwei Li Cc: Daniel Henrique Barboza Cc: Liu Zhiwei Cc: Helene Chelin Cc: Nathan Egge Cc: Max Chou Craig Blackmore (1): target/riscv: rvv: Use wider accesses for unit stride load/store target/riscv/trace-events | 12 +++++ target/riscv/vector_helper.c | 95 +++++++++++++++++++++++++++++++++--- 2 files changed, 101 insertions(+), 6 deletions(-)