From 7856def7476fba2614b242c10b8047cce9f3e8cd Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Wed, 13 Jul 2022 13:00:28 +0900 Subject: [PATCH] RISC-V: Make some disassembler variables private Since they are not supposed to be exposed, this commit makes them private (static). opcodes/ChangeLog: * riscv-dis.c (xlen, last_map_state): Make them private/static. --- opcodes/riscv-dis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index f197f8a8ddb..f7cdf115b69 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -37,7 +37,7 @@ static enum riscv_spec_class default_isa_spec = ISA_SPEC_CLASS_DRAFT - 1; static enum riscv_spec_class default_priv_spec = PRIV_SPEC_CLASS_NONE; static const char *default_arch = NULL; -unsigned xlen = 0; +static unsigned xlen = 0; static riscv_subset_list_t riscv_subsets; static riscv_parse_subset_t riscv_rps_dis = @@ -59,7 +59,7 @@ struct riscv_private_data /* Used for mapping symbols. */ static int last_map_symbol = -1; static bfd_vma last_stop_offset = 0; -enum riscv_seg_mstate last_map_state; +static enum riscv_seg_mstate last_map_state; static const char * const *riscv_gpr_names; static const char * const *riscv_fpr_names;