From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by sourceware.org (Postfix) with ESMTPS id BEAAA3858D1E for ; Tue, 7 May 2024 02:22:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BEAAA3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BEAAA3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::229 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715048574; cv=none; b=ElV6V/bbCLFIrwJkL+cqXbScreCF9EQJQ2Q9YdhAY2FmZRveaOoqqbDgBE89OrMCdm4VWDUnB2zH5cuTrIx7gmlp0c7W19x6t3en+F2Jy45HFPhG28MuBcKBPeTL4E9TW0ISPNhcAysbN8pwEc0waVYfMitj/cmSjv05+NR8zsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715048574; c=relaxed/simple; bh=fcCh/Gr/Z1jGDSoJEOGJ8Y/RclTItY7og8t6CjUgQ9Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bvfeOQrhUpensaezfqHm2RhyBWsQjh2ACKfC6x9RKm1VX3esyDq8CUWGbkABCSD9tr31HvexddSWp/czJPWFC4TlqfDIffqvkI7/2ntNW+eYhN5EiLh/I8TiZi0dJXp2oTmWCTnutTCI/+yLyctyziRPwgihU1DsvxQkM7SzSr0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3c97a48575eso240354b6e.2 for ; Mon, 06 May 2024 19:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715048572; x=1715653372; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SQ/MGPqC2TZsilITiqbI8A69+DcADKLNoOTCz/HTzcc=; b=jl6zXrGwp61S9Ge61FhRjDEk9FQk147kxtpJWY+81kWlfQuhmy8Ml6HkUz3EqvVluR 0eRjw12Y0KzGEhSfB3b0/CxIOEUco7EMA63UwTR1NhLMJCZJI5uUI2J6NlYS4HoZEswP 8xvC6yFP3UDNxQlIU3mhvHAA1DeUtD6a1n0Uloocxa8DfD/UQyYzYi0okC26Xn/Jdjfo k7Z7rU5qc+cRrB8rJygC15hxpd9NB39kBTptM0YI8ZQ6tuj4yoj0KX/ZiGWXJlq2qjvp PkgmYzWZF3qz8dg1seSFfvylUE5GkXXdlVyBHozQVeTOyDpUZwJuTXFpJpCup511BoiH bDBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715048572; x=1715653372; 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=SQ/MGPqC2TZsilITiqbI8A69+DcADKLNoOTCz/HTzcc=; b=HsFPUxhQr0PPwXyAxEqIXWYkr1ao9MdXeRJGoNdDlH4V5pQWy1GixXGZ088trSfsed 1Gj+M7Z2FpX5YRs8lcaMLWOYvoChfvHwKY8/hMlgdcPJOvjN8aLTWyKQnlCKaLr093q/ LRcmawekMHqungJ6/VqyOL/xH6c5RqZlmYr5m9RuDvR1GI4wDi3LOLhC+50rZY50VYe1 CCOaeWClL3Ogl3aleUyN7P+GWKCVo7RimihUbMOHHVTPPpGdNqkq93dvQQAyzUpT8VxQ lA3nhLijXaOzAl8NmKCklROjLTHQo+JPOwV1z1eWgqdz8e3/uQ9vxILJiFi04LjDBd1j l3+g== X-Gm-Message-State: AOJu0Yx4KBEWMnGYoM/9E1075e448EYKKIqPxsRZB7T9Cliw+nJ3Jm6u 8oGB5AUwttJ0cfosuQPyR7uugMhky6NVe3fMYGlgpQ8+rMyK3LdzYQn/pgzaOXsTDmjYBKYZ6gn p X-Google-Smtp-Source: AGHT+IF9NVuSGcOXfRmQDB4yuGhjCh0Yvz2nOPC0w5kpmkz7qv6/CTlqTElCWaU/+2W9XS06iNBOHQ== X-Received: by 2002:a05:6808:1706:b0:3c9:6e10:b088 with SMTP id bc6-20020a056808170600b003c96e10b088mr5614390oib.25.1715048571950; Mon, 06 May 2024 19:22:51 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:38ad:4156:59df:8141]) by smtp.gmail.com with ESMTPSA id u10-20020aa7838a000000b006f456b23f90sm5236861pfm.31.2024.05.06.19.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 19:22:51 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Cc: Christophe Lyon Subject: [PATCH v2 0/5] Add support for AArch64 MOPS instructions Date: Mon, 6 May 2024 23:22:44 -0300 Message-ID: <20240507022249.554831-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, I'm sending v2 because Christophe made a suggestion for the gdb.arch/aarch64-mops-atomic-inst.exp testcase, so patch 4 incoroporates it. The other patches are unchanged from v1. Here is the original cover letter for convenience: This patch series implements GDB support for the new instructions in AArch64's MOPS feature. Patch 1 has a small overview. What is needed from GDB is recognizing the MOPS sequences of instructions as atomic so that they can be stepped over during instruction single stepping, and also to avoid doing displaced stepping with them. This is done in patch 1. Patch 2 adds support for the new instructions to the record an replay target. The other patches add testcases to test each of the aspects above, plus one testcase to verify the interaction of the MOPS instructions with watchpoints. Tested on Ubuntu 23.10 aarch64-linux-gnu with no regressions, using the Arm FVP emulator as well as QEMU v8.2. Thiago Jung Bauermann (5): gdb/aarch64: Implement software single stepping for MOPS instructions gdb/aarch64: Add record support for MOPS instructions. gdb/testsuite: Add gdb.arch/aarch64-mops-watchpoint.exp gdb/testsuite: Add gdb.arch/aarch64-mops-atomic-inst.exp gdb/testsuite: Add gdb.reverse/aarch64-mops.exp gdb/aarch64-tdep.c | 191 +++++++++++++++++- .../gdb.arch/aarch64-mops-atomic-inst.c | 69 +++++++ .../gdb.arch/aarch64-mops-atomic-inst.exp | 94 +++++++++ .../gdb.arch/aarch64-mops-watchpoint.c | 66 ++++++ .../gdb.arch/aarch64-mops-watchpoint.exp | 79 ++++++++ gdb/testsuite/gdb.reverse/aarch64-mops.c | 71 +++++++ gdb/testsuite/gdb.reverse/aarch64-mops.exp | 171 ++++++++++++++++ gdb/testsuite/lib/gdb.exp | 61 ++++++ 8 files changed, 800 insertions(+), 2 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/aarch64-mops-atomic-inst.c create mode 100644 gdb/testsuite/gdb.arch/aarch64-mops-atomic-inst.exp create mode 100644 gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.c create mode 100644 gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp create mode 100644 gdb/testsuite/gdb.reverse/aarch64-mops.c create mode 100644 gdb/testsuite/gdb.reverse/aarch64-mops.exp base-commit: 84a069db6714ddcf444095ed09dbcd7404834694