1 /* 2 * Copyright (C) 2009 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 ART_RUNTIME_ARCH_ARM_REGISTERS_ARM_H_ 18 #define ART_RUNTIME_ARCH_ARM_REGISTERS_ARM_H_ 19 20 #include <iosfwd> 21 22 namespace art { 23 namespace arm { 24 25 // Values for registers. 26 enum Register { 27 R0 = 0, 28 R1 = 1, 29 R2 = 2, 30 R3 = 3, 31 R4 = 4, 32 R5 = 5, 33 R6 = 6, 34 R7 = 7, 35 R8 = 8, 36 R9 = 9, 37 R10 = 10, 38 R11 = 11, 39 R12 = 12, 40 R13 = 13, 41 R14 = 14, 42 R15 = 15, 43 MR = 8, // ART Marking Register 44 TR = 9, // ART Thread Register 45 FP = 11, 46 IP = 12, 47 SP = 13, 48 LR = 14, 49 PC = 15, 50 kNumberOfCoreRegisters = 16, 51 kNoRegister = -1, 52 }; 53 std::ostream& operator<<(std::ostream& os, const Register& rhs); 54 55 56 // Values for single-precision floating point registers. 57 enum SRegister { 58 S0 = 0, 59 S1 = 1, 60 S2 = 2, 61 S3 = 3, 62 S4 = 4, 63 S5 = 5, 64 S6 = 6, 65 S7 = 7, 66 S8 = 8, 67 S9 = 9, 68 S10 = 10, 69 S11 = 11, 70 S12 = 12, 71 S13 = 13, 72 S14 = 14, 73 S15 = 15, 74 S16 = 16, 75 S17 = 17, 76 S18 = 18, 77 S19 = 19, 78 S20 = 20, 79 S21 = 21, 80 S22 = 22, 81 S23 = 23, 82 S24 = 24, 83 S25 = 25, 84 S26 = 26, 85 S27 = 27, 86 S28 = 28, 87 S29 = 29, 88 S30 = 30, 89 S31 = 31, 90 kNumberOfSRegisters = 32, 91 kNoSRegister = -1, 92 }; 93 std::ostream& operator<<(std::ostream& os, const SRegister& rhs); 94 95 } // namespace arm 96 } // namespace art 97 98 #endif // ART_RUNTIME_ARCH_ARM_REGISTERS_ARM_H_ 99