From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id D6213385802F for ; Mon, 28 Nov 2022 04:44:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D6213385802F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 5FA66300089; Mon, 28 Nov 2022 04:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1669610655; bh=qJef31EYBv3kk2BeFCjhXOpP9jMnQ3/rB8hh0u3Iupc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=BVASvUNHXqiQ2v5VNhoLXEMenYlJlpqbEZ30pWsgwEZ+020VnmbCKq2Vnxh0l9ofm yyBEz12/C9WEplAK3qe+XEhAsZ6MMtZsDkwLkfPazf3gufpi8FwIkixTWOmUHRqTkw 4NEPpzPkPfygip5mC2+KG3U8dbSdrbnmTE6FRwHc= From: Tsukasa OI To: Tsukasa OI , Nelson Chu , Kito Cheng , Palmer Dabbelt Cc: binutils@sourceware.org Subject: [PATCH v2 01/11] opcodes/riscv-dis.c: More tidying Date: Mon, 28 Nov 2022 04:43:36 +0000 Message-Id: <5965a4d1d20a33accd4a9872f87da9e0fd6c1747.1669610611.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,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: From: Tsukasa OI This is a general tidying commit. opcodes/ChangeLog: * riscv-dis.c (struct riscv_private_data) Add summary. Make length of hi_addr more meaningful. --- opcodes/riscv-dis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 0e1f3b4610aa..768b44ee6003 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -52,11 +52,12 @@ static riscv_parse_subset_t riscv_rps_dis = false, /* check_unknown_prefixed_ext. */ }; +/* Private data structure for the RISC-V disassembler. */ struct riscv_private_data { bfd_vma gp; bfd_vma print_addr; - bfd_vma hi_addr[OP_MASK_RD + 1]; + bfd_vma hi_addr[NGPR]; bool to_print_addr; bool has_gp; }; -- 2.38.1