From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KasTABU9g2pdRS0AWB0awg (envelope-from ) for ; Mon, 17 Aug 2026 12:55:49 -0400 Received: by simark.ca (Postfix, from userid 112) id F12391E0A3; Mon, 17 Aug 2026 12:55:48 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 86A4A1E033 for ; Mon, 17 Aug 2026 12:55:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B16DE4B99F51 for ; Mon, 17 Aug 2026 16:55:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B16DE4B99F51 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by sourceware.org (Postfix) with ESMTP id 8037C4BAE7C6 for ; Mon, 17 Aug 2026 16:53:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8037C4BAE7C6 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8037C4BAE7C6 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786985598; cv=none; b=gju8guocyupO1j9X4ERPb9p/CeFzZbr9RMFgxTWOavELj6qKrJ1VWF7XM4noKqDl+o0XWSlmqIKY60oXUT9Zs0cOT+XcF3ozLbjQTP71QA8FklPOHjG+A2v7PdxX1z+AtuMXE4zVBmPfTn31cpuY2VckTVJYIKVtapFe8d8OB94= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786985598; c=relaxed/simple; bh=5SJhh+U6+ureLGYro7Vbx/dI+FrPnmahX6Xd35S4rJA=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=m7P0vRQGOhxgoDlNiGU7BCxVO7Yqlrz77C7bULuV4GinhlRM0tgEqt9LkpumEQsDXWfGHefsqyG4LOoHyjupCjVW2H4xvqx73EyB10yoLk8YXm6uDpRZZYDsmVukEM2TCXCu8+07Z8szsZ9zMhq6s72sUT++jyECzGn0ItuaqEA= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8037C4BAE7C6 Received: by angie.orcam.me.uk (Postfix, from userid 500) id E779E92009C; Mon, 17 Aug 2026 18:53:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E135792009B; Mon, 17 Aug 2026 17:53:17 +0100 (BST) Date: Mon, 17 Aug 2026 17:53:17 +0100 (BST) From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Jovan Dmitrovic , Djordje Todorovic , Milica Matic , "Maciej W. Rozycki" Subject: [PATCH v2 00/12] MIPS+testsuite: BLEZL stepping fix and associated test infrastructure Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Maciej W. Rozycki" Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi, In the course of further verification additional issues have been found leading to the expansion of this patch set. Minor issues in the original changes have been addressed as well. I have retained the original heading for the purpose of thread sorting in mailer software even though the scope has now expanded beyond just the BLEZL stepping fix. The original cover letter follows, adjusted as appropriate. This patch series is based on a buried bug fix extracted from a change submitted to add MIPSr6 support, most recently posted at , that corrects the handling of single-stepping through the BLEZL MIPS II instruction. This fix begged for test coverage, as indeed does all the MIPS software single-stepping infrastructure, so I have created a bunch of test cases roughly based on the skeleton already provided with said MIPSr6 change, however with extra feature checks to correctly enable individual tests based on the target configuration chosen for the testsuite invocation and target board's compatibility with the ISA required for test execution. This in turn revealed a repeated pattern of feature check code across numerous procedures in testsuite/lib/gdb.exp. Rather than adding a bunch more, I chose to factor out the repeated pattern and build the new feature checks around it. For illustration purposes I have converted the existing `powerpc*-*-*' target feature checks I could verify with my POWER9 test system. Consequently this set of 12 changes has resulted, comprised of the new generic procedure in 01/12, followed by the `powerpc*-*-*' updates in 02/12, and then the MIPS changes in 03/12 through 12/12. At this point MIPS I, MIPS II, MIPS16 and microMIPS, as well as DSP ASE CPU branches are covered at this point for condition evaluation and then the same branches and jumps for stepping through to the delay slot (i.e. no CP1/FPU/MIPS3D branches nor R6 branches or jumps). See individual change descriptions for details. Authorship attributions are on the best knowledge basis. This patch set has been regression-tested with a `powerpc64le-linux-gnu' native configuration using POWER9 hardware and with the `mips-linux-gnu' and `mipsel-linux-gnu' targets, using real MIPS I, MIPS III and MIPS32r2 hardware, the latter with regular MIPS and MIPS16 test configurations. Additional verification was done with QEMU, especially for microMIPS code, on the best effort basis and triggering emulation issues with QEMU itself (and overall instability of the target). Detailed logs were examined for correctness with respect to the tests affected as well. I request approval for the non-MIPS parts of the patch series; I can self-approve the MIPS bits, though obviously I'm happy to address any feedback. Company copyright assignment with FSF is currently still being sorted. Previous iterations: - v1 at: . Maciej