diff options
Diffstat (limited to 'gdb/features/riscv/64bit-cpu.c')
-rw-r--r-- | gdb/features/riscv/64bit-cpu.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gdb/features/riscv/64bit-cpu.c b/gdb/features/riscv/64bit-cpu.c new file mode 100644 index 0000000..9100898 --- /dev/null +++ b/gdb/features/riscv/64bit-cpu.c @@ -0,0 +1,46 @@ +/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: + Original: 64bit-cpu.xml */ + +#include "common/tdesc.h" + +static int +create_feature_riscv_64bit_cpu (struct target_desc *result, long regnum) +{ + struct tdesc_feature *feature; + + feature = tdesc_create_feature (result, "org.gnu.gdb.riscv.cpu"); + tdesc_create_reg (feature, "zero", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "ra", regnum++, 1, NULL, 64, "code_ptr"); + tdesc_create_reg (feature, "sp", regnum++, 1, NULL, 64, "data_ptr"); + tdesc_create_reg (feature, "gp", regnum++, 1, NULL, 64, "data_ptr"); + tdesc_create_reg (feature, "tp", regnum++, 1, NULL, 64, "data_ptr"); + tdesc_create_reg (feature, "t0", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t1", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t2", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "fp", regnum++, 1, NULL, 64, "data_ptr"); + tdesc_create_reg (feature, "s1", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a0", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a1", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a2", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a3", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a4", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a5", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a6", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "a7", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s2", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s3", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s4", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s5", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s6", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s7", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s8", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s9", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s10", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "s11", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t3", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t4", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t5", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "t6", regnum++, 1, NULL, 64, "int"); + tdesc_create_reg (feature, "pc", regnum++, 1, NULL, 64, "code_ptr"); + return regnum; +} |