aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch/riscv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/arch/riscv.c')
-rw-r--r--gdb/arch/riscv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/arch/riscv.c b/gdb/arch/riscv.c
index 8fbcad1..85d60a3 100644
--- a/gdb/arch/riscv.c
+++ b/gdb/arch/riscv.c
@@ -84,6 +84,12 @@ riscv_create_target_description (const struct riscv_gdbarch_features features)
else if (features.flen == 8)
regnum = create_feature_riscv_64bit_fpu (tdesc.get (), regnum);
+ /* Currently GDB only supports vector features coming from remote
+ targets. We don't support creating vector features on native targets
+ (yet). */
+ if (features.vlen != 0)
+ error (_("unable to create vector feature"));
+
return tdesc;
}