diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 343a7945346..8dfb94041b9 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;