xref: /freebsd/cddl/lib/libdtrace/regs_riscv.d (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1 /*
2  * SPDX-License-Identifier: CDDL 1.0
3  *
4  * Copyright 2023 Christos Margiolis <christos@FreeBSD.org>
5  */
6 
7 inline int R_ZERO = 0;
8 #pragma D binding "1.13" R_ZERO
9 inline int R_RA = 1;
10 #pragma D binding "1.13" R_RA
11 inline int R_SP = 2;
12 #pragma D binding "1.13" R_SP
13 inline int R_GP = 3;
14 #pragma D binding "1.13" R_GP
15 inline int R_TP = 4;
16 #pragma D binding "1.13" R_TP
17 inline int R_T0 = 5;
18 #pragma D binding "1.13" R_T0
19 inline int R_T1 = 6;
20 #pragma D binding "1.13" R_T1
21 inline int R_T2 = 7;
22 #pragma D binding "1.13" R_T2
23 inline int R_S0 = 8;
24 #pragma D binding "1.13" R_S0
25 inline int R_FP = 8;
26 #pragma D binding "1.13" R_FP
27 inline int R_S1 = 9;
28 #pragma D binding "1.13" R_S1
29 inline int R_A0 = 10;
30 #pragma D binding "1.13" R_A0
31 inline int R_A1 = 11;
32 #pragma D binding "1.13" R_A1
33 inline int R_A2 = 12;
34 #pragma D binding "1.13" R_A2
35 inline int R_A3 = 13;
36 #pragma D binding "1.13" R_A3
37 inline int R_A4 = 14;
38 #pragma D binding "1.13" R_A4
39 inline int R_A5 = 15;
40 #pragma D binding "1.13" R_A5
41 inline int R_A6 = 16;
42 #pragma D binding "1.13" R_A6
43 inline int R_A7 = 17;
44 #pragma D binding "1.13" R_A7
45 inline int R_S2 = 18;
46 #pragma D binding "1.13" R_S2
47 inline int R_S3 = 19;
48 #pragma D binding "1.13" R_S3
49 inline int R_S4 = 20;
50 #pragma D binding "1.13" R_S4
51 inline int R_S5 = 21;
52 #pragma D binding "1.13" R_S5
53 inline int R_S6 = 22;
54 #pragma D binding "1.13" R_S6
55 inline int R_S7 = 23;
56 #pragma D binding "1.13" R_S7
57 inline int R_S8 = 24;
58 #pragma D binding "1.13" R_S8
59 inline int R_S9 = 25;
60 #pragma D binding "1.13" R_S9
61 inline int R_S10 = 26;
62 #pragma D binding "1.13" R_S10
63 inline int R_S11 = 27;
64 #pragma D binding "1.13" R_S11
65 inline int R_T3 = 28;
66 #pragma D binding "1.13" R_T3
67 inline int R_T4 = 29;
68 #pragma D binding "1.13" R_T4
69 inline int R_T5 = 30;
70 #pragma D binding "1.13" R_T5
71 inline int R_T6 = 31;
72 #pragma D binding "1.13" R_T6
73 inline int R_PC = 32;
74 #pragma D binding "1.13" R_PC
75