Received: by 2002:a05:7300:232a:b0:178:84eb:402c with SMTP id r42csp3855531dye; Wed, 2 Jul 2025 07:34:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV70myEFZGWeHNhiR+x4NDQ8KBKUHejGRYa+Ver9oLYSGtqNK6+Y6chVoZvHrFfKAOoog9pC5IHCBmgeQ==@linaro.org X-Google-Smtp-Source: AGHT+IHKGp6GpNipW3elAmHn6MmYHCzyrzm0ETZCv7rlRDiXC8iX6Xz4nMbLJqyaA0ckuSiwCeKZ X-Received: by 2002:a05:6102:1606:b0:4e5:a93b:1d8e with SMTP id ada2fe7eead31-4f161365d9amr1477006137.21.1751466866875; Wed, 02 Jul 2025 07:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1751466866; cv=none; d=google.com; s=arc-20240605; b=I5dr2zWLVQ400CssRgGXVbtwbtVDgl10lfC8N2F9me1eHyQQuM8mxvsW6cYM5hQZpQ QDaNh69wQ9JU+K39u9BvlKGsl7w8rH61u9zRRCFQXc1MBcwc2E4snQVx22LBF27YW9PK Ni6y8KHGz6dRE6dU8Vgzcv3MgOeNSX7FMvKsXagjoQ/jVmwWRICd0070ldGp2xtzKvGd i8iQGRrS2oqecED4T7/J9OU+Di4USaj1EN/NJ008yyf6lwGWkdMsKxcMfoRN6l+7J3TK 92tI83MffwLdL6PHUy1q6WeF+Q0zHJPGrjWi1EiRR01bLXMD5EiYZmRmrk2nB7HpVNAs Wugg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ScdsNivRgUJVL8aETXlbY7gbdCYxjqOKnFqplopzhGo=; fh=f1zoy+AIHCm3/7PwMNwV2Y2S0ZQNvtjpC+CoI0mu8XM=; b=jRiz722uGMevWLyu3rTDCANrPKdJHBhvLHe26aiYqJXjuWohteF/aqD2UpGVKsTJTC ah0RKhUY8gQ7vchoKztKbYxGu2UKae0QG1xLVlbEEsOF9ejT705KOB5LnaP58wASe4OI PC1Gn60KCRzYdPL+wWsGJzFoW9cend8XRiyjlhU4riTbFHAfseXhucbXBY/Xf2STfRkk /i5PbMdDg2be6QafgL2SScGxxaEnfADuyfzZJBgkn6hD3zbc5mY3Bqik1Q73fBMKpjbZ yGx9gVWNnu4SysfwvwmBrHuekyYeQmQT5BzITDu5N6/PEi/JWB61mF5Kg4ZG2GVqCh5t w3iA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SlOOb3U/"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4ee4caf1df1si3171636137.218.2025.07.02.07.34.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Jul 2025 07:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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="SlOOb3U/"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uWyX7-0002tY-PW; Wed, 02 Jul 2025 10:33:57 -0400 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 1uWyWu-0002ky-Cs for qemu-devel@nongnu.org; Wed, 02 Jul 2025 10:33:45 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uWyWp-0003co-23 for qemu-devel@nongnu.org; Wed, 02 Jul 2025 10:33:44 -0400 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-735b2699d5dso2245117a34.0 for ; Wed, 02 Jul 2025 07:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751466815; x=1752071615; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ScdsNivRgUJVL8aETXlbY7gbdCYxjqOKnFqplopzhGo=; b=SlOOb3U/hiw9IsxzvQrSa7OtAXHXmOzYvHh3M7UDiSYaCtB+V48UlPLNWqfRSGKsPt 03/ePtyLX5M6Emrtd3kUIWUKJ+mpZEXc5bluYy6dml6/s64NsEkatsq5XM4Nf+BI0y4v plCiuoMcJE00vEF2nmXzjGcjBY1l84o93WQyO7CQXm3XlAeekVwR8ac44jCq1KzUK2oK 1TL3ilAsk58VRZLtaM9WoSMmT/Dv8fU4r6f1yHpqAEQ3GvZTN3qQ7rXBEjuTq4A1OZfY rm4A7bPt+kOGzOWpPbGefCTQT4QCT+B3SpIVIP589uOZL0/UqoDI6lqH1eaJdtMaEgdt ql9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751466815; x=1752071615; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ScdsNivRgUJVL8aETXlbY7gbdCYxjqOKnFqplopzhGo=; b=D+9RjLVFgYUvG8ZIzoqxvBB8lf6JVjjplL7SdERgTZ+CW1k72YQxkTSO1/G9w708uK T+5Mv3LfeyahWkSNwy0XIkecVMmOnT+LRxYVljHB1HJR/m8E0170RAFHGvslkBfcp7Xx Ae1bJf5N0RkJU9LNvGA0m2OYnG+GFFNTfuwy5MhcJrARVwP1CtmtXY/OS8tKHPzcyAKR RT3tdoXkj1LOhPLTqfiZlvEpwb34D2pH9a0YnULyE4+c6eOLHFIaWAUIZ/tbgcMzvpvr 1LtH8vCc10p9XMb8PabPrQuTy/4C0axYMmU9Tv7bj9AZVYaMyCJTOxiShQCS/xMjki// YK2g== X-Forwarded-Encrypted: i=1; AJvYcCWDDCXjH0SAnS/2ukdbc6yp+zibbLodt1RKo9OBOX8LsRiKbSATFoaAh+M7xY7IJOapNzATvuZ9dap3@nongnu.org X-Gm-Message-State: AOJu0Yy1A7HRfcfrFWrGi8FUqpRYNSaK6IIkvP46yquuo+HQSieRQsqU Bh3EiV5RGUdAnDjSvC1o/lmqiPmJBsyMlDQk9OqYXyV9hnFFSSs/EUXW+sGrpzZ/zqc= X-Gm-Gg: ASbGncvTPahFqc4YAuy4hNU3WqGyZ2MwR8uJqJAAX+e9RV7LNk+hIqO6oOH4F43Xx+x hqnYCqTlvnL/EDoQsNJTqqdVrqQ9FoVihI0qtOepQf0w8ltR2qKCzQtMBVh4pZLxxRdDKIK/W8I mod0Ks3p2Qwk04mQxebPHTcXBPXjEUgtRFcOAq0FqILKO9CiI/ubp9s4KvT29ujxg8l7OikgJPx 4k/5aIwUxkSHA0Y7rzYNb3DipUlRMt3BRHdtDGGHuZHus3d13HlgfpvcGJ2BhKdRSRaIg7bjdm1 Pwm7qJ7DM3n9RY9cqonCY3FFYhw+a7ZG69T105p/4kwcmpdtpvE58ZYA/eKXgibkUmfBHzgXLLK V X-Received: by 2002:a05:6830:61c6:b0:72a:1494:481e with SMTP id 46e09a7af769-73b4c610910mr2160238a34.0.1751466815441; Wed, 02 Jul 2025 07:33:35 -0700 (PDT) Received: from [10.25.7.74] ([187.210.107.185]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73afaff24a6sm2481405a34.5.2025.07.02.07.33.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jul 2025 07:33:35 -0700 (PDT) Message-ID: Date: Wed, 2 Jul 2025 08:33:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 01/12] target/arm: Bring VLSTM/VLLDM helper store/load closer to the ARM pseudocode To: William Kosasih , qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org References: <20250702111954.128563-1-kosasihwilliam4@gmail.com> <20250702111954.128563-2-kosasihwilliam4@gmail.com> Content-Language: en-US From: Richard Henderson In-Reply-To: <20250702111954.128563-2-kosasihwilliam4@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x336.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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: qrWeysf+fs21 On 7/2/25 05:19, William Kosasih wrote: > This patch brings the VLSTM and VLLDM helper functions closer to the ARM > pseudocode by adding MO_ALIGN to the MemOpIdx of the associated store > (`cpu_stl_mmu`) operations and load (`cpu_ldl_mmu`) operations. > > Note that this is not a bug fix: an 8-byte alignment check already exists > and remains in place, enforcing stricter alignment than the 4 bytes > requirement in the individual loads and stores. This change merely makes the > helper implementations closer to the ARM pseudocode. > > That said, as a side effect, the MMU index is now resolved once instead of > on every `cpu_*_data_ra` call, reducing redundant lookups > > Signed-off-by: William Kosasih > --- > target/arm/tcg/m_helper.c | 24 +++++++++++++++--------- > 1 file changed, 15 insertions(+), 9 deletions(-) Reviewed-by: Richard Henderson r~