/* Extract a set of required target features out of ABFD. If ABFD is
nullptr then a RISCV_GDBARCH_FEATURES is returned in its default state. */
-static struct riscv_gdbarch_features
+struct riscv_gdbarch_features
riscv_features_from_bfd (const bfd *abfd)
{
struct riscv_gdbarch_features features;
/* The names of the RISC-V target description features. */
extern const char *riscv_feature_name_csr;
+extern struct riscv_gdbarch_features riscv_features_from_bfd (const bfd *abfd);
+
#endif /* RISCV_TDEP_H */