From 411baa470ef354e50b488c0c736ac7af8d856ded Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 8 Aug 2018 10:48:09 -0700 Subject: RISC-V: Make riscv_isa_xlen a global function. This allows the function to be used from riscv OS files, which also need to depend on XLEN size. gdb/ * riscv-tdep.c (riscv_isa_xlen): Drop static. * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. --- gdb/riscv-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/riscv-tdep.c') diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index abcac98..2018189 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -346,7 +346,7 @@ riscv_has_feature (struct gdbarch *gdbarch, char feature) Possible return values are 4, 8, or 16 for RiscV variants RV32, RV64, or RV128. */ -static int +int riscv_isa_xlen (struct gdbarch *gdbarch) { switch (gdbarch_tdep (gdbarch)->abi.fields.base_len) -- cgit v1.1