From patchwork Thu Feb 29 14:05:57 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: 776896 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp837035wrn; Thu, 29 Feb 2024 06:06:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUuKg+nKK1t5gpH3pcdltYMzUk47cHsZEx/bW1p6pFwy4u9nFHEIXz4aFONBcrwNEWKaD7tOMxd/3q9naHAWHxL X-Google-Smtp-Source: AGHT+IH1+10Ke5cIEPE9moDTrTbHPQ7nvr65lREHzBwL22JciVc3Jy8qgi6Q/xhMTGrQnwALcj2o X-Received: by 2002:a05:622a:548:b0:42e:8a38:2d74 with SMTP id m8-20020a05622a054800b0042e8a382d74mr2386266qtx.37.1709215618168; Thu, 29 Feb 2024 06:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709215618; cv=none; d=google.com; s=arc-20160816; b=hKKTpf4UOS8TOFIT50zvTZ/rAJBnEG8felrTvXx7yP6u09VCePmq1/HzmCzs5PIg7b nkgQRnUDKZ7ABiI8W8UEk+aL2zn0slH4OvS/h7LFNWmubgiyhwLnTURsONfpcRtWU43V phV+vvacbb4RMWHGpgr56angZKiijDf6s3bAVyYTgnKCQlAQigjzgn52FLbTiBR7bW1O s/3mo6y7r3R9bEH6OhFGmOGW+STbyOLLIEl5nwcBboIcUo8XPP3OSVnVTMoUmBh8Rw0K az8bHNuzODCnsgtGDJ2KAWbTPmW5C1va9G3wJgdsX7iThimm3FFlYYRHU5gNQnILxE+K PZyQ== 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=WoVosFwQaEZl4XUftl7Ubl1ydaYzG5CY3CcyjZ9HpZc=; fh=OMMbDy/vaHhJu0vH6+b4Kpb+BOXgoDYkxnV/deXBpmU=; b=gxBscSL1YWfabxJrgc7cl5c5zyXje63iXMA6efmqc/4uWPkBz2XE6R+Q1o0Ans3sSi 9bgjeVHh69fcEnilnfv3K07e8r8SZVykGJp0eEvUWzvlb2Fud4I9fWxBj+xPZ/ffDjnf k3xiPor/Bt7VC7yISi5XT/FXedPi3nkoUIMp3mVlS1Skt6RfalYudyILmEHaSXL10bYE ksmJ+pq2x7xIl7z/U1VDR2te3ovwR/CQhHWdpEL/wSo2n7kHFpdYM9hAcvFmZZk/QIBK miekQlNCNSWnaHdgJmLf0QqLJslQLRqTSwqtMeGCYvnm4z+Nm4STJh+560pq3Jzqzrl3 9a/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxMDL354; 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 f15-20020ac85d0f000000b0042ebe85ee0dsi791169qtx.589.2024.02.29.06.06.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Feb 2024 06:06:58 -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=MxMDL354; 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 1rfh38-0004cR-16; Thu, 29 Feb 2024 09:06:14 -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 1rfh36-0004YT-9w for qemu-devel@nongnu.org; Thu, 29 Feb 2024 09:06:12 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfh31-0008IQ-RN for qemu-devel@nongnu.org; Thu, 29 Feb 2024 09:06:12 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-33e17fc5aceso25443f8f.0 for ; Thu, 29 Feb 2024 06:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709215566; x=1709820366; 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=WoVosFwQaEZl4XUftl7Ubl1ydaYzG5CY3CcyjZ9HpZc=; b=MxMDL354baHkdQadGlQoNrlbOQPPTSgatQcljW0vgZzQfCRcAApMVkJzgyaQwuPAim ddAVTFqEhihiUBBf746NrZ81/NKrDH8QwTwsEicsPULvkWxc95fc+ZQlbVV136UZFz8i ARHe1mpKH93VB0IXvTJ0jD6ryQv2oUJi5ENY8adG1WxhHOdF2U+esTHAYLF6f9Q9ShTz Mi26tEBNcGUamTS6HbUzKBAT0QmhfMowB/yF5RfG9z3dWoQdEnqfsBJH3xCd2nk6Out1 Ek3EPpCdMxKJWQaVDUEbw67cV1NSjFBt4qiq0dDGj2WWFa/ccnPkkfBFnmZnsvDRUtTx rYpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709215566; x=1709820366; 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=WoVosFwQaEZl4XUftl7Ubl1ydaYzG5CY3CcyjZ9HpZc=; b=Iv9xPNVYMYDj/m23GgfdBzByjIxJG+fpGmed1LwPtHy6E+X7Oi2L+mC4zmxMVFmKzu ufX3xPJWVHYkOoAvswA7BbYfdyCnUHlqML9VNyYOzFLTYAMNOlghcQcck3vjWIqCZsuf XuwOUhk6nZx4FBOO34lOFWX7R08xArFMROkcZMsdYaLo6BK7rW2o2rw7ghdrivJmMTK3 aTEXIVuKqdsSSxYnmV4r6x36gc69GVm81KPLAc5dVLqrXAN6TT4ShWyHDq0GzaqLp9Mg c3APZoHoDxAnj3XvKpZr1ghByKnIqBrUHRzKtJukpScdSrJ6DXPc1A/8xxrGHvS2KL7t /jww== X-Gm-Message-State: AOJu0Yxx9jc8tzPwTBocn1RvNZPRk2BRfOcl2thZhqZMiMN6cnLvlOsp nRmLLBWZ/IH9Vp9E+bxEqKAVhxkbGI/MdF3ALwcav0Tg2uiOuQRSTpTqes9DwuY= X-Received: by 2002:adf:f643:0:b0:33d:3c0c:ad53 with SMTP id x3-20020adff643000000b0033d3c0cad53mr2131719wrp.30.1709215566032; Thu, 29 Feb 2024 06:06:06 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id bt6-20020a056000080600b0033db9383e70sm1950286wrb.81.2024.02.29.06.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:06:05 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2A2F05F875; Thu, 29 Feb 2024 14:06:05 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Subject: [RFC PATCH] disas/hppa: drop raw opcode dump Date: Thu, 29 Feb 2024 14:05:57 +0000 Message-Id: <20240229140557.1749767-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::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The hppa disassembly is different from the others due to leading with the raw opcode data. This confuses plugins looking for instruction prefixes to match instructions. For plugins like execlog there is another mechanism for getting the instruction byte data. For the sake of consistently just present the instruction assembly code. Signed-off-by: Alex Bennée Acked-by: Helge Deller --- disas/hppa.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/disas/hppa.c b/disas/hppa.c index 22dce9b41bb..dd34cce211b 100644 --- a/disas/hppa.c +++ b/disas/hppa.c @@ -1972,10 +1972,6 @@ print_insn_hppa (bfd_vma memaddr, disassemble_info *info) insn = bfd_getb32 (buffer); - info->fprintf_func(info->stream, " %02x %02x %02x %02x ", - (insn >> 24) & 0xff, (insn >> 16) & 0xff, - (insn >> 8) & 0xff, insn & 0xff); - for (i = 0; i < NUMOPCODES; ++i) { const struct pa_opcode *opcode = &pa_opcodes[i];