From nobody Mon Nov 25 05:55:08 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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1717004208; cv=none; d=zohomail.com; s=zohoarc; b=AaM9GjePDEsK0RqpQmGo8jJuOOqzcIH/a/ckwxrwVFsuWD2iIzetgoAwvEpZXLDg/IJwZcFHcwF52p7+i//IaWBe5YSgfKoTXhdc3KHAiaumnxufX0ms3Xmbowk0R6jNDI3eCE2CCLmb/DdvSrwbYdZyZnO9c3F8rIJ8jBSvC8k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717004208; h=Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=I/+lHjJMmybcT4W+784daRuxyy90MIVVzPTYXumJvT4=; b=crzi31RFqu7bklkF4r6RAq+DbHAT/efqnMQ1KIebWhd/EWAwECEn9VmO1MkLQy6Fc0oKvHy2EISCyh1IMh/dxNN1HdSS7uJXzsK7xoM5OPq2ddxetuG0Tl4ihP8VRpQ+0Jt8LQlcalvNRmNvHB83/NA+z0tyMDkjT/oSAdaU16c= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1717004208480662.4109381042251; Wed, 29 May 2024 10:36:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCNDz-0001eG-NY; Wed, 29 May 2024 13:36:31 -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 1sCNDy-0001e0-3B for qemu-devel@nongnu.org; Wed, 29 May 2024 13:36:30 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCNDw-0001dT-HZ for qemu-devel@nongnu.org; Wed, 29 May 2024 13:36:29 -0400 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-681907af6a8so1879623a12.1 for ; Wed, 29 May 2024 10:36:28 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c967cd2sm101704155ad.166.2024.05.29.10.36.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 10:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717004187; x=1717608987; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=I/+lHjJMmybcT4W+784daRuxyy90MIVVzPTYXumJvT4=; b=vPrdVxp40kBr5qqN+yiY+CeWr0a6AvbPLDiZkxHcuNyAENT1+uz6/ySUrEKkU7itDt A14XeSV85EwfEVVCjHdLxvaFuRQNDUbHB7TkLUgnL/dVCXSOzOUY6Za8fQ/7uovix1Mv rFw7oQKdOR/nLg6MjMxm2zWOpuTIEeS9qAKP+tpM1wg9bq85peMR8xlRFlnmuYJJj7/+ BlkDEj65VlnIgqWTXViPxKQ+ix6L3FVlGIm0SqEKdEX+JJghOjaPzGpn8pMqtNPC0wQ9 Njd6fDpX0ZVn6hGb+XO6xUWj4U2NG2acRWfdfgAvf+DWr1AN0RJj/eh/KgNQqu7sDxRV 4c8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717004187; x=1717608987; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I/+lHjJMmybcT4W+784daRuxyy90MIVVzPTYXumJvT4=; b=LKUAeW7iUmWAcAx6zzABubNe9UZv+/bbOQ0vn7XA4NaMCeh/k1uXk0K86y9zaDnH7s E+iaaWaNumHRDzy5nrPOXxHDLFO+Kyj2t9uHmdJhnNMEiWL+jxdR3Wq8cWhpl45MxUwm VRPGPLFc5z68bP8R9JnsUVvS+WckqO+Vt8ROII3LnMnwC77I/GGOfIWQ0uhW0skEJ45R N4EAt+jzmE4NPlkAffZhyyW2E9yMSLxyG2n/DvPqkDHNNTbOTw5nnhTxbeVV0zwf/Ge9 1/GDtgbq4Nkp/eAA6pSf7BGH+iaB0UB/RyI7ZGR43zXQKuEsQBbttoUQflX25hlBh1s/ DUew== X-Gm-Message-State: AOJu0YyEOxxIXKh8MPf8AYklP1zh8FY42gGKzw49yvWBT6dTr9FJRSGc ImImf8Z6EiUnbhIO8GjoI3/KPtG7LCS1NRKvbESy49J+Kwbf4fASR8t5/l/Jw4Lh0DD+htw9tsA 6 X-Google-Smtp-Source: AGHT+IG2j3gWmRqc3HpvFrzJzHRcptX93sEfRlMT4tCrKkxirTfWzZmfINxheTAX2yskbOmSTLGEgQ== X-Received: by 2002:a17:902:ce84:b0:1f4:aa72:1c7 with SMTP id d9443c01a7336-1f4aa72038fmr100468815ad.26.1717004186838; Wed, 29 May 2024 10:36:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH RISU] risugen/arm: Refine prefetch and memory hintspace patterns Date: Wed, 29 May 2024 10:36:25 -0700 Message-Id: <20240529173625.800102-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 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::535; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x535.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1717004210338100003 Content-Type: text/plain; charset="utf-8" Avoid prefetch patterns that are UNPREDICTABLE. Signed-off-by: Richard Henderson --- thumb.risu | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/thumb.risu b/thumb.risu index 357b791..6a05bf2 100644 --- a/thumb.risu +++ b/thumb.risu @@ -33,7 +33,20 @@ SMMUL T1 11111 0110 101 rn:4 1111 rd:4 000 r rm:4 # preload and memory hint space (in the byte and halfword # load space, where Rt =3D=3D 15). # The constraint is to avoid UNPREDICTABLE space -HINTSPACE T1 111 1100 op1:2 0 z 1 y:4 1111 op2:6 any:6 { ($y =3D=3D 15) ||= (($op1 & 1) !=3D 0) || !((($op2 & 0x24) =3D=3D 0x24) || (($op2 & 0x3c) =3D= =3D 0x38)) ; } +PLD_pi TI 1111 1000 10 w 1 rn:4 1111 imm:12 { $rn !=3D 0= xf; } +PLD_ni TI 1111 1000 00 w 1 rn:4 1111 1100 imm:8 { $rn !=3D 0= xf; } +PLD_li TI 1111 1000 u 00 1 1111 1111 imm:12 +PLD_rr TI 1111 1000 00 w 1 rn:4 1111 000000 imm:2 rm:4 \ + { $rn !=3D 0xf && $rm !=3D 0xf; } +PLI_pi TI 1111 1001 1 00 1 rn:4 1111 imm:12 { $rn !=3D 0= xf; } +PLI_ni TI 1111 1001 0 00 1 rn:4 1111 1100 imm:8 { $rn !=3D 0= xf; } +PLI_li TI 1111 1001 u 00 1 1111 1111 imm:12 +PLI_rr TI 1111 1001 0 00 1 rn:4 1111 000000 imm:2 rm:4 \ + { $rn !=3D 0xf && $rm !=3D 0xf; } +HINTSPACE_rr T1 1111 1001 0011 rn:4 1111 000000 imm:2 rm:4 { $rn !=3D 0= xf; } +HINTSPACE_ni T1 1111 1001 0011 rn:4 1111 1100 imm:8 { $rn !=3D 0= xf; } +HINTSPACE_pi T1 1111 1001 1011 rn:4 1111 imm:12 { $rn !=3D 0= xf; } +HINTSPACE_li T1 1111 1001 u 011 1111 1111 imm:12 =20 # VMLAL, VMLSL, VQDMLAL, VQDMLSL, VMULL, VQDMULL # NB that enc T1 is actually VMLA/VMLS only, T2 is VMLAL/VMLSL only --=20 2.34.1