/* GNU/Linux/RISC-V native target description support for GDB.
- Copyright (C) 2020 Free Software Foundation, Inc.
+ Copyright (C) 2020-2021 Free Software Foundation, Inc.
This file is part of GDB.
# define NFPREG 33
#endif
-/* Determine XLEN and FLEN and return a corresponding target description. */
+/* See nat/riscv-linux-tdesc.h. */
-const struct target_desc *
-riscv_linux_read_description (int tid)
+struct riscv_gdbarch_features
+riscv_linux_read_features (int tid)
{
struct riscv_gdbarch_features features;
elf_fpregset_t regs;
break;
}
- return riscv_create_target_description (features);
+ return features;
}