Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D196EF3C9AF for ; Tue, 24 Feb 2026 16:54:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vuvfz-0001vE-It; Tue, 24 Feb 2026 11:54:23 -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 1vuvfu-0001op-Pl for qemu-devel@nongnu.org; Tue, 24 Feb 2026 11:54:19 -0500 Received: from rev.ng ([94.130.142.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vuvfs-0003LZ-OB for qemu-devel@nongnu.org; Tue, 24 Feb 2026 11:54:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rev.ng; s=dkim; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive:List-Unsubscribe:List-Unsubscribe-Post: List-Help; bh=+Ryd1ODbZx/ez3J9YtIQBaWQaatNhiPLQc6oVksY4+M=; b=hvgQ7qkmIsAiFQJ YayZaK6vznkX66jkVd8+vNzmxiEZM/ZrtshJJtOsvGGd0TrTCwVrEH7/RxG/O+2CntPMfRYuB/EOr tGSgQ1gllohJaRayMtlI5XMxnQv7z4U4GMwLsyj7fCbDCjvvvL2J6rmq9jBe0jrGJjQJ4N71d5nKT 4I=; Date: Tue, 24 Feb 2026 17:57:51 +0100 To: Taylor Simpson Cc: qemu-devel@nongnu.org, brian.cain@oss.qualcomm.com, matheus.bernardino@oss.qualcomm.com, sid.manning@oss.qualcomm.com, marco.liebel@oss.qualcomm.com, richard.henderson@linaro.org, philmd@linaro.org, ale@rev.ng Subject: Re: [PATCH v3 6/8] Hexagon (target/hexagon) Disassembly of invalid packets Message-ID: References: <20260217212245.95321-1-ltaylorsimpson@gmail.com> <20260217212245.95321-7-ltaylorsimpson@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260217212245.95321-7-ltaylorsimpson@gmail.com> Received-SPF: pass client-ip=94.130.142.21; envelope-from=anjo@rev.ng; helo=rev.ng X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_VALIDITY_RPBL_BLOCKED=0.358, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.659, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Anton Johansson From: Anton Johansson via qemu development Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 17/02/26, Taylor Simpson wrote: > We pass the Hexagon CPU definition to disassemble_hexagon. This allows > decode_packet to know if the opcodes are supported. > > Note that we print valid instructions in a packet when one or more is > invalid. Rather than this > 0x0002128c: 0x1eae4fec { > 0x00021290: 0x1c434c04 > 0x00021294: 0x1e03edf0 } > > We print this > 0x0002128c: 0x1eae4fec { > 0x00021290: 0x1c434c04 V4.w = vadd(V12.w,V3.w) > 0x00021294: 0x1e03edf0 V16 = V13 } > > Co-authored-by: Matheus Tavares Bernardino > Co-authored-by: Brian Cain > Signed-off-by: Taylor Simpson > --- > target/hexagon/cpu_bits.h | 4 +++- > target/hexagon/printinsn.h | 3 ++- > disas/hexagon.c | 3 ++- > target/hexagon/cpu.c | 2 ++ > target/hexagon/decode.c | 25 +++++++++++++++++++++---- > target/hexagon/printinsn.c | 9 +++++++-- > 6 files changed, 37 insertions(+), 9 deletions(-) Reviewed-by: Anton Johansson