From 2ca52ad4d18075cfe49572f3d22c16dd35c488d8 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 68aaea61731..2be66a65809 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -39,7 +39,7 @@ static const char *initial_default_arch = "rv64gc"; (as specified by the ELF attributes or `initial_default_arch'). */ static const char *default_arch = NULL; -unsigned xlen = 0; +static unsigned xlen = 0; 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; @@ -64,7 +64,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;