1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _LIBUNWINDSTACK_MACHINE_MIPS64_H
18 #define _LIBUNWINDSTACK_MACHINE_MIPS64_H
19 
20 #include <stdint.h>
21 
22 namespace unwindstack {
23 
24 enum Mips64Reg : uint16_t {
25   MIPS64_REG_R0 = 0,
26   MIPS64_REG_R1,
27   MIPS64_REG_R2,
28   MIPS64_REG_R3,
29   MIPS64_REG_R4,
30   MIPS64_REG_R5,
31   MIPS64_REG_R6,
32   MIPS64_REG_R7,
33   MIPS64_REG_R8,
34   MIPS64_REG_R9,
35   MIPS64_REG_R10,
36   MIPS64_REG_R11,
37   MIPS64_REG_R12,
38   MIPS64_REG_R13,
39   MIPS64_REG_R14,
40   MIPS64_REG_R15,
41   MIPS64_REG_R16,
42   MIPS64_REG_R17,
43   MIPS64_REG_R18,
44   MIPS64_REG_R19,
45   MIPS64_REG_R20,
46   MIPS64_REG_R21,
47   MIPS64_REG_R22,
48   MIPS64_REG_R23,
49   MIPS64_REG_R24,
50   MIPS64_REG_R25,
51   MIPS64_REG_R26,
52   MIPS64_REG_R27,
53   MIPS64_REG_R28,
54   MIPS64_REG_R29,
55   MIPS64_REG_R30,
56   MIPS64_REG_R31,
57   MIPS64_REG_PC,
58   MIPS64_REG_LAST,
59 
60   MIPS64_REG_SP = MIPS64_REG_R29,
61   MIPS64_REG_RA = MIPS64_REG_R31,
62 };
63 
64 }  // namespace unwindstack
65 
66 #endif  // _LIBUNWINDSTACK_MACHINE_MIPS64_H