aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/sparc/sparc32-solaris.c
blob: 2f13292b72b154fc29a631971f66f2b90c1d1be8 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
  Original: sparc32-solaris.xml */

#include "defs.h"
#include "osabi.h"
#include "target-descriptions.h"

struct target_desc *tdesc_sparc32_solaris;
static void
initialize_tdesc_sparc32_solaris (void)
{
  struct target_desc *result = allocate_target_description ();
  struct tdesc_feature *feature;

  set_tdesc_architecture (result, bfd_scan_arch ("sparc"));

  set_tdesc_osabi (result, osabi_from_tdesc_string ("Solaris"));

  feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cpu");
  tdesc_create_reg (feature, "g0", 0, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g1", 1, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g2", 2, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g3", 3, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g4", 4, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g5", 5, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g6", 6, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g7", 7, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o0", 8, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o1", 9, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o2", 10, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o3", 11, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o4", 12, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o5", 13, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "sp", 14, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o7", 15, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l0", 16, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l1", 17, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l2", 18, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l3", 19, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l4", 20, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l5", 21, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l6", 22, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l7", 23, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i0", 24, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i1", 25, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i2", 26, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i3", 27, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i4", 28, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i5", 29, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "fp", 30, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i7", 31, 1, NULL, 32, "uint32");

  feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cp0");
  tdesc_create_reg (feature, "y", 64, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "psr", 65, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "wim", 66, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "tbr", 67, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "pc", 68, 1, NULL, 32, "code_ptr");
  tdesc_create_reg (feature, "npc", 69, 1, NULL, 32, "code_ptr");
  tdesc_create_reg (feature, "fsr", 70, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "csr", 71, 1, NULL, 32, "uint32");

  feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.fpu");
  tdesc_create_reg (feature, "f0", 32, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f1", 33, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f2", 34, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f3", 35, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f4", 36, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f5", 37, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f6", 38, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f7", 39, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f8", 40, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f9", 41, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f10", 42, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f11", 43, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f12", 44, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f13", 45, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f14", 46, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f15", 47, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f16", 48, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f17", 49, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f18", 50, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f19", 51, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f20", 52, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f21", 53, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f22", 54, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f23", 55, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f24", 56, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f25", 57, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f26", 58, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f27", 59, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f28", 60, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f29", 61, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f30", 62, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f31", 63, 1, NULL, 32, "ieee_single");

  tdesc_sparc_solaris = result;
}