opcodes/riscv-dis.c: Make XLEN variable static

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.
This commit is contained in:
Tsukasa OI
2022-08-27 13:33:51 +00:00
parent 354c1c098a
commit 3009ffe06c

View File

@@ -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;