From nobody Thu Nov 28 08:48:10 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=1693844240; cv=none; d=zohomail.com; s=zohoarc; b=PASSPuDVavLu1D7F5GQgw/2exKyZytiqcypNcbRPbMC7dNtzlCMa5xg62PqaXnWbqpky411ESb0gav7RlQ/Yw8He+DcRWyGM+8IlJo+4MjEnErQ0wTlZqRskZ9sbF1Jp1IMe7ThSyObLnZZ0hsEMmc3a41JZXbqdC/ysnv/c9qs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693844240; h=Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=VjDY4c8F9rfD2zVHTmHxX9NTugubDyKQYFuZQKiivIc=; b=Igy9/h7i57RZVPfrL7/CLvl+5OCp6R91XvbaSxa++bcDK7Muo0wIOPOjQawEeI+E5i7wXiUw+84hTqaIeW/2lx2+p0T9oGHcBBSEs6PyR+10a95EeTAtXn6g/Uiku124BP2VoG8ixLU8bbN/u5zSF86XyOxLR+6c4q8GwSDuSOc= 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 169384424059891.37416925684317; Mon, 4 Sep 2023 09:17:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdCGE-0002MU-IE; Mon, 04 Sep 2023 12:17:10 -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 1qdCGC-000258-Sj for qemu-devel@nongnu.org; Mon, 04 Sep 2023 12:17:08 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdCGA-0008Nv-AX for qemu-devel@nongnu.org; Mon, 04 Sep 2023 12:17:08 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-307d58b3efbso1244883f8f.0 for ; Mon, 04 Sep 2023 09:17:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id y13-20020adffa4d000000b00317df42e91dsm15022776wrr.4.2023.09.04.09.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 09:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693844224; x=1694449024; 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=VjDY4c8F9rfD2zVHTmHxX9NTugubDyKQYFuZQKiivIc=; b=sxhyFC5NySMRT0YUcoPAOoAJL7PQzm79ahQKRuXiyWmQ1wERSr7XMp2FkwRRMvVjyT shF8t8PFXsZ4abFQa01WrcKkqMHCUjtt23dwkmzswuGvDrL4RpxvBYSsuSELPWmgXrcf qaW4NRGUIi22vsw58z2Z526sjU2IFwJ2HKWVXm0lY/ArUZVx1ZMg0aIUVyCWFfBwaCjK M+305ax7W1B+1AbLjBm9X07QvabzhGEhYACRIHboEs/wtww75DAAZa8wGcxW5AUZxnn2 36QDmK7PaiAZdzO6xPAZ2jLwMTIjWR+r+f8P2FHphMpzEbI1DLQuAg3J8O0g4VQiHSiF JVJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693844224; x=1694449024; 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=VjDY4c8F9rfD2zVHTmHxX9NTugubDyKQYFuZQKiivIc=; b=AmCepfCZbl5lQI7OmwVmR4uKuUY56K3/TDcFXmFeJFxixcer9RASx1RnKWIRD9xXcu Lio9+YSEIC09PXA3gDF8pFeANKJjTBAUuePkM1OAAo1kKawL/7mKri87LMOr37FdI4BB mMblNGNfZ1doSfqJa4aJ+MjZSv7lxKSNVGQWynAIgqPbQnfu1MzEMWGNLiu034s2dzmT 8biKmcQ4OXjRv0iHnFVB0vAqzB9G2ctsF2xMMzi81+n6CCcCjPwoktzcoYkgg5g9YB0r gWrVurNRgwnignRcyJM3IojRORNBqQnq72resROUBpTo1Abbuz6Q3MEhvAAiIjjqgAxo hswg== X-Gm-Message-State: AOJu0YxhGe9hWLcrlvtkjN2pfc6dWjO19tzlDUwAVpADwu6yxI3YRBLU m25bveIp+9qDF+QICqLpBEmK/tOIOWRCDHGovY8= X-Google-Smtp-Source: AGHT+IGR/LR4zd17PqC2mkySokxZq1+Z7/KORf4jLLx55z5kuZ8eXDAOcxxexEsX1y2+GHNEnODDsw== X-Received: by 2002:adf:ebcd:0:b0:313:eaf5:515 with SMTP id v13-20020adfebcd000000b00313eaf50515mr7184092wrn.6.1693844224240; Mon, 04 Sep 2023 09:17:04 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH] docs/devel/loads-stores: Fix git grep regexes Date: Mon, 4 Sep 2023 17:17:03 +0100 Message-Id: <20230904161703.3996734-1-peter.maydell@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=2a00:1450:4864:20::435; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x435.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1693844242807100003 Content-Type: text/plain; charset="utf-8" The loads-and-stores documentation includes git grep regexes to find occurrences of the various functions. Some of these regexes have errors, typically failing to escape the '?', '(' and ')' when they should be metacharacters (since these are POSIX basic REs). We also weren't consistent about whether to have a ':' on the end of the line introducing the list of regexes in each section. Fix the errors. The following shell rune will complain about any REs in the file which don't have any matches in the codebase: for re in $(sed -ne 's/ - ``\(\\<.*\)``/\1/p' docs/devel/loads-stores.rst)= ; do git grep -q "$re" || echo "no matches for re $re"; done Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- docs/devel/loads-stores.rst | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/devel/loads-stores.rst b/docs/devel/loads-stores.rst index dab6dfa0acc..ec627aa9c06 100644 --- a/docs/devel/loads-stores.rst +++ b/docs/devel/loads-stores.rst @@ -63,12 +63,12 @@ which stores ``val`` to ``ptr`` as an ``{endian}`` orde= r value of size ``sz`` bytes. =20 =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` - ``\`` - - ``\`` - - ``\`` + - ``\`` + - ``\`` =20 ``cpu_{ld,st}*_mmu`` ~~~~~~~~~~~~~~~~~~~~ @@ -121,8 +121,8 @@ store: ``cpu_st{size}{end}_mmu(env, ptr, val, oi, retad= dr)`` - ``_le`` : little endian =20 Regexes for git grep: - - ``\`` - - ``\`` + - ``\`` + - ``\`` =20 =20 ``cpu_{ld,st}*_mmuidx_ra`` @@ -155,8 +155,8 @@ store: ``cpu_st{size}{end}_mmuidx_ra(env, ptr, val, mmu= idx, retaddr)`` - ``_le`` : little endian =20 Regexes for git grep: - - ``\`` - - ``\`` + - ``\`` + - ``\`` =20 ``cpu_{ld,st}*_data_ra`` ~~~~~~~~~~~~~~~~~~~~~~~~ @@ -193,8 +193,8 @@ store: ``cpu_st{size}{end}_data_ra(env, ptr, val, ra)`` - ``_le`` : little endian =20 Regexes for git grep: - - ``\`` - - ``\`` + - ``\`` + - ``\`` =20 ``cpu_{ld,st}*_data`` ~~~~~~~~~~~~~~~~~~~~~ @@ -231,9 +231,9 @@ store: ``cpu_st{size}{end}_data(env, ptr, val)`` - ``_be`` : big endian - ``_le`` : little endian =20 -Regexes for git grep - - ``\`` - - ``\`` +Regexes for git grep: + - ``\`` + - ``\`` =20 ``cpu_ld*_code`` ~~~~~~~~~~~~~~~~ @@ -296,7 +296,7 @@ swap: ``translator_ld{sign}{size}_swap(env, ptr, swap)`` - ``l`` : 32 bits - ``q`` : 64 bits =20 -Regexes for git grep +Regexes for git grep: - ``\`` =20 ``helper_{ld,st}*_mmu`` @@ -325,7 +325,7 @@ store: ``helper_{size}_mmu(env, addr, val, opindex, ret= addr)`` - ``l`` : 32 bits - ``q`` : 64 bits =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` =20 @@ -382,7 +382,7 @@ succeeded using a MemTxResult return code. =20 The ``_{endian}`` suffix is omitted for byte accesses. =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` - ``\`` @@ -400,7 +400,7 @@ Note that portions of the write which attempt to write = data to a device will be silently ignored -- only real RAM and ROM will be written to. =20 -Regexes for git grep +Regexes for git grep: - ``address_space_write_rom`` =20 ``{ld,st}*_phys`` @@ -438,7 +438,7 @@ device doing the access has no way to report such an er= ror. =20 The ``_{endian}_`` infix is omitted for byte accesses. =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` =20 @@ -462,7 +462,7 @@ For new code they are better avoided: =20 ``cpu_physical_memory_rw`` =20 -Regexes for git grep +Regexes for git grep: - ``\`` =20 ``cpu_memory_rw_debug`` @@ -497,7 +497,7 @@ make sure our existing code is doing things correctly. =20 ``dma_memory_rw`` =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` - ``\`` @@ -538,7 +538,7 @@ correct address space for that device. =20 The ``_{endian}_`` infix is omitted for byte accesses. =20 -Regexes for git grep +Regexes for git grep: - ``\`` - ``\`` - ``\`` --=20 2.34.1