[PATCH v2 01/11] opcodes/riscv-dis.c: More tidying
Tsukasa OI
research_trasio@irq.a4lg.com
Mon Nov 28 04:43:36 GMT 2022
From: Tsukasa OI <research_trasio@irq.a4lg.com>
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
More information about the Binutils
mailing list