1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
2 Original: rv32e-xregs.xml */
4 #include "gdbsupport/tdesc.h"
7 create_feature_riscv_rv32e_xregs (struct target_desc
*result
, long regnum
)
9 struct tdesc_feature
*feature
;
11 feature
= tdesc_create_feature (result
, "org.gnu.gdb.riscv.cpu");
12 tdesc_create_reg (feature
, "zero", regnum
++, 1, NULL
, 32, "int");
13 tdesc_create_reg (feature
, "ra", regnum
++, 1, NULL
, 32, "code_ptr");
14 tdesc_create_reg (feature
, "sp", regnum
++, 1, NULL
, 32, "data_ptr");
15 tdesc_create_reg (feature
, "gp", regnum
++, 1, NULL
, 32, "data_ptr");
16 tdesc_create_reg (feature
, "tp", regnum
++, 1, NULL
, 32, "data_ptr");
17 tdesc_create_reg (feature
, "t0", regnum
++, 1, NULL
, 32, "int");
18 tdesc_create_reg (feature
, "t1", regnum
++, 1, NULL
, 32, "int");
19 tdesc_create_reg (feature
, "t2", regnum
++, 1, NULL
, 32, "int");
20 tdesc_create_reg (feature
, "fp", regnum
++, 1, NULL
, 32, "data_ptr");
21 tdesc_create_reg (feature
, "s1", regnum
++, 1, NULL
, 32, "int");
22 tdesc_create_reg (feature
, "a0", regnum
++, 1, NULL
, 32, "int");
23 tdesc_create_reg (feature
, "a1", regnum
++, 1, NULL
, 32, "int");
24 tdesc_create_reg (feature
, "a2", regnum
++, 1, NULL
, 32, "int");
25 tdesc_create_reg (feature
, "a3", regnum
++, 1, NULL
, 32, "int");
26 tdesc_create_reg (feature
, "a4", regnum
++, 1, NULL
, 32, "int");
27 tdesc_create_reg (feature
, "a5", regnum
++, 1, NULL
, 32, "int");
28 tdesc_create_reg (feature
, "pc", regnum
++, 1, NULL
, 32, "code_ptr");