Skip to content

Commit

Permalink
RISC-V: Make some disassembler variables private
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a4lg committed Jul 19, 2022
1 parent d3ad6b4 commit 39fda0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opcodes/riscv-dis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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;
Expand Down

0 comments on commit 39fda0b

Please sign in to comment.