9#ifdef DECLARE_REGISTER_INFOS_PPC64_STRUCT
14#define GPR_PPC64_OFFSET(regname) (offsetof(GPR_PPC64, regname))
15#define FPR_PPC64_OFFSET(regname) (offsetof(FPR_PPC64, regname) \
17#define VMX_PPC64_OFFSET(regname) (offsetof(VMX_PPC64, regname) \
18 + sizeof(GPR_PPC64) + sizeof(FPR_PPC64))
19#define GPR_PPC64_SIZE(regname) (sizeof(((GPR_PPC64 *)NULL)->regname))
25#define DEFINE_GPR_PPC64(reg, alt, lldb_kind) \
27 #reg, alt, GPR_PPC64_SIZE(reg), GPR_PPC64_OFFSET(reg), lldb::eEncodingUint,\
29 {ppc64_dwarf::dwarf_##reg##_ppc64, \
30 ppc64_dwarf::dwarf_##reg##_ppc64, \
32 LLDB_INVALID_REGNUM, \
33 gpr_##reg##_ppc64 }, \
36#define DEFINE_FPR_PPC64(reg, alt, lldb_kind) \
38#reg, alt, 8, FPR_PPC64_OFFSET(reg), lldb::eEncodingIEEE754, \
40 {ppc64_dwarf::dwarf_##reg##_ppc64, \
41 ppc64_dwarf::dwarf_##reg##_ppc64, lldb_kind, LLDB_INVALID_REGNUM, \
42 fpr_##reg##_ppc64 }, \
45#define DEFINE_VMX_PPC64(reg, lldb_kind) \
47#reg, NULL, 16, VMX_PPC64_OFFSET(reg), lldb::eEncodingVector, \
48 lldb::eFormatVectorOfUInt32, \
49 {ppc64_dwarf::dwarf_##reg##_ppc64, \
50 ppc64_dwarf::dwarf_##reg##_ppc64, lldb_kind, LLDB_INVALID_REGNUM, \
51 vmx_##reg##_ppc64 }, \
58 DEFINE_GPR_PPC64(r0, NULL, LLDB_INVALID_REGNUM) \
59 , DEFINE_GPR_PPC64(r1, NULL, LLDB_REGNUM_GENERIC_SP), \
60 DEFINE_GPR_PPC64(r2, NULL, LLDB_INVALID_REGNUM), \
61 DEFINE_GPR_PPC64(r3, NULL, LLDB_REGNUM_GENERIC_ARG1), \
62 DEFINE_GPR_PPC64(r4, NULL, LLDB_REGNUM_GENERIC_ARG2), \
63 DEFINE_GPR_PPC64(r5, NULL, LLDB_REGNUM_GENERIC_ARG3), \
64 DEFINE_GPR_PPC64(r6, NULL, LLDB_REGNUM_GENERIC_ARG4), \
65 DEFINE_GPR_PPC64(r7, NULL, LLDB_REGNUM_GENERIC_ARG5), \
66 DEFINE_GPR_PPC64(r8, NULL, LLDB_REGNUM_GENERIC_ARG6), \
67 DEFINE_GPR_PPC64(r9, NULL, LLDB_REGNUM_GENERIC_ARG7), \
68 DEFINE_GPR_PPC64(r10, NULL, LLDB_REGNUM_GENERIC_ARG8), \
69 DEFINE_GPR_PPC64(r11, NULL, LLDB_INVALID_REGNUM), \
70 DEFINE_GPR_PPC64(r12, NULL, LLDB_INVALID_REGNUM), \
71 DEFINE_GPR_PPC64(r13, NULL, LLDB_INVALID_REGNUM), \
72 DEFINE_GPR_PPC64(r14, NULL, LLDB_INVALID_REGNUM), \
73 DEFINE_GPR_PPC64(r15, NULL, LLDB_INVALID_REGNUM), \
74 DEFINE_GPR_PPC64(r16, NULL, LLDB_INVALID_REGNUM), \
75 DEFINE_GPR_PPC64(r17, NULL, LLDB_INVALID_REGNUM), \
76 DEFINE_GPR_PPC64(r18, NULL, LLDB_INVALID_REGNUM), \
77 DEFINE_GPR_PPC64(r19, NULL, LLDB_INVALID_REGNUM), \
78 DEFINE_GPR_PPC64(r20, NULL, LLDB_INVALID_REGNUM), \
79 DEFINE_GPR_PPC64(r21, NULL, LLDB_INVALID_REGNUM), \
80 DEFINE_GPR_PPC64(r22, NULL, LLDB_INVALID_REGNUM), \
81 DEFINE_GPR_PPC64(r23, NULL, LLDB_INVALID_REGNUM), \
82 DEFINE_GPR_PPC64(r24, NULL, LLDB_INVALID_REGNUM), \
83 DEFINE_GPR_PPC64(r25, NULL, LLDB_INVALID_REGNUM), \
84 DEFINE_GPR_PPC64(r26, NULL, LLDB_INVALID_REGNUM), \
85 DEFINE_GPR_PPC64(r27, NULL, LLDB_INVALID_REGNUM), \
86 DEFINE_GPR_PPC64(r28, NULL, LLDB_INVALID_REGNUM), \
87 DEFINE_GPR_PPC64(r29, NULL, LLDB_INVALID_REGNUM), \
88 DEFINE_GPR_PPC64(r30, NULL, LLDB_INVALID_REGNUM), \
89 DEFINE_GPR_PPC64(r31, NULL, LLDB_INVALID_REGNUM), \
90 DEFINE_GPR_PPC64(cr, NULL, LLDB_REGNUM_GENERIC_FLAGS), \
91 DEFINE_GPR_PPC64(msr, NULL, LLDB_INVALID_REGNUM), \
92 DEFINE_GPR_PPC64(xer, NULL, LLDB_INVALID_REGNUM), \
93 DEFINE_GPR_PPC64(lr, NULL, LLDB_REGNUM_GENERIC_RA), \
94 DEFINE_GPR_PPC64(ctr, NULL, LLDB_INVALID_REGNUM), \
95 DEFINE_GPR_PPC64(pc, NULL, LLDB_REGNUM_GENERIC_PC), \
96 DEFINE_FPR_PPC64(f0, NULL, LLDB_INVALID_REGNUM), \
97 DEFINE_FPR_PPC64(f1, NULL, LLDB_INVALID_REGNUM), \
98 DEFINE_FPR_PPC64(f2, NULL, LLDB_INVALID_REGNUM), \
99 DEFINE_FPR_PPC64(f3, NULL, LLDB_INVALID_REGNUM), \
100 DEFINE_FPR_PPC64(f4, NULL, LLDB_INVALID_REGNUM), \
101 DEFINE_FPR_PPC64(f5, NULL, LLDB_INVALID_REGNUM), \
102 DEFINE_FPR_PPC64(f6, NULL, LLDB_INVALID_REGNUM), \
103 DEFINE_FPR_PPC64(f7, NULL, LLDB_INVALID_REGNUM), \
104 DEFINE_FPR_PPC64(f8, NULL, LLDB_INVALID_REGNUM), \
105 DEFINE_FPR_PPC64(f9, NULL, LLDB_INVALID_REGNUM), \
106 DEFINE_FPR_PPC64(f10, NULL, LLDB_INVALID_REGNUM), \
107 DEFINE_FPR_PPC64(f11, NULL, LLDB_INVALID_REGNUM), \
108 DEFINE_FPR_PPC64(f12, NULL, LLDB_INVALID_REGNUM), \
109 DEFINE_FPR_PPC64(f13, NULL, LLDB_INVALID_REGNUM), \
110 DEFINE_FPR_PPC64(f14, NULL, LLDB_INVALID_REGNUM), \
111 DEFINE_FPR_PPC64(f15, NULL, LLDB_INVALID_REGNUM), \
112 DEFINE_FPR_PPC64(f16, NULL, LLDB_INVALID_REGNUM), \
113 DEFINE_FPR_PPC64(f17, NULL, LLDB_INVALID_REGNUM), \
114 DEFINE_FPR_PPC64(f18, NULL, LLDB_INVALID_REGNUM), \
115 DEFINE_FPR_PPC64(f19, NULL, LLDB_INVALID_REGNUM), \
116 DEFINE_FPR_PPC64(f20, NULL, LLDB_INVALID_REGNUM), \
117 DEFINE_FPR_PPC64(f21, NULL, LLDB_INVALID_REGNUM), \
118 DEFINE_FPR_PPC64(f22, NULL, LLDB_INVALID_REGNUM), \
119 DEFINE_FPR_PPC64(f23, NULL, LLDB_INVALID_REGNUM), \
120 DEFINE_FPR_PPC64(f24, NULL, LLDB_INVALID_REGNUM), \
121 DEFINE_FPR_PPC64(f25, NULL, LLDB_INVALID_REGNUM), \
122 DEFINE_FPR_PPC64(f26, NULL, LLDB_INVALID_REGNUM), \
123 DEFINE_FPR_PPC64(f27, NULL, LLDB_INVALID_REGNUM), \
124 DEFINE_FPR_PPC64(f28, NULL, LLDB_INVALID_REGNUM), \
125 DEFINE_FPR_PPC64(f29, NULL, LLDB_INVALID_REGNUM), \
126 DEFINE_FPR_PPC64(f30, NULL, LLDB_INVALID_REGNUM), \
127 DEFINE_FPR_PPC64(f31, NULL, LLDB_INVALID_REGNUM), \
131 FPR_PPC64_OFFSET(fpscr), \
132 lldb::eEncodingUint, \
134 {ppc64_dwarf::dwarf_fpscr_ppc64, \
135 ppc64_dwarf::dwarf_fpscr_ppc64, LLDB_INVALID_REGNUM, \
136 LLDB_INVALID_REGNUM, fpr_fpscr_ppc64}, \
141 DEFINE_VMX_PPC64(vr0, LLDB_INVALID_REGNUM), \
142 DEFINE_VMX_PPC64(vr1, LLDB_INVALID_REGNUM), \
143 DEFINE_VMX_PPC64(vr2, LLDB_INVALID_REGNUM), \
144 DEFINE_VMX_PPC64(vr3, LLDB_INVALID_REGNUM), \
145 DEFINE_VMX_PPC64(vr4, LLDB_INVALID_REGNUM), \
146 DEFINE_VMX_PPC64(vr5, LLDB_INVALID_REGNUM), \
147 DEFINE_VMX_PPC64(vr6, LLDB_INVALID_REGNUM), \
148 DEFINE_VMX_PPC64(vr7, LLDB_INVALID_REGNUM), \
149 DEFINE_VMX_PPC64(vr8, LLDB_INVALID_REGNUM), \
150 DEFINE_VMX_PPC64(vr9, LLDB_INVALID_REGNUM), \
151 DEFINE_VMX_PPC64(vr10, LLDB_INVALID_REGNUM), \
152 DEFINE_VMX_PPC64(vr11, LLDB_INVALID_REGNUM), \
153 DEFINE_VMX_PPC64(vr12, LLDB_INVALID_REGNUM), \
154 DEFINE_VMX_PPC64(vr13, LLDB_INVALID_REGNUM), \
155 DEFINE_VMX_PPC64(vr14, LLDB_INVALID_REGNUM), \
156 DEFINE_VMX_PPC64(vr15, LLDB_INVALID_REGNUM), \
157 DEFINE_VMX_PPC64(vr16, LLDB_INVALID_REGNUM), \
158 DEFINE_VMX_PPC64(vr17, LLDB_INVALID_REGNUM), \
159 DEFINE_VMX_PPC64(vr18, LLDB_INVALID_REGNUM), \
160 DEFINE_VMX_PPC64(vr19, LLDB_INVALID_REGNUM), \
161 DEFINE_VMX_PPC64(vr20, LLDB_INVALID_REGNUM), \
162 DEFINE_VMX_PPC64(vr21, LLDB_INVALID_REGNUM), \
163 DEFINE_VMX_PPC64(vr22, LLDB_INVALID_REGNUM), \
164 DEFINE_VMX_PPC64(vr23, LLDB_INVALID_REGNUM), \
165 DEFINE_VMX_PPC64(vr24, LLDB_INVALID_REGNUM), \
166 DEFINE_VMX_PPC64(vr25, LLDB_INVALID_REGNUM), \
167 DEFINE_VMX_PPC64(vr26, LLDB_INVALID_REGNUM), \
168 DEFINE_VMX_PPC64(vr27, LLDB_INVALID_REGNUM), \
169 DEFINE_VMX_PPC64(vr28, LLDB_INVALID_REGNUM), \
170 DEFINE_VMX_PPC64(vr29, LLDB_INVALID_REGNUM), \
171 DEFINE_VMX_PPC64(vr30, LLDB_INVALID_REGNUM), \
172 DEFINE_VMX_PPC64(vr31, LLDB_INVALID_REGNUM), \
176 VMX_PPC64_OFFSET(vscr), \
177 lldb::eEncodingUint, \
179 {ppc64_dwarf::dwarf_vscr_ppc64, ppc64_dwarf::dwarf_vscr_ppc64, \
180 LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, vmx_vscr_ppc64}, \
188 VMX_PPC64_OFFSET(vrsave), \
189 lldb::eEncodingUint, \
191 {ppc64_dwarf::dwarf_vrsave_ppc64, \
192 ppc64_dwarf::dwarf_vrsave_ppc64, LLDB_INVALID_REGNUM, \
193 LLDB_INVALID_REGNUM, vmx_vrsave_ppc64}, \
199typedef struct _GPR_PPC64 {
241typedef struct _FPR_PPC64 {
277typedef struct _VMX_PPC64 {
320static_assert((
sizeof(g_register_infos_ppc64) /
321 sizeof(g_register_infos_ppc64[0])) ==
323 "g_register_infos_powerpc64 has wrong number of register infos");
325#undef DEFINE_FPR_PPC64
326#undef DEFINE_GPR_PPC64
327#undef DEFINE_VMX_PPC64
Every register is described in detail including its name, alternate name (optional),...