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 22, 2022
1 parent df6ea48 commit e63a864
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 @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e63a864

Please sign in to comment.