summaryrefslogtreecommitdiff
path: root/gdb/features/riscv/32bit-fpu.c
blob: d92407fb9e06df0717c227157eac0cebd3d793fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
  Original: 32bit-fpu.xml */

#include "gdbsupport/tdesc.h"

static int
create_feature_riscv_32bit_fpu (struct target_desc *result, long regnum)
{
  struct tdesc_feature *feature;

  feature = tdesc_create_feature (result, "org.gnu.gdb.riscv.fpu");
  regnum = 33;
  tdesc_create_reg (feature, "ft0", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft1", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft2", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft3", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft4", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft5", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft6", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft7", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs0", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs1", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa0", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa1", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa2", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa3", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa4", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa5", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa6", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fa7", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs2", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs3", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs4", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs5", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs6", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs7", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs8", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs9", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs10", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "fs11", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft8", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft9", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft10", regnum++, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "ft11", regnum++, 1, NULL, 32, "ieee_single");
  regnum = 66;
  tdesc_create_reg (feature, "fflags", regnum++, 1, NULL, 32, "int");
  tdesc_create_reg (feature, "frm", regnum++, 1, NULL, 32, "int");
  tdesc_create_reg (feature, "fcsr", regnum++, 1, NULL, 32, "int");
  return regnum;
}