diff options
author | Jim Wilson <jimw@sifive.com> | 2018-08-08 10:48:09 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-08-08 10:51:40 -0700 |
commit | 411baa470ef354e50b488c0c736ac7af8d856ded (patch) | |
tree | b3720c632a22765c78c1d416c58d90cb97a6a2a3 /gdb/riscv-tdep.c | |
parent | f384a1f025084a4a6370d7ada6dc7198ad3454e4 (diff) | |
download | gdb-411baa470ef354e50b488c0c736ac7af8d856ded.zip gdb-411baa470ef354e50b488c0c736ac7af8d856ded.tar.gz gdb-411baa470ef354e50b488c0c736ac7af8d856ded.tar.bz2 |
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.
Diffstat (limited to 'gdb/riscv-tdep.c')
-rw-r--r-- | gdb/riscv-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |