gdb/riscv: Don't use default bfd to define required features
[deliverable/binutils-gdb.git] / gdb / riscv-tdep.c
index bae987cf66ba4b052550a8f822ba515ba85797b4..828beea7e2bc3187a630e2d81900e3f1f544773a 100644 (file)
@@ -2917,18 +2917,6 @@ riscv_features_from_gdbarch_info (const struct gdbarch_info info)
       else if (e_flags & EF_RISCV_FLOAT_ABI_SINGLE)
        features.flen = 4;
     }
-  else
-    {
-      const struct bfd_arch_info *binfo = info.bfd_arch_info;
-
-      if (binfo->bits_per_word == 32)
-       features.xlen = 4;
-      else if (binfo->bits_per_word == 64)
-       features.xlen = 8;
-      else
-       internal_error (__FILE__, __LINE__, _("unknown bits_per_word %d"),
-                       binfo->bits_per_word);
-    }
 
   return features;
 }
This page took 0.023336 seconds and 4 git commands to generate.