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.h | |
parent | Add support for DW_OP_GNU_variable_value to readelf (diff) | |
download | binutils-gdb-411baa470ef354e50b488c0c736ac7af8d856ded.tar.gz binutils-gdb-411baa470ef354e50b488c0c736ac7af8d856ded.tar.bz2 binutils-gdb-411baa470ef354e50b488c0c736ac7af8d856ded.zip |
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.h')
-rw-r--r-- | gdb/riscv-tdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/riscv-tdep.h b/gdb/riscv-tdep.h index 4fc05976ba8..b35266daf74 100644 --- a/gdb/riscv-tdep.h +++ b/gdb/riscv-tdep.h @@ -76,4 +76,7 @@ struct gdbarch_tdep unsigned core_features; }; +/* Return the width in bytes of the general purpose registers for GDBARCH. */ +extern int riscv_isa_xlen (struct gdbarch *gdbarch); + #endif /* RISCV_TDEP_H */ |