[PATCH 01/11] opcodes/riscv-dis.c: More tidying
Tsukasa OI
research_trasio@irq.a4lg.com
Tue Nov 15 04:52:44 GMT 2022
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 3a31647a2f8..ea45a631a25 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.37.2
More information about the Binutils
mailing list