From patchwork Mon Mar 4 19:13:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 777784 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c8:0:b0:33e:474f:8c56 with SMTP id p8csp94199wrs; Mon, 4 Mar 2024 11:14:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVcQAYpMMSDKBsMID/PHsjhanKMxk0ZdWm0/v5vDtrX7okEGXDX/C+OiBhqjqH4MzL2NIB36//IZ5apxPyeSbRO X-Google-Smtp-Source: AGHT+IGuN/V/jugRRs/VydS5iMXqTLdVECkmyjDr14IJbw91OjLUOH6KpVke8dIjDhD1QHZtMqO4 X-Received: by 2002:ac8:5e08:0:b0:42e:e2cb:a0b9 with SMTP id h8-20020ac85e08000000b0042ee2cba0b9mr773709qtx.3.1709579655488; Mon, 04 Mar 2024 11:14:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709579655; cv=none; d=google.com; s=arc-20160816; b=SZgisOSEztBYC/016izbIbrE+zc+cfHS9tXfO91MtE11TWZrZULndeucFBGgXlqI0K XTyP/20CDi9GtMVwaR2upCBhfrVsC86wabG7JKY6y5V0umJbLkpSlF5BmuwxcxpXgQJQ HbGJcAKvN3oBnYhyLX+zyXh9KBlWML0/y+G3LFnHX04cqTIkjKLXf3TjWdtGwos8WUd7 q/kQf9Q2Dj9wARmgmO+kk7OUtnXplNNO2OYTWB3NRPNhyVKQeH9W7VjWHrHkQv6W4syI /cu5qCedMkIsgKKXdWMZM1voYDtM+AKY0OFsCw3pJ6YOySEBQnATpi8ijsd1A5OjZQva v3mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=RFv1Gg6gA8Qr+9Dbaf2GkmDesAIrFACbf0XWoLRsE8I=; fh=b/fM3Azt1fJndKkBUw6/kyP4UN6WY/kGpFR2FNJIEXM=; b=BKYjhuJo7oGBmynacLFaMSP3Rf9MfE6LEOAgu0SygERiqIhT5S7BbHJZxPBQj5QlcB Oji/8nakucotsDMIHMX9SH5wA+7cVPknQi97I0HJTiWCGPh4fckRt/K4n9JN7tW+8T9h SrSrx4izw6TGUTMAqMOk74+JvqDy5ca6i91xDPvdEZlwl9twtSJel1KxrsXfY+cd0PVJ 5SeNXIbMdOjiATSL31PtWL/YG0uFUlSLwjGAcEnHlTdY5caOn4lY2AG9N6+9aoUG1nj+ QpR01ZKdwbbOJvce03CK8nXyc5X/3ITYktbxVLtNQju35ITu3iVaU36Wd5UPgCY1qDpy 6hZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J4cn3dx6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u4-20020a05622a198400b0042edef6c029si5438157qtc.327.2024.03.04.11.14.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2024 11:14:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=J4cn3dx6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhDkz-0003Bw-EF; Mon, 04 Mar 2024 14:13:49 -0500 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 1rhDkw-0003Ap-SX for qemu-devel@nongnu.org; Mon, 04 Mar 2024 14:13:47 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhDku-0001by-EN for qemu-devel@nongnu.org; Mon, 04 Mar 2024 14:13:46 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33d36736d4eso3021745f8f.1 for ; Mon, 04 Mar 2024 11:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709579623; x=1710184423; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RFv1Gg6gA8Qr+9Dbaf2GkmDesAIrFACbf0XWoLRsE8I=; b=J4cn3dx6fZAbWYckMf16E2GYMTcGuvzP74DVuBmGGpl3kfefi4IC0EDAOt5hgk4dxh 5I/o9G2zQP2KK6a/ws1Yu/LjVmYIni+XTA50XzqWaoaFA35u9Eht95PahPbRLjMwJ+fm 1fIO0U3LXvUwyDKeR5CibE4yV3WdB5ReDYyP+CGpAXBp2SCGX7vhqtQ97W+jrTFAvVyj sX8DbK1vwAgEXw6LL5HIC1j51izGeGotmhkj+eUCi2yfgHH4p4GpbBcS3OKy0ovhlDWv zwr5uhcUspefzqEPtLxTKUloIHuBvU6r2NZvcLiHSyyilkxSoGIGg2cgvDwNHjaxU7Ye xBrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709579623; x=1710184423; 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=RFv1Gg6gA8Qr+9Dbaf2GkmDesAIrFACbf0XWoLRsE8I=; b=qPPM7mz8CZzWCA4eIfG9lIBJbf6DnOw2fjuuvXdyElo+Js76s0owOnMzqMJZUfCQh0 Q29sBnfiFST5/PSBo34T7M8ntZNKPnooJw3rlGbaQ+VZxfImkexQR11Nl4BKPOB/rtET 3uAcCyOUq2b9HD7vBrtogi/493AVl9/G8vuopI4TQd1g3bONCca4UzoK57WJM3AGjjei tnS/tciz2DpjcWM71isveXEpBw5C21WmXF6+9gdibdjSJDK7P9tuesORvJWjliQK98l9 dahhcmju012hMrBgt5ldpMQ4zKguCH00FpSXc4gzroWDWT3xQjzVsTZ5EfiBQMcTi4k6 O81g== X-Gm-Message-State: AOJu0Yx8EwwsGWj4mPMPmUcDsn4oFaHoFuTQT2/mOMTjA5U82nuf9aO5 MIcUpEYmeETTOMvRylmShb+fmE+K1QOm4ZusekbGUjJq1lIpiE4oVDU4+CpoC5E= X-Received: by 2002:adf:9dc3:0:b0:33e:3ec2:a22f with SMTP id q3-20020adf9dc3000000b0033e3ec2a22fmr2047866wre.42.1709579623041; Mon, 04 Mar 2024 11:13:43 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id bw1-20020a0560001f8100b0033d6bc17d0esm13241010wrb.74.2024.03.04.11.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:13:38 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2382D5F754; Mon, 4 Mar 2024 19:13:37 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alistair Francis , Palmer Dabbelt , Richard Henderson , qemu-riscv@nongnu.org, Song Gao , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 0/4 for 9.0] Clean-up disassembler handling for plugins Date: Mon, 4 Mar 2024 19:13:33 +0000 Message-Id: <20240304191337.3101411-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org I was overly optimistic with my last RFC that HPPA was the only affected architecture by this issue. I've introduced a new flag in disassemble_info and fixed up those arches that include raw bytes by default. It would be nice to get this in for 9.0 Alex. Alex Bennée (4): disas: introduce no_raw_bytes disas/hppa: honour no_raw_bytes target/loongarch: honour no_raw_bytes when disassembling target/riscv: honour no_raw_bytes when disassembling include/disas/dis-asm.h | 7 +++++++ disas/disas.c | 1 + disas/hppa.c | 8 +++++--- disas/riscv.c | 28 +++++++++++++++------------- target/loongarch/disas.c | 13 +++++++++---- 5 files changed, 37 insertions(+), 20 deletions(-)