GDB (xrefs)

sparc32-solaris.c
Go to the documentation of this file.
1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
2 Original: sparc32-solaris.xml */
3
4 #include "defs.h"
5 #include "osabi.h"
6 #include "target-descriptions.h"
7
8 struct target_desc *tdesc_sparc32_solaris;
9 static void
10 initialize_tdesc_sparc32_solaris (void)
11 {
12 struct target_desc *result = allocate_target_description ();
13 struct tdesc_feature *feature;
14
15 set_tdesc_architecture (result, bfd_scan_arch ("sparc"));
16
17 set_tdesc_osabi (result, osabi_from_tdesc_string ("Solaris"));
18
19 feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cpu");
20 tdesc_create_reg (feature, "g0", 0, 1, NULL, 32, "uint32");
21 tdesc_create_reg (feature, "g1", 1, 1, NULL, 32, "uint32");
22 tdesc_create_reg (feature, "g2", 2, 1, NULL, 32, "uint32");
23 tdesc_create_reg (feature, "g3", 3, 1, NULL, 32, "uint32");
24 tdesc_create_reg (feature, "g4", 4, 1, NULL, 32, "uint32");
25 tdesc_create_reg (feature, "g5", 5, 1, NULL, 32, "uint32");
26 tdesc_create_reg (feature, "g6", 6, 1, NULL, 32, "uint32");
27 tdesc_create_reg (feature, "g7", 7, 1, NULL, 32, "uint32");
28 tdesc_create_reg (feature, "o0", 8, 1, NULL, 32, "uint32");
29 tdesc_create_reg (feature, "o1", 9, 1, NULL, 32, "uint32");
30 tdesc_create_reg (feature, "o2", 10, 1, NULL, 32, "uint32");
31 tdesc_create_reg (feature, "o3", 11, 1, NULL, 32, "uint32");
32 tdesc_create_reg (feature, "o4", 12, 1, NULL, 32, "uint32");
33 tdesc_create_reg (feature, "o5", 13, 1, NULL, 32, "uint32");
34 tdesc_create_reg (feature, "sp", 14, 1, NULL, 32, "uint32");
35 tdesc_create_reg (feature, "o7", 15, 1, NULL, 32, "uint32");
36 tdesc_create_reg (feature, "l0", 16, 1, NULL, 32, "uint32");
37 tdesc_create_reg (feature, "l1", 17, 1, NULL, 32, "uint32");
38 tdesc_create_reg (feature, "l2", 18, 1, NULL, 32, "uint32");
39 tdesc_create_reg (feature, "l3", 19, 1, NULL, 32, "uint32");
40 tdesc_create_reg (feature, "l4", 20, 1, NULL, 32, "uint32");
41 tdesc_create_reg (feature, "l5", 21, 1, NULL, 32, "uint32");
42 tdesc_create_reg (feature, "l6", 22, 1, NULL, 32, "uint32");
43 tdesc_create_reg (feature, "l7", 23, 1, NULL, 32, "uint32");
44 tdesc_create_reg (feature, "i0", 24, 1, NULL, 32, "uint32");
45 tdesc_create_reg (feature, "i1", 25, 1, NULL, 32, "uint32");
46 tdesc_create_reg (feature, "i2", 26, 1, NULL, 32, "uint32");
47 tdesc_create_reg (feature, "i3", 27, 1, NULL, 32, "uint32");
48 tdesc_create_reg (feature, "i4", 28, 1, NULL, 32, "uint32");
49 tdesc_create_reg (feature, "i5", 29, 1, NULL, 32, "uint32");
50 tdesc_create_reg (feature, "fp", 30, 1, NULL, 32, "uint32");
51 tdesc_create_reg (feature, "i7", 31, 1, NULL, 32, "uint32");
52
53 feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cp0");
54 tdesc_create_reg (feature, "y", 64, 1, NULL, 32, "uint32");
55 tdesc_create_reg (feature, "psr", 65, 1, NULL, 32, "uint32");
56 tdesc_create_reg (feature, "wim", 66, 1, NULL, 32, "uint32");
57 tdesc_create_reg (feature, "tbr", 67, 1, NULL, 32, "uint32");
58 tdesc_create_reg (feature, "pc", 68, 1, NULL, 32, "code_ptr");
59 tdesc_create_reg (feature, "npc", 69, 1, NULL, 32, "code_ptr");
60 tdesc_create_reg (feature, "fsr", 70, 1, NULL, 32, "uint32");
61 tdesc_create_reg (feature, "csr", 71, 1, NULL, 32, "uint32");
62
63 feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.fpu");
64 tdesc_create_reg (feature, "f0", 32, 1, NULL, 32, "ieee_single");
65 tdesc_create_reg (feature, "f1", 33, 1, NULL, 32, "ieee_single");
66 tdesc_create_reg (feature, "f2", 34, 1, NULL, 32, "ieee_single");
67 tdesc_create_reg (feature, "f3", 35, 1, NULL, 32, "ieee_single");
68 tdesc_create_reg (feature, "f4", 36, 1, NULL, 32, "ieee_single");
69 tdesc_create_reg (feature, "f5", 37, 1, NULL, 32, "ieee_single");
70 tdesc_create_reg (feature, "f6", 38, 1, NULL, 32, "ieee_single");
71 tdesc_create_reg (feature, "f7", 39, 1, NULL, 32, "ieee_single");
72 tdesc_create_reg (feature, "f8", 40, 1, NULL, 32, "ieee_single");
73 tdesc_create_reg (feature, "f9", 41, 1, NULL, 32, "ieee_single");
74 tdesc_create_reg (feature, "f10", 42, 1, NULL, 32, "ieee_single");
75 tdesc_create_reg (feature, "f11", 43, 1, NULL, 32, "ieee_single");
76 tdesc_create_reg (feature, "f12", 44, 1, NULL, 32, "ieee_single");
77 tdesc_create_reg (feature, "f13", 45, 1, NULL, 32, "ieee_single");
78 tdesc_create_reg (feature, "f14", 46, 1, NULL, 32, "ieee_single");
79 tdesc_create_reg (feature, "f15", 47, 1, NULL, 32, "ieee_single");
80 tdesc_create_reg (feature, "f16", 48, 1, NULL, 32, "ieee_single");
81 tdesc_create_reg (feature, "f17", 49, 1, NULL, 32, "ieee_single");
82 tdesc_create_reg (feature, "f18", 50, 1, NULL, 32, "ieee_single");
83 tdesc_create_reg (feature, "f19", 51, 1, NULL, 32, "ieee_single");
84 tdesc_create_reg (feature, "f20", 52, 1, NULL, 32, "ieee_single");
85 tdesc_create_reg (feature, "f21", 53, 1, NULL, 32, "ieee_single");
86 tdesc_create_reg (feature, "f22", 54, 1, NULL, 32, "ieee_single");
87 tdesc_create_reg (feature, "f23", 55, 1, NULL, 32, "ieee_single");
88 tdesc_create_reg (feature, "f24", 56, 1, NULL, 32, "ieee_single");
89 tdesc_create_reg (feature, "f25", 57, 1, NULL, 32, "ieee_single");
90 tdesc_create_reg (feature, "f26", 58, 1, NULL, 32, "ieee_single");
91 tdesc_create_reg (feature, "f27", 59, 1, NULL, 32, "ieee_single");
92 tdesc_create_reg (feature, "f28", 60, 1, NULL, 32, "ieee_single");
93 tdesc_create_reg (feature, "f29", 61, 1, NULL, 32, "ieee_single");
94 tdesc_create_reg (feature, "f30", 62, 1, NULL, 32, "ieee_single");
95 tdesc_create_reg (feature, "f31", 63, 1, NULL, 32, "ieee_single");
96
97 tdesc_sparc_solaris = result;
98 }
set_tdesc_osabi
void set_tdesc_osabi(target_desc *target_desc, const char *name)
Definition: target-descriptions.c:1684
set_tdesc_architecture
void set_tdesc_architecture(target_desc *target_desc, const char *name)
Definition: target-descriptions.c:1668
defs.h
tdesc_create_reg
void tdesc_create_reg(struct tdesc_feature *feature, const char *name, int regnum, int save_restore, const char *group, int bitsize, const char *type)
Definition: target-descriptions.c:1448
osabi_from_tdesc_string
enum gdb_osabi osabi_from_tdesc_string(const char *name)
Definition: osabi.c:110
osabi.h
tdesc_sparc32_solaris
struct target_desc * tdesc_sparc32_solaris
Definition: sparc32-solaris.c:8
tdesc_feature
Definition: target-descriptions.c:516
target_desc
Definition: target-descriptions.c:591
tdesc_create_feature
struct tdesc_feature * tdesc_create_feature(struct target_desc *tdesc, const char *name, const char *xml=nullptr)
Definition: target-descriptions.c:1602
target-descriptions.h
allocate_target_description
target_desc * allocate_target_description(void)
Definition: target-descriptions.c:1613
initialize_tdesc_sparc32_solaris
static void initialize_tdesc_sparc32_solaris(void)
Definition: sparc32-solaris.c:10