Skip to content

Commit

Permalink
opcodes/riscv-dis.c: Make XLEN variable static
Browse files Browse the repository at this point in the history
Before changing the core disassembler, we take care of minor code clarity
issues and improve readability.

Since xlen variable is not (and should not) used outside riscv-dis.c,
this commit makes this variable static.

opcodes/ChangeLog:

	* riscv-dis.c (xlen): Make this variable static.
  • Loading branch information
a4lg committed Oct 14, 2022
1 parent 354c1c0 commit 3009ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opcodes/riscv-dis.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <ctype.h>

/* Current XLEN for the disassembler. */
unsigned xlen = 0;
static unsigned xlen = 0;

/* Default ISA specification version (constant as of now). */
static enum riscv_spec_class default_isa_spec = ISA_SPEC_CLASS_DRAFT - 1;
Expand Down

0 comments on commit 3009ffe

Please sign in to comment.