aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/arc/aux-arcompact.c
blob: d8e8c74e639e88b84cec81d7386363905b984dbc (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
/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
  Original: aux-arcompact.xml */

#include "gdbsupport/tdesc.h"

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

  feature = tdesc_create_feature (result, "org.gnu.gdb.arc.aux-minimal");
  tdesc_type_with_fields *type_with_fields;
  type_with_fields = tdesc_create_flags (feature, "status32_type", 4);
  tdesc_add_flag (type_with_fields, 0, "H");
  tdesc_add_bitfield (type_with_fields, "E", 1, 2);
  tdesc_add_bitfield (type_with_fields, "A", 3, 4);
  tdesc_add_flag (type_with_fields, 5, "AE");
  tdesc_add_flag (type_with_fields, 6, "DE");
  tdesc_add_flag (type_with_fields, 7, "U");
  tdesc_add_flag (type_with_fields, 8, "V");
  tdesc_add_flag (type_with_fields, 9, "C");
  tdesc_add_flag (type_with_fields, 10, "N");
  tdesc_add_flag (type_with_fields, 11, "Z");
  tdesc_add_flag (type_with_fields, 12, "L");
  tdesc_add_flag (type_with_fields, 13, "R");
  tdesc_add_flag (type_with_fields, 14, "SE");

  tdesc_create_reg (feature, "pc", regnum++, 1, NULL, 32, "code_ptr");
  tdesc_create_reg (feature, "status32", regnum++, 1, NULL, 32, "status32_type");
  return regnum;
}