diff options
| author | Peter Zotov <whitequark@whitequark.org> | 2015-08-31 05:26:37 +0000 |
|---|---|---|
| committer | Peter Zotov <whitequark@whitequark.org> | 2015-08-31 05:26:37 +0000 |
| commit | ce4c5c9849f4b3c5d882d1466b0790ea56eb5904 (patch) | |
| tree | 26932a7e947d539ffe406a2cd7d0b9dae95c1d6f /libunwind/include | |
| parent | afeac301b1acd4acf787b1f613addbb1136c1908 (diff) | |
| download | bcm5719-llvm-ce4c5c9849f4b3c5d882d1466b0790ea56eb5904.tar.gz bcm5719-llvm-ce4c5c9849f4b3c5d882d1466b0790ea56eb5904.zip | |
[libunwind] Add support for OpenRISC 1000.
This patch makes no assumptions on ABI past the ABI defined in
the OpenRISC 1000 spec except that the DWARF register numbers will
be 0-31 for registers r0-r31, which is true for both gcc and
clang at the moment.
llvm-svn: 246413
Diffstat (limited to 'libunwind/include')
| -rw-r--r-- | libunwind/include/libunwind.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libunwind/include/libunwind.h b/libunwind/include/libunwind.h index 4a75a7ba175..6045becc01a 100644 --- a/libunwind/include/libunwind.h +++ b/libunwind/include/libunwind.h @@ -497,4 +497,40 @@ enum { // 8192-16383 -- Unspecified vendor co-processor register. }; +// OpenRISC1000 register numbers +enum { + UNW_OR1K_R0 = 0, + UNW_OR1K_R1 = 1, + UNW_OR1K_R2 = 2, + UNW_OR1K_R3 = 3, + UNW_OR1K_R4 = 4, + UNW_OR1K_R5 = 5, + UNW_OR1K_R6 = 6, + UNW_OR1K_R7 = 7, + UNW_OR1K_R8 = 8, + UNW_OR1K_R9 = 9, + UNW_OR1K_R10 = 10, + UNW_OR1K_R11 = 11, + UNW_OR1K_R12 = 12, + UNW_OR1K_R13 = 13, + UNW_OR1K_R14 = 14, + UNW_OR1K_R15 = 15, + UNW_OR1K_R16 = 16, + UNW_OR1K_R17 = 17, + UNW_OR1K_R18 = 18, + UNW_OR1K_R19 = 19, + UNW_OR1K_R20 = 20, + UNW_OR1K_R21 = 21, + UNW_OR1K_R22 = 22, + UNW_OR1K_R23 = 23, + UNW_OR1K_R24 = 24, + UNW_OR1K_R25 = 25, + UNW_OR1K_R26 = 26, + UNW_OR1K_R27 = 27, + UNW_OR1K_R28 = 28, + UNW_OR1K_R29 = 29, + UNW_OR1K_R30 = 30, + UNW_OR1K_R31 = 31, +}; + #endif |

