libunwind.h 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103
  1. //===---------------------------- libunwind.h -----------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //
  8. // Compatible with libunwind API documented at:
  9. // http://www.nongnu.org/libunwind/man/libunwind(3).html
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef __LIBUNWIND__
  13. #define __LIBUNWIND__
  14. #include <__libunwind_config.h>
  15. #include <stdint.h>
  16. #include <stddef.h>
  17. #ifdef __APPLE__
  18. #if __clang__
  19. #if __has_include(<Availability.h>)
  20. #include <Availability.h>
  21. #endif
  22. #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
  23. #include <Availability.h>
  24. #endif
  25. #ifdef __arm__
  26. #define LIBUNWIND_AVAIL __attribute__((unavailable))
  27. #elif defined(__OSX_AVAILABLE_STARTING)
  28. #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
  29. #else
  30. #include <AvailabilityMacros.h>
  31. #ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
  32. #define LIBUNWIND_AVAIL AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
  33. #else
  34. #define LIBUNWIND_AVAIL __attribute__((unavailable))
  35. #endif
  36. #endif
  37. #else
  38. #define LIBUNWIND_AVAIL
  39. #endif
  40. #if defined(_WIN32) && defined(__SEH__)
  41. #define LIBUNWIND_CURSOR_ALIGNMENT_ATTR __attribute__((__aligned__(16)))
  42. #else
  43. #define LIBUNWIND_CURSOR_ALIGNMENT_ATTR
  44. #endif
  45. /* error codes */
  46. enum {
  47. UNW_ESUCCESS = 0, /* no error */
  48. UNW_EUNSPEC = -6540, /* unspecified (general) error */
  49. UNW_ENOMEM = -6541, /* out of memory */
  50. UNW_EBADREG = -6542, /* bad register number */
  51. UNW_EREADONLYREG = -6543, /* attempt to write read-only register */
  52. UNW_ESTOPUNWIND = -6544, /* stop unwinding */
  53. UNW_EINVALIDIP = -6545, /* invalid IP */
  54. UNW_EBADFRAME = -6546, /* bad frame */
  55. UNW_EINVAL = -6547, /* unsupported operation or bad value */
  56. UNW_EBADVERSION = -6548, /* unwind info has unsupported version */
  57. UNW_ENOINFO = -6549 /* no unwind info found */
  58. #if defined(_LIBUNWIND_TARGET_AARCH64) && !defined(_LIBUNWIND_IS_NATIVE_ONLY)
  59. , UNW_ECROSSRASIGNING = -6550 /* cross unwind with return address signing */
  60. #endif
  61. };
  62. struct unw_context_t {
  63. uint64_t data[_LIBUNWIND_CONTEXT_SIZE];
  64. };
  65. typedef struct unw_context_t unw_context_t;
  66. struct unw_cursor_t {
  67. uint64_t data[_LIBUNWIND_CURSOR_SIZE];
  68. } LIBUNWIND_CURSOR_ALIGNMENT_ATTR;
  69. typedef struct unw_cursor_t unw_cursor_t;
  70. typedef struct unw_addr_space *unw_addr_space_t;
  71. typedef int unw_regnum_t;
  72. typedef uintptr_t unw_word_t;
  73. #if defined(__arm__) && !defined(__ARM_DWARF_EH__)
  74. typedef uint64_t unw_fpreg_t;
  75. #else
  76. typedef double unw_fpreg_t;
  77. #endif
  78. struct unw_proc_info_t {
  79. unw_word_t start_ip; /* start address of function */
  80. unw_word_t end_ip; /* address after end of function */
  81. unw_word_t lsda; /* address of language specific data area, */
  82. /* or zero if not used */
  83. unw_word_t handler; /* personality routine, or zero if not used */
  84. unw_word_t gp; /* not used */
  85. unw_word_t flags; /* not used */
  86. uint32_t format; /* compact unwind encoding, or zero if none */
  87. uint32_t unwind_info_size; /* size of DWARF unwind info, or zero if none */
  88. unw_word_t unwind_info; /* address of DWARF unwind info, or zero */
  89. unw_word_t extra; /* mach_header of mach-o image containing func */
  90. };
  91. typedef struct unw_proc_info_t unw_proc_info_t;
  92. #ifdef __cplusplus
  93. extern "C" {
  94. #endif
  95. extern int unw_getcontext(unw_context_t *) LIBUNWIND_AVAIL;
  96. extern int unw_init_local(unw_cursor_t *, unw_context_t *) LIBUNWIND_AVAIL;
  97. extern int unw_step(unw_cursor_t *) LIBUNWIND_AVAIL;
  98. extern int unw_get_reg(unw_cursor_t *, unw_regnum_t, unw_word_t *) LIBUNWIND_AVAIL;
  99. extern int unw_get_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t *) LIBUNWIND_AVAIL;
  100. extern int unw_set_reg(unw_cursor_t *, unw_regnum_t, unw_word_t) LIBUNWIND_AVAIL;
  101. extern int unw_set_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t) LIBUNWIND_AVAIL;
  102. extern int unw_resume(unw_cursor_t *) LIBUNWIND_AVAIL;
  103. #ifdef __arm__
  104. /* Save VFP registers in FSTMX format (instead of FSTMD). */
  105. extern void unw_save_vfp_as_X(unw_cursor_t *) LIBUNWIND_AVAIL;
  106. #endif
  107. extern const char *unw_regname(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
  108. extern int unw_get_proc_info(unw_cursor_t *, unw_proc_info_t *) LIBUNWIND_AVAIL;
  109. extern int unw_is_fpreg(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
  110. extern int unw_is_signal_frame(unw_cursor_t *) LIBUNWIND_AVAIL;
  111. extern int unw_get_proc_name(unw_cursor_t *, char *, size_t, unw_word_t *) LIBUNWIND_AVAIL;
  112. //extern int unw_get_save_loc(unw_cursor_t*, int, unw_save_loc_t*);
  113. extern unw_addr_space_t unw_local_addr_space;
  114. #ifdef __cplusplus
  115. }
  116. #endif
  117. // architecture independent register numbers
  118. enum {
  119. UNW_REG_IP = -1, // instruction pointer
  120. UNW_REG_SP = -2, // stack pointer
  121. };
  122. // 32-bit x86 registers
  123. enum {
  124. UNW_X86_EAX = 0,
  125. UNW_X86_ECX = 1,
  126. UNW_X86_EDX = 2,
  127. UNW_X86_EBX = 3,
  128. UNW_X86_EBP = 4,
  129. UNW_X86_ESP = 5,
  130. UNW_X86_ESI = 6,
  131. UNW_X86_EDI = 7
  132. };
  133. // 64-bit x86_64 registers
  134. enum {
  135. UNW_X86_64_RAX = 0,
  136. UNW_X86_64_RDX = 1,
  137. UNW_X86_64_RCX = 2,
  138. UNW_X86_64_RBX = 3,
  139. UNW_X86_64_RSI = 4,
  140. UNW_X86_64_RDI = 5,
  141. UNW_X86_64_RBP = 6,
  142. UNW_X86_64_RSP = 7,
  143. UNW_X86_64_R8 = 8,
  144. UNW_X86_64_R9 = 9,
  145. UNW_X86_64_R10 = 10,
  146. UNW_X86_64_R11 = 11,
  147. UNW_X86_64_R12 = 12,
  148. UNW_X86_64_R13 = 13,
  149. UNW_X86_64_R14 = 14,
  150. UNW_X86_64_R15 = 15,
  151. UNW_X86_64_RIP = 16,
  152. UNW_X86_64_XMM0 = 17,
  153. UNW_X86_64_XMM1 = 18,
  154. UNW_X86_64_XMM2 = 19,
  155. UNW_X86_64_XMM3 = 20,
  156. UNW_X86_64_XMM4 = 21,
  157. UNW_X86_64_XMM5 = 22,
  158. UNW_X86_64_XMM6 = 23,
  159. UNW_X86_64_XMM7 = 24,
  160. UNW_X86_64_XMM8 = 25,
  161. UNW_X86_64_XMM9 = 26,
  162. UNW_X86_64_XMM10 = 27,
  163. UNW_X86_64_XMM11 = 28,
  164. UNW_X86_64_XMM12 = 29,
  165. UNW_X86_64_XMM13 = 30,
  166. UNW_X86_64_XMM14 = 31,
  167. UNW_X86_64_XMM15 = 32,
  168. };
  169. // 32-bit ppc register numbers
  170. enum {
  171. UNW_PPC_R0 = 0,
  172. UNW_PPC_R1 = 1,
  173. UNW_PPC_R2 = 2,
  174. UNW_PPC_R3 = 3,
  175. UNW_PPC_R4 = 4,
  176. UNW_PPC_R5 = 5,
  177. UNW_PPC_R6 = 6,
  178. UNW_PPC_R7 = 7,
  179. UNW_PPC_R8 = 8,
  180. UNW_PPC_R9 = 9,
  181. UNW_PPC_R10 = 10,
  182. UNW_PPC_R11 = 11,
  183. UNW_PPC_R12 = 12,
  184. UNW_PPC_R13 = 13,
  185. UNW_PPC_R14 = 14,
  186. UNW_PPC_R15 = 15,
  187. UNW_PPC_R16 = 16,
  188. UNW_PPC_R17 = 17,
  189. UNW_PPC_R18 = 18,
  190. UNW_PPC_R19 = 19,
  191. UNW_PPC_R20 = 20,
  192. UNW_PPC_R21 = 21,
  193. UNW_PPC_R22 = 22,
  194. UNW_PPC_R23 = 23,
  195. UNW_PPC_R24 = 24,
  196. UNW_PPC_R25 = 25,
  197. UNW_PPC_R26 = 26,
  198. UNW_PPC_R27 = 27,
  199. UNW_PPC_R28 = 28,
  200. UNW_PPC_R29 = 29,
  201. UNW_PPC_R30 = 30,
  202. UNW_PPC_R31 = 31,
  203. UNW_PPC_F0 = 32,
  204. UNW_PPC_F1 = 33,
  205. UNW_PPC_F2 = 34,
  206. UNW_PPC_F3 = 35,
  207. UNW_PPC_F4 = 36,
  208. UNW_PPC_F5 = 37,
  209. UNW_PPC_F6 = 38,
  210. UNW_PPC_F7 = 39,
  211. UNW_PPC_F8 = 40,
  212. UNW_PPC_F9 = 41,
  213. UNW_PPC_F10 = 42,
  214. UNW_PPC_F11 = 43,
  215. UNW_PPC_F12 = 44,
  216. UNW_PPC_F13 = 45,
  217. UNW_PPC_F14 = 46,
  218. UNW_PPC_F15 = 47,
  219. UNW_PPC_F16 = 48,
  220. UNW_PPC_F17 = 49,
  221. UNW_PPC_F18 = 50,
  222. UNW_PPC_F19 = 51,
  223. UNW_PPC_F20 = 52,
  224. UNW_PPC_F21 = 53,
  225. UNW_PPC_F22 = 54,
  226. UNW_PPC_F23 = 55,
  227. UNW_PPC_F24 = 56,
  228. UNW_PPC_F25 = 57,
  229. UNW_PPC_F26 = 58,
  230. UNW_PPC_F27 = 59,
  231. UNW_PPC_F28 = 60,
  232. UNW_PPC_F29 = 61,
  233. UNW_PPC_F30 = 62,
  234. UNW_PPC_F31 = 63,
  235. UNW_PPC_MQ = 64,
  236. UNW_PPC_LR = 65,
  237. UNW_PPC_CTR = 66,
  238. UNW_PPC_AP = 67,
  239. UNW_PPC_CR0 = 68,
  240. UNW_PPC_CR1 = 69,
  241. UNW_PPC_CR2 = 70,
  242. UNW_PPC_CR3 = 71,
  243. UNW_PPC_CR4 = 72,
  244. UNW_PPC_CR5 = 73,
  245. UNW_PPC_CR6 = 74,
  246. UNW_PPC_CR7 = 75,
  247. UNW_PPC_XER = 76,
  248. UNW_PPC_V0 = 77,
  249. UNW_PPC_V1 = 78,
  250. UNW_PPC_V2 = 79,
  251. UNW_PPC_V3 = 80,
  252. UNW_PPC_V4 = 81,
  253. UNW_PPC_V5 = 82,
  254. UNW_PPC_V6 = 83,
  255. UNW_PPC_V7 = 84,
  256. UNW_PPC_V8 = 85,
  257. UNW_PPC_V9 = 86,
  258. UNW_PPC_V10 = 87,
  259. UNW_PPC_V11 = 88,
  260. UNW_PPC_V12 = 89,
  261. UNW_PPC_V13 = 90,
  262. UNW_PPC_V14 = 91,
  263. UNW_PPC_V15 = 92,
  264. UNW_PPC_V16 = 93,
  265. UNW_PPC_V17 = 94,
  266. UNW_PPC_V18 = 95,
  267. UNW_PPC_V19 = 96,
  268. UNW_PPC_V20 = 97,
  269. UNW_PPC_V21 = 98,
  270. UNW_PPC_V22 = 99,
  271. UNW_PPC_V23 = 100,
  272. UNW_PPC_V24 = 101,
  273. UNW_PPC_V25 = 102,
  274. UNW_PPC_V26 = 103,
  275. UNW_PPC_V27 = 104,
  276. UNW_PPC_V28 = 105,
  277. UNW_PPC_V29 = 106,
  278. UNW_PPC_V30 = 107,
  279. UNW_PPC_V31 = 108,
  280. UNW_PPC_VRSAVE = 109,
  281. UNW_PPC_VSCR = 110,
  282. UNW_PPC_SPE_ACC = 111,
  283. UNW_PPC_SPEFSCR = 112
  284. };
  285. // 64-bit ppc register numbers
  286. enum {
  287. UNW_PPC64_R0 = 0,
  288. UNW_PPC64_R1 = 1,
  289. UNW_PPC64_R2 = 2,
  290. UNW_PPC64_R3 = 3,
  291. UNW_PPC64_R4 = 4,
  292. UNW_PPC64_R5 = 5,
  293. UNW_PPC64_R6 = 6,
  294. UNW_PPC64_R7 = 7,
  295. UNW_PPC64_R8 = 8,
  296. UNW_PPC64_R9 = 9,
  297. UNW_PPC64_R10 = 10,
  298. UNW_PPC64_R11 = 11,
  299. UNW_PPC64_R12 = 12,
  300. UNW_PPC64_R13 = 13,
  301. UNW_PPC64_R14 = 14,
  302. UNW_PPC64_R15 = 15,
  303. UNW_PPC64_R16 = 16,
  304. UNW_PPC64_R17 = 17,
  305. UNW_PPC64_R18 = 18,
  306. UNW_PPC64_R19 = 19,
  307. UNW_PPC64_R20 = 20,
  308. UNW_PPC64_R21 = 21,
  309. UNW_PPC64_R22 = 22,
  310. UNW_PPC64_R23 = 23,
  311. UNW_PPC64_R24 = 24,
  312. UNW_PPC64_R25 = 25,
  313. UNW_PPC64_R26 = 26,
  314. UNW_PPC64_R27 = 27,
  315. UNW_PPC64_R28 = 28,
  316. UNW_PPC64_R29 = 29,
  317. UNW_PPC64_R30 = 30,
  318. UNW_PPC64_R31 = 31,
  319. UNW_PPC64_F0 = 32,
  320. UNW_PPC64_F1 = 33,
  321. UNW_PPC64_F2 = 34,
  322. UNW_PPC64_F3 = 35,
  323. UNW_PPC64_F4 = 36,
  324. UNW_PPC64_F5 = 37,
  325. UNW_PPC64_F6 = 38,
  326. UNW_PPC64_F7 = 39,
  327. UNW_PPC64_F8 = 40,
  328. UNW_PPC64_F9 = 41,
  329. UNW_PPC64_F10 = 42,
  330. UNW_PPC64_F11 = 43,
  331. UNW_PPC64_F12 = 44,
  332. UNW_PPC64_F13 = 45,
  333. UNW_PPC64_F14 = 46,
  334. UNW_PPC64_F15 = 47,
  335. UNW_PPC64_F16 = 48,
  336. UNW_PPC64_F17 = 49,
  337. UNW_PPC64_F18 = 50,
  338. UNW_PPC64_F19 = 51,
  339. UNW_PPC64_F20 = 52,
  340. UNW_PPC64_F21 = 53,
  341. UNW_PPC64_F22 = 54,
  342. UNW_PPC64_F23 = 55,
  343. UNW_PPC64_F24 = 56,
  344. UNW_PPC64_F25 = 57,
  345. UNW_PPC64_F26 = 58,
  346. UNW_PPC64_F27 = 59,
  347. UNW_PPC64_F28 = 60,
  348. UNW_PPC64_F29 = 61,
  349. UNW_PPC64_F30 = 62,
  350. UNW_PPC64_F31 = 63,
  351. // 64: reserved
  352. UNW_PPC64_LR = 65,
  353. UNW_PPC64_CTR = 66,
  354. // 67: reserved
  355. UNW_PPC64_CR0 = 68,
  356. UNW_PPC64_CR1 = 69,
  357. UNW_PPC64_CR2 = 70,
  358. UNW_PPC64_CR3 = 71,
  359. UNW_PPC64_CR4 = 72,
  360. UNW_PPC64_CR5 = 73,
  361. UNW_PPC64_CR6 = 74,
  362. UNW_PPC64_CR7 = 75,
  363. UNW_PPC64_XER = 76,
  364. UNW_PPC64_V0 = 77,
  365. UNW_PPC64_V1 = 78,
  366. UNW_PPC64_V2 = 79,
  367. UNW_PPC64_V3 = 80,
  368. UNW_PPC64_V4 = 81,
  369. UNW_PPC64_V5 = 82,
  370. UNW_PPC64_V6 = 83,
  371. UNW_PPC64_V7 = 84,
  372. UNW_PPC64_V8 = 85,
  373. UNW_PPC64_V9 = 86,
  374. UNW_PPC64_V10 = 87,
  375. UNW_PPC64_V11 = 88,
  376. UNW_PPC64_V12 = 89,
  377. UNW_PPC64_V13 = 90,
  378. UNW_PPC64_V14 = 91,
  379. UNW_PPC64_V15 = 92,
  380. UNW_PPC64_V16 = 93,
  381. UNW_PPC64_V17 = 94,
  382. UNW_PPC64_V18 = 95,
  383. UNW_PPC64_V19 = 96,
  384. UNW_PPC64_V20 = 97,
  385. UNW_PPC64_V21 = 98,
  386. UNW_PPC64_V22 = 99,
  387. UNW_PPC64_V23 = 100,
  388. UNW_PPC64_V24 = 101,
  389. UNW_PPC64_V25 = 102,
  390. UNW_PPC64_V26 = 103,
  391. UNW_PPC64_V27 = 104,
  392. UNW_PPC64_V28 = 105,
  393. UNW_PPC64_V29 = 106,
  394. UNW_PPC64_V30 = 107,
  395. UNW_PPC64_V31 = 108,
  396. // 109, 111-113: OpenPOWER ELF V2 ABI: reserved
  397. // Borrowing VRSAVE number from PPC32.
  398. UNW_PPC64_VRSAVE = 109,
  399. UNW_PPC64_VSCR = 110,
  400. UNW_PPC64_TFHAR = 114,
  401. UNW_PPC64_TFIAR = 115,
  402. UNW_PPC64_TEXASR = 116,
  403. UNW_PPC64_VS0 = UNW_PPC64_F0,
  404. UNW_PPC64_VS1 = UNW_PPC64_F1,
  405. UNW_PPC64_VS2 = UNW_PPC64_F2,
  406. UNW_PPC64_VS3 = UNW_PPC64_F3,
  407. UNW_PPC64_VS4 = UNW_PPC64_F4,
  408. UNW_PPC64_VS5 = UNW_PPC64_F5,
  409. UNW_PPC64_VS6 = UNW_PPC64_F6,
  410. UNW_PPC64_VS7 = UNW_PPC64_F7,
  411. UNW_PPC64_VS8 = UNW_PPC64_F8,
  412. UNW_PPC64_VS9 = UNW_PPC64_F9,
  413. UNW_PPC64_VS10 = UNW_PPC64_F10,
  414. UNW_PPC64_VS11 = UNW_PPC64_F11,
  415. UNW_PPC64_VS12 = UNW_PPC64_F12,
  416. UNW_PPC64_VS13 = UNW_PPC64_F13,
  417. UNW_PPC64_VS14 = UNW_PPC64_F14,
  418. UNW_PPC64_VS15 = UNW_PPC64_F15,
  419. UNW_PPC64_VS16 = UNW_PPC64_F16,
  420. UNW_PPC64_VS17 = UNW_PPC64_F17,
  421. UNW_PPC64_VS18 = UNW_PPC64_F18,
  422. UNW_PPC64_VS19 = UNW_PPC64_F19,
  423. UNW_PPC64_VS20 = UNW_PPC64_F20,
  424. UNW_PPC64_VS21 = UNW_PPC64_F21,
  425. UNW_PPC64_VS22 = UNW_PPC64_F22,
  426. UNW_PPC64_VS23 = UNW_PPC64_F23,
  427. UNW_PPC64_VS24 = UNW_PPC64_F24,
  428. UNW_PPC64_VS25 = UNW_PPC64_F25,
  429. UNW_PPC64_VS26 = UNW_PPC64_F26,
  430. UNW_PPC64_VS27 = UNW_PPC64_F27,
  431. UNW_PPC64_VS28 = UNW_PPC64_F28,
  432. UNW_PPC64_VS29 = UNW_PPC64_F29,
  433. UNW_PPC64_VS30 = UNW_PPC64_F30,
  434. UNW_PPC64_VS31 = UNW_PPC64_F31,
  435. UNW_PPC64_VS32 = UNW_PPC64_V0,
  436. UNW_PPC64_VS33 = UNW_PPC64_V1,
  437. UNW_PPC64_VS34 = UNW_PPC64_V2,
  438. UNW_PPC64_VS35 = UNW_PPC64_V3,
  439. UNW_PPC64_VS36 = UNW_PPC64_V4,
  440. UNW_PPC64_VS37 = UNW_PPC64_V5,
  441. UNW_PPC64_VS38 = UNW_PPC64_V6,
  442. UNW_PPC64_VS39 = UNW_PPC64_V7,
  443. UNW_PPC64_VS40 = UNW_PPC64_V8,
  444. UNW_PPC64_VS41 = UNW_PPC64_V9,
  445. UNW_PPC64_VS42 = UNW_PPC64_V10,
  446. UNW_PPC64_VS43 = UNW_PPC64_V11,
  447. UNW_PPC64_VS44 = UNW_PPC64_V12,
  448. UNW_PPC64_VS45 = UNW_PPC64_V13,
  449. UNW_PPC64_VS46 = UNW_PPC64_V14,
  450. UNW_PPC64_VS47 = UNW_PPC64_V15,
  451. UNW_PPC64_VS48 = UNW_PPC64_V16,
  452. UNW_PPC64_VS49 = UNW_PPC64_V17,
  453. UNW_PPC64_VS50 = UNW_PPC64_V18,
  454. UNW_PPC64_VS51 = UNW_PPC64_V19,
  455. UNW_PPC64_VS52 = UNW_PPC64_V20,
  456. UNW_PPC64_VS53 = UNW_PPC64_V21,
  457. UNW_PPC64_VS54 = UNW_PPC64_V22,
  458. UNW_PPC64_VS55 = UNW_PPC64_V23,
  459. UNW_PPC64_VS56 = UNW_PPC64_V24,
  460. UNW_PPC64_VS57 = UNW_PPC64_V25,
  461. UNW_PPC64_VS58 = UNW_PPC64_V26,
  462. UNW_PPC64_VS59 = UNW_PPC64_V27,
  463. UNW_PPC64_VS60 = UNW_PPC64_V28,
  464. UNW_PPC64_VS61 = UNW_PPC64_V29,
  465. UNW_PPC64_VS62 = UNW_PPC64_V30,
  466. UNW_PPC64_VS63 = UNW_PPC64_V31
  467. };
  468. // 64-bit ARM64 registers
  469. enum {
  470. UNW_ARM64_X0 = 0,
  471. UNW_ARM64_X1 = 1,
  472. UNW_ARM64_X2 = 2,
  473. UNW_ARM64_X3 = 3,
  474. UNW_ARM64_X4 = 4,
  475. UNW_ARM64_X5 = 5,
  476. UNW_ARM64_X6 = 6,
  477. UNW_ARM64_X7 = 7,
  478. UNW_ARM64_X8 = 8,
  479. UNW_ARM64_X9 = 9,
  480. UNW_ARM64_X10 = 10,
  481. UNW_ARM64_X11 = 11,
  482. UNW_ARM64_X12 = 12,
  483. UNW_ARM64_X13 = 13,
  484. UNW_ARM64_X14 = 14,
  485. UNW_ARM64_X15 = 15,
  486. UNW_ARM64_X16 = 16,
  487. UNW_ARM64_X17 = 17,
  488. UNW_ARM64_X18 = 18,
  489. UNW_ARM64_X19 = 19,
  490. UNW_ARM64_X20 = 20,
  491. UNW_ARM64_X21 = 21,
  492. UNW_ARM64_X22 = 22,
  493. UNW_ARM64_X23 = 23,
  494. UNW_ARM64_X24 = 24,
  495. UNW_ARM64_X25 = 25,
  496. UNW_ARM64_X26 = 26,
  497. UNW_ARM64_X27 = 27,
  498. UNW_ARM64_X28 = 28,
  499. UNW_ARM64_X29 = 29,
  500. UNW_ARM64_FP = 29,
  501. UNW_ARM64_X30 = 30,
  502. UNW_ARM64_LR = 30,
  503. UNW_ARM64_X31 = 31,
  504. UNW_ARM64_SP = 31,
  505. UNW_ARM64_PC = 32,
  506. // reserved block
  507. UNW_ARM64_RA_SIGN_STATE = 34,
  508. // reserved block
  509. UNW_ARM64_D0 = 64,
  510. UNW_ARM64_D1 = 65,
  511. UNW_ARM64_D2 = 66,
  512. UNW_ARM64_D3 = 67,
  513. UNW_ARM64_D4 = 68,
  514. UNW_ARM64_D5 = 69,
  515. UNW_ARM64_D6 = 70,
  516. UNW_ARM64_D7 = 71,
  517. UNW_ARM64_D8 = 72,
  518. UNW_ARM64_D9 = 73,
  519. UNW_ARM64_D10 = 74,
  520. UNW_ARM64_D11 = 75,
  521. UNW_ARM64_D12 = 76,
  522. UNW_ARM64_D13 = 77,
  523. UNW_ARM64_D14 = 78,
  524. UNW_ARM64_D15 = 79,
  525. UNW_ARM64_D16 = 80,
  526. UNW_ARM64_D17 = 81,
  527. UNW_ARM64_D18 = 82,
  528. UNW_ARM64_D19 = 83,
  529. UNW_ARM64_D20 = 84,
  530. UNW_ARM64_D21 = 85,
  531. UNW_ARM64_D22 = 86,
  532. UNW_ARM64_D23 = 87,
  533. UNW_ARM64_D24 = 88,
  534. UNW_ARM64_D25 = 89,
  535. UNW_ARM64_D26 = 90,
  536. UNW_ARM64_D27 = 91,
  537. UNW_ARM64_D28 = 92,
  538. UNW_ARM64_D29 = 93,
  539. UNW_ARM64_D30 = 94,
  540. UNW_ARM64_D31 = 95,
  541. };
  542. // 32-bit ARM registers. Numbers match DWARF for ARM spec #3.1 Table 1.
  543. // Naming scheme uses recommendations given in Note 4 for VFP-v2 and VFP-v3.
  544. // In this scheme, even though the 64-bit floating point registers D0-D31
  545. // overlap physically with the 32-bit floating pointer registers S0-S31,
  546. // they are given a non-overlapping range of register numbers.
  547. //
  548. // Commented out ranges are not preserved during unwinding.
  549. enum {
  550. UNW_ARM_R0 = 0,
  551. UNW_ARM_R1 = 1,
  552. UNW_ARM_R2 = 2,
  553. UNW_ARM_R3 = 3,
  554. UNW_ARM_R4 = 4,
  555. UNW_ARM_R5 = 5,
  556. UNW_ARM_R6 = 6,
  557. UNW_ARM_R7 = 7,
  558. UNW_ARM_R8 = 8,
  559. UNW_ARM_R9 = 9,
  560. UNW_ARM_R10 = 10,
  561. UNW_ARM_R11 = 11,
  562. UNW_ARM_R12 = 12,
  563. UNW_ARM_SP = 13, // Logical alias for UNW_REG_SP
  564. UNW_ARM_R13 = 13,
  565. UNW_ARM_LR = 14,
  566. UNW_ARM_R14 = 14,
  567. UNW_ARM_IP = 15, // Logical alias for UNW_REG_IP
  568. UNW_ARM_R15 = 15,
  569. // 16-63 -- OBSOLETE. Used in VFP1 to represent both S0-S31 and D0-D31.
  570. UNW_ARM_S0 = 64,
  571. UNW_ARM_S1 = 65,
  572. UNW_ARM_S2 = 66,
  573. UNW_ARM_S3 = 67,
  574. UNW_ARM_S4 = 68,
  575. UNW_ARM_S5 = 69,
  576. UNW_ARM_S6 = 70,
  577. UNW_ARM_S7 = 71,
  578. UNW_ARM_S8 = 72,
  579. UNW_ARM_S9 = 73,
  580. UNW_ARM_S10 = 74,
  581. UNW_ARM_S11 = 75,
  582. UNW_ARM_S12 = 76,
  583. UNW_ARM_S13 = 77,
  584. UNW_ARM_S14 = 78,
  585. UNW_ARM_S15 = 79,
  586. UNW_ARM_S16 = 80,
  587. UNW_ARM_S17 = 81,
  588. UNW_ARM_S18 = 82,
  589. UNW_ARM_S19 = 83,
  590. UNW_ARM_S20 = 84,
  591. UNW_ARM_S21 = 85,
  592. UNW_ARM_S22 = 86,
  593. UNW_ARM_S23 = 87,
  594. UNW_ARM_S24 = 88,
  595. UNW_ARM_S25 = 89,
  596. UNW_ARM_S26 = 90,
  597. UNW_ARM_S27 = 91,
  598. UNW_ARM_S28 = 92,
  599. UNW_ARM_S29 = 93,
  600. UNW_ARM_S30 = 94,
  601. UNW_ARM_S31 = 95,
  602. // 96-103 -- OBSOLETE. F0-F7. Used by the FPA system. Superseded by VFP.
  603. // 104-111 -- wCGR0-wCGR7, ACC0-ACC7 (Intel wireless MMX)
  604. UNW_ARM_WR0 = 112,
  605. UNW_ARM_WR1 = 113,
  606. UNW_ARM_WR2 = 114,
  607. UNW_ARM_WR3 = 115,
  608. UNW_ARM_WR4 = 116,
  609. UNW_ARM_WR5 = 117,
  610. UNW_ARM_WR6 = 118,
  611. UNW_ARM_WR7 = 119,
  612. UNW_ARM_WR8 = 120,
  613. UNW_ARM_WR9 = 121,
  614. UNW_ARM_WR10 = 122,
  615. UNW_ARM_WR11 = 123,
  616. UNW_ARM_WR12 = 124,
  617. UNW_ARM_WR13 = 125,
  618. UNW_ARM_WR14 = 126,
  619. UNW_ARM_WR15 = 127,
  620. // 128-133 -- SPSR, SPSR_{FIQ|IRQ|ABT|UND|SVC}
  621. // 134-143 -- Reserved
  622. // 144-150 -- R8_USR-R14_USR
  623. // 151-157 -- R8_FIQ-R14_FIQ
  624. // 158-159 -- R13_IRQ-R14_IRQ
  625. // 160-161 -- R13_ABT-R14_ABT
  626. // 162-163 -- R13_UND-R14_UND
  627. // 164-165 -- R13_SVC-R14_SVC
  628. // 166-191 -- Reserved
  629. UNW_ARM_WC0 = 192,
  630. UNW_ARM_WC1 = 193,
  631. UNW_ARM_WC2 = 194,
  632. UNW_ARM_WC3 = 195,
  633. // 196-199 -- wC4-wC7 (Intel wireless MMX control)
  634. // 200-255 -- Reserved
  635. UNW_ARM_D0 = 256,
  636. UNW_ARM_D1 = 257,
  637. UNW_ARM_D2 = 258,
  638. UNW_ARM_D3 = 259,
  639. UNW_ARM_D4 = 260,
  640. UNW_ARM_D5 = 261,
  641. UNW_ARM_D6 = 262,
  642. UNW_ARM_D7 = 263,
  643. UNW_ARM_D8 = 264,
  644. UNW_ARM_D9 = 265,
  645. UNW_ARM_D10 = 266,
  646. UNW_ARM_D11 = 267,
  647. UNW_ARM_D12 = 268,
  648. UNW_ARM_D13 = 269,
  649. UNW_ARM_D14 = 270,
  650. UNW_ARM_D15 = 271,
  651. UNW_ARM_D16 = 272,
  652. UNW_ARM_D17 = 273,
  653. UNW_ARM_D18 = 274,
  654. UNW_ARM_D19 = 275,
  655. UNW_ARM_D20 = 276,
  656. UNW_ARM_D21 = 277,
  657. UNW_ARM_D22 = 278,
  658. UNW_ARM_D23 = 279,
  659. UNW_ARM_D24 = 280,
  660. UNW_ARM_D25 = 281,
  661. UNW_ARM_D26 = 282,
  662. UNW_ARM_D27 = 283,
  663. UNW_ARM_D28 = 284,
  664. UNW_ARM_D29 = 285,
  665. UNW_ARM_D30 = 286,
  666. UNW_ARM_D31 = 287,
  667. // 288-319 -- Reserved for VFP/Neon
  668. // 320-8191 -- Reserved
  669. // 8192-16383 -- Unspecified vendor co-processor register.
  670. };
  671. // OpenRISC1000 register numbers
  672. enum {
  673. UNW_OR1K_R0 = 0,
  674. UNW_OR1K_R1 = 1,
  675. UNW_OR1K_R2 = 2,
  676. UNW_OR1K_R3 = 3,
  677. UNW_OR1K_R4 = 4,
  678. UNW_OR1K_R5 = 5,
  679. UNW_OR1K_R6 = 6,
  680. UNW_OR1K_R7 = 7,
  681. UNW_OR1K_R8 = 8,
  682. UNW_OR1K_R9 = 9,
  683. UNW_OR1K_R10 = 10,
  684. UNW_OR1K_R11 = 11,
  685. UNW_OR1K_R12 = 12,
  686. UNW_OR1K_R13 = 13,
  687. UNW_OR1K_R14 = 14,
  688. UNW_OR1K_R15 = 15,
  689. UNW_OR1K_R16 = 16,
  690. UNW_OR1K_R17 = 17,
  691. UNW_OR1K_R18 = 18,
  692. UNW_OR1K_R19 = 19,
  693. UNW_OR1K_R20 = 20,
  694. UNW_OR1K_R21 = 21,
  695. UNW_OR1K_R22 = 22,
  696. UNW_OR1K_R23 = 23,
  697. UNW_OR1K_R24 = 24,
  698. UNW_OR1K_R25 = 25,
  699. UNW_OR1K_R26 = 26,
  700. UNW_OR1K_R27 = 27,
  701. UNW_OR1K_R28 = 28,
  702. UNW_OR1K_R29 = 29,
  703. UNW_OR1K_R30 = 30,
  704. UNW_OR1K_R31 = 31,
  705. UNW_OR1K_EPCR = 32,
  706. };
  707. // MIPS registers
  708. enum {
  709. UNW_MIPS_R0 = 0,
  710. UNW_MIPS_R1 = 1,
  711. UNW_MIPS_R2 = 2,
  712. UNW_MIPS_R3 = 3,
  713. UNW_MIPS_R4 = 4,
  714. UNW_MIPS_R5 = 5,
  715. UNW_MIPS_R6 = 6,
  716. UNW_MIPS_R7 = 7,
  717. UNW_MIPS_R8 = 8,
  718. UNW_MIPS_R9 = 9,
  719. UNW_MIPS_R10 = 10,
  720. UNW_MIPS_R11 = 11,
  721. UNW_MIPS_R12 = 12,
  722. UNW_MIPS_R13 = 13,
  723. UNW_MIPS_R14 = 14,
  724. UNW_MIPS_R15 = 15,
  725. UNW_MIPS_R16 = 16,
  726. UNW_MIPS_R17 = 17,
  727. UNW_MIPS_R18 = 18,
  728. UNW_MIPS_R19 = 19,
  729. UNW_MIPS_R20 = 20,
  730. UNW_MIPS_R21 = 21,
  731. UNW_MIPS_R22 = 22,
  732. UNW_MIPS_R23 = 23,
  733. UNW_MIPS_R24 = 24,
  734. UNW_MIPS_R25 = 25,
  735. UNW_MIPS_R26 = 26,
  736. UNW_MIPS_R27 = 27,
  737. UNW_MIPS_R28 = 28,
  738. UNW_MIPS_R29 = 29,
  739. UNW_MIPS_R30 = 30,
  740. UNW_MIPS_R31 = 31,
  741. UNW_MIPS_F0 = 32,
  742. UNW_MIPS_F1 = 33,
  743. UNW_MIPS_F2 = 34,
  744. UNW_MIPS_F3 = 35,
  745. UNW_MIPS_F4 = 36,
  746. UNW_MIPS_F5 = 37,
  747. UNW_MIPS_F6 = 38,
  748. UNW_MIPS_F7 = 39,
  749. UNW_MIPS_F8 = 40,
  750. UNW_MIPS_F9 = 41,
  751. UNW_MIPS_F10 = 42,
  752. UNW_MIPS_F11 = 43,
  753. UNW_MIPS_F12 = 44,
  754. UNW_MIPS_F13 = 45,
  755. UNW_MIPS_F14 = 46,
  756. UNW_MIPS_F15 = 47,
  757. UNW_MIPS_F16 = 48,
  758. UNW_MIPS_F17 = 49,
  759. UNW_MIPS_F18 = 50,
  760. UNW_MIPS_F19 = 51,
  761. UNW_MIPS_F20 = 52,
  762. UNW_MIPS_F21 = 53,
  763. UNW_MIPS_F22 = 54,
  764. UNW_MIPS_F23 = 55,
  765. UNW_MIPS_F24 = 56,
  766. UNW_MIPS_F25 = 57,
  767. UNW_MIPS_F26 = 58,
  768. UNW_MIPS_F27 = 59,
  769. UNW_MIPS_F28 = 60,
  770. UNW_MIPS_F29 = 61,
  771. UNW_MIPS_F30 = 62,
  772. UNW_MIPS_F31 = 63,
  773. UNW_MIPS_HI = 64,
  774. UNW_MIPS_LO = 65,
  775. };
  776. // SPARC registers
  777. enum {
  778. UNW_SPARC_G0 = 0,
  779. UNW_SPARC_G1 = 1,
  780. UNW_SPARC_G2 = 2,
  781. UNW_SPARC_G3 = 3,
  782. UNW_SPARC_G4 = 4,
  783. UNW_SPARC_G5 = 5,
  784. UNW_SPARC_G6 = 6,
  785. UNW_SPARC_G7 = 7,
  786. UNW_SPARC_O0 = 8,
  787. UNW_SPARC_O1 = 9,
  788. UNW_SPARC_O2 = 10,
  789. UNW_SPARC_O3 = 11,
  790. UNW_SPARC_O4 = 12,
  791. UNW_SPARC_O5 = 13,
  792. UNW_SPARC_O6 = 14,
  793. UNW_SPARC_O7 = 15,
  794. UNW_SPARC_L0 = 16,
  795. UNW_SPARC_L1 = 17,
  796. UNW_SPARC_L2 = 18,
  797. UNW_SPARC_L3 = 19,
  798. UNW_SPARC_L4 = 20,
  799. UNW_SPARC_L5 = 21,
  800. UNW_SPARC_L6 = 22,
  801. UNW_SPARC_L7 = 23,
  802. UNW_SPARC_I0 = 24,
  803. UNW_SPARC_I1 = 25,
  804. UNW_SPARC_I2 = 26,
  805. UNW_SPARC_I3 = 27,
  806. UNW_SPARC_I4 = 28,
  807. UNW_SPARC_I5 = 29,
  808. UNW_SPARC_I6 = 30,
  809. UNW_SPARC_I7 = 31,
  810. };
  811. // Hexagon register numbers
  812. enum {
  813. UNW_HEXAGON_R0,
  814. UNW_HEXAGON_R1,
  815. UNW_HEXAGON_R2,
  816. UNW_HEXAGON_R3,
  817. UNW_HEXAGON_R4,
  818. UNW_HEXAGON_R5,
  819. UNW_HEXAGON_R6,
  820. UNW_HEXAGON_R7,
  821. UNW_HEXAGON_R8,
  822. UNW_HEXAGON_R9,
  823. UNW_HEXAGON_R10,
  824. UNW_HEXAGON_R11,
  825. UNW_HEXAGON_R12,
  826. UNW_HEXAGON_R13,
  827. UNW_HEXAGON_R14,
  828. UNW_HEXAGON_R15,
  829. UNW_HEXAGON_R16,
  830. UNW_HEXAGON_R17,
  831. UNW_HEXAGON_R18,
  832. UNW_HEXAGON_R19,
  833. UNW_HEXAGON_R20,
  834. UNW_HEXAGON_R21,
  835. UNW_HEXAGON_R22,
  836. UNW_HEXAGON_R23,
  837. UNW_HEXAGON_R24,
  838. UNW_HEXAGON_R25,
  839. UNW_HEXAGON_R26,
  840. UNW_HEXAGON_R27,
  841. UNW_HEXAGON_R28,
  842. UNW_HEXAGON_R29,
  843. UNW_HEXAGON_R30,
  844. UNW_HEXAGON_R31,
  845. UNW_HEXAGON_P3_0,
  846. UNW_HEXAGON_PC,
  847. };
  848. // RISC-V registers. These match the DWARF register numbers defined by section
  849. // 4 of the RISC-V ELF psABI specification, which can be found at:
  850. //
  851. // https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
  852. enum {
  853. UNW_RISCV_X0 = 0,
  854. UNW_RISCV_X1 = 1,
  855. UNW_RISCV_X2 = 2,
  856. UNW_RISCV_X3 = 3,
  857. UNW_RISCV_X4 = 4,
  858. UNW_RISCV_X5 = 5,
  859. UNW_RISCV_X6 = 6,
  860. UNW_RISCV_X7 = 7,
  861. UNW_RISCV_X8 = 8,
  862. UNW_RISCV_X9 = 9,
  863. UNW_RISCV_X10 = 10,
  864. UNW_RISCV_X11 = 11,
  865. UNW_RISCV_X12 = 12,
  866. UNW_RISCV_X13 = 13,
  867. UNW_RISCV_X14 = 14,
  868. UNW_RISCV_X15 = 15,
  869. UNW_RISCV_X16 = 16,
  870. UNW_RISCV_X17 = 17,
  871. UNW_RISCV_X18 = 18,
  872. UNW_RISCV_X19 = 19,
  873. UNW_RISCV_X20 = 20,
  874. UNW_RISCV_X21 = 21,
  875. UNW_RISCV_X22 = 22,
  876. UNW_RISCV_X23 = 23,
  877. UNW_RISCV_X24 = 24,
  878. UNW_RISCV_X25 = 25,
  879. UNW_RISCV_X26 = 26,
  880. UNW_RISCV_X27 = 27,
  881. UNW_RISCV_X28 = 28,
  882. UNW_RISCV_X29 = 29,
  883. UNW_RISCV_X30 = 30,
  884. UNW_RISCV_X31 = 31,
  885. UNW_RISCV_F0 = 32,
  886. UNW_RISCV_F1 = 33,
  887. UNW_RISCV_F2 = 34,
  888. UNW_RISCV_F3 = 35,
  889. UNW_RISCV_F4 = 36,
  890. UNW_RISCV_F5 = 37,
  891. UNW_RISCV_F6 = 38,
  892. UNW_RISCV_F7 = 39,
  893. UNW_RISCV_F8 = 40,
  894. UNW_RISCV_F9 = 41,
  895. UNW_RISCV_F10 = 42,
  896. UNW_RISCV_F11 = 43,
  897. UNW_RISCV_F12 = 44,
  898. UNW_RISCV_F13 = 45,
  899. UNW_RISCV_F14 = 46,
  900. UNW_RISCV_F15 = 47,
  901. UNW_RISCV_F16 = 48,
  902. UNW_RISCV_F17 = 49,
  903. UNW_RISCV_F18 = 50,
  904. UNW_RISCV_F19 = 51,
  905. UNW_RISCV_F20 = 52,
  906. UNW_RISCV_F21 = 53,
  907. UNW_RISCV_F22 = 54,
  908. UNW_RISCV_F23 = 55,
  909. UNW_RISCV_F24 = 56,
  910. UNW_RISCV_F25 = 57,
  911. UNW_RISCV_F26 = 58,
  912. UNW_RISCV_F27 = 59,
  913. UNW_RISCV_F28 = 60,
  914. UNW_RISCV_F29 = 61,
  915. UNW_RISCV_F30 = 62,
  916. UNW_RISCV_F31 = 63,
  917. };
  918. // VE register numbers
  919. enum {
  920. UNW_VE_S0 = 0,
  921. UNW_VE_S1 = 1,
  922. UNW_VE_S2 = 2,
  923. UNW_VE_S3 = 3,
  924. UNW_VE_S4 = 4,
  925. UNW_VE_S5 = 5,
  926. UNW_VE_S6 = 6,
  927. UNW_VE_S7 = 7,
  928. UNW_VE_S8 = 8,
  929. UNW_VE_S9 = 9,
  930. UNW_VE_S10 = 10,
  931. UNW_VE_S11 = 11,
  932. UNW_VE_S12 = 12,
  933. UNW_VE_S13 = 13,
  934. UNW_VE_S14 = 14,
  935. UNW_VE_S15 = 15,
  936. UNW_VE_S16 = 16,
  937. UNW_VE_S17 = 17,
  938. UNW_VE_S18 = 18,
  939. UNW_VE_S19 = 19,
  940. UNW_VE_S20 = 20,
  941. UNW_VE_S21 = 21,
  942. UNW_VE_S22 = 22,
  943. UNW_VE_S23 = 23,
  944. UNW_VE_S24 = 24,
  945. UNW_VE_S25 = 25,
  946. UNW_VE_S26 = 26,
  947. UNW_VE_S27 = 27,
  948. UNW_VE_S28 = 28,
  949. UNW_VE_S29 = 29,
  950. UNW_VE_S30 = 30,
  951. UNW_VE_S31 = 31,
  952. UNW_VE_S32 = 32,
  953. UNW_VE_S33 = 33,
  954. UNW_VE_S34 = 34,
  955. UNW_VE_S35 = 35,
  956. UNW_VE_S36 = 36,
  957. UNW_VE_S37 = 37,
  958. UNW_VE_S38 = 38,
  959. UNW_VE_S39 = 39,
  960. UNW_VE_S40 = 40,
  961. UNW_VE_S41 = 41,
  962. UNW_VE_S42 = 42,
  963. UNW_VE_S43 = 43,
  964. UNW_VE_S44 = 44,
  965. UNW_VE_S45 = 45,
  966. UNW_VE_S46 = 46,
  967. UNW_VE_S47 = 47,
  968. UNW_VE_S48 = 48,
  969. UNW_VE_S49 = 49,
  970. UNW_VE_S50 = 50,
  971. UNW_VE_S51 = 51,
  972. UNW_VE_S52 = 52,
  973. UNW_VE_S53 = 53,
  974. UNW_VE_S54 = 54,
  975. UNW_VE_S55 = 55,
  976. UNW_VE_S56 = 56,
  977. UNW_VE_S57 = 57,
  978. UNW_VE_S58 = 58,
  979. UNW_VE_S59 = 59,
  980. UNW_VE_S60 = 60,
  981. UNW_VE_S61 = 61,
  982. UNW_VE_S62 = 62,
  983. UNW_VE_S63 = 63,
  984. UNW_VE_V0 = 64 + 0,
  985. UNW_VE_V1 = 64 + 1,
  986. UNW_VE_V2 = 64 + 2,
  987. UNW_VE_V3 = 64 + 3,
  988. UNW_VE_V4 = 64 + 4,
  989. UNW_VE_V5 = 64 + 5,
  990. UNW_VE_V6 = 64 + 6,
  991. UNW_VE_V7 = 64 + 7,
  992. UNW_VE_V8 = 64 + 8,
  993. UNW_VE_V9 = 64 + 9,
  994. UNW_VE_V10 = 64 + 10,
  995. UNW_VE_V11 = 64 + 11,
  996. UNW_VE_V12 = 64 + 12,
  997. UNW_VE_V13 = 64 + 13,
  998. UNW_VE_V14 = 64 + 14,
  999. UNW_VE_V15 = 64 + 15,
  1000. UNW_VE_V16 = 64 + 16,
  1001. UNW_VE_V17 = 64 + 17,
  1002. UNW_VE_V18 = 64 + 18,
  1003. UNW_VE_V19 = 64 + 19,
  1004. UNW_VE_V20 = 64 + 20,
  1005. UNW_VE_V21 = 64 + 21,
  1006. UNW_VE_V22 = 64 + 22,
  1007. UNW_VE_V23 = 64 + 23,
  1008. UNW_VE_V24 = 64 + 24,
  1009. UNW_VE_V25 = 64 + 25,
  1010. UNW_VE_V26 = 64 + 26,
  1011. UNW_VE_V27 = 64 + 27,
  1012. UNW_VE_V28 = 64 + 28,
  1013. UNW_VE_V29 = 64 + 29,
  1014. UNW_VE_V30 = 64 + 30,
  1015. UNW_VE_V31 = 64 + 31,
  1016. UNW_VE_V32 = 64 + 32,
  1017. UNW_VE_V33 = 64 + 33,
  1018. UNW_VE_V34 = 64 + 34,
  1019. UNW_VE_V35 = 64 + 35,
  1020. UNW_VE_V36 = 64 + 36,
  1021. UNW_VE_V37 = 64 + 37,
  1022. UNW_VE_V38 = 64 + 38,
  1023. UNW_VE_V39 = 64 + 39,
  1024. UNW_VE_V40 = 64 + 40,
  1025. UNW_VE_V41 = 64 + 41,
  1026. UNW_VE_V42 = 64 + 42,
  1027. UNW_VE_V43 = 64 + 43,
  1028. UNW_VE_V44 = 64 + 44,
  1029. UNW_VE_V45 = 64 + 45,
  1030. UNW_VE_V46 = 64 + 46,
  1031. UNW_VE_V47 = 64 + 47,
  1032. UNW_VE_V48 = 64 + 48,
  1033. UNW_VE_V49 = 64 + 49,
  1034. UNW_VE_V50 = 64 + 50,
  1035. UNW_VE_V51 = 64 + 51,
  1036. UNW_VE_V52 = 64 + 52,
  1037. UNW_VE_V53 = 64 + 53,
  1038. UNW_VE_V54 = 64 + 54,
  1039. UNW_VE_V55 = 64 + 55,
  1040. UNW_VE_V56 = 64 + 56,
  1041. UNW_VE_V57 = 64 + 57,
  1042. UNW_VE_V58 = 64 + 58,
  1043. UNW_VE_V59 = 64 + 59,
  1044. UNW_VE_V60 = 64 + 60,
  1045. UNW_VE_V61 = 64 + 61,
  1046. UNW_VE_V62 = 64 + 62,
  1047. UNW_VE_V63 = 64 + 63,
  1048. UNW_VE_VM0 = 128 + 0,
  1049. UNW_VE_VM1 = 128 + 1,
  1050. UNW_VE_VM2 = 128 + 2,
  1051. UNW_VE_VM3 = 128 + 3,
  1052. UNW_VE_VM4 = 128 + 4,
  1053. UNW_VE_VM5 = 128 + 5,
  1054. UNW_VE_VM6 = 128 + 6,
  1055. UNW_VE_VM7 = 128 + 7,
  1056. UNW_VE_VM8 = 128 + 8,
  1057. UNW_VE_VM9 = 128 + 9,
  1058. UNW_VE_VM10 = 128 + 10,
  1059. UNW_VE_VM11 = 128 + 11,
  1060. UNW_VE_VM12 = 128 + 12,
  1061. UNW_VE_VM13 = 128 + 13,
  1062. UNW_VE_VM14 = 128 + 14,
  1063. UNW_VE_VM15 = 128 + 15, // = 143
  1064. // Following registers don't have DWARF register numbers.
  1065. UNW_VE_VIXR = 144,
  1066. UNW_VE_VL = 145,
  1067. };
  1068. #endif