mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user