diff options
author | 2015-09-08 13:47:48 +0100 | |
---|---|---|
committer | 2015-10-15 16:46:41 +0100 | |
commit | 09d0943f5efe92c1f3a6b9dbdf255adb0f960a22 (patch) | |
tree | 7521bf5eefaa84f1cd18c2d601ac0891cc1598a5 /runtime/arch/instruction_set.h | |
parent | 644044333f5f6d7ba7e327619ac0d0ce4e2609d3 (diff) |
ART: Use .bss section for dex cache arrays.
Change-Id: I5fd507973b56f6a662a02a8c1dd9ac4493fb7b36
Diffstat (limited to 'runtime/arch/instruction_set.h')
-rw-r--r-- | runtime/arch/instruction_set.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/arch/instruction_set.h b/runtime/arch/instruction_set.h index 9cfd2eb2d6..ff9c0b320d 100644 --- a/runtime/arch/instruction_set.h +++ b/runtime/arch/instruction_set.h @@ -107,6 +107,22 @@ static inline size_t GetInstructionSetPointerSize(InstructionSet isa) { } } +static inline bool IsValidInstructionSet(InstructionSet isa) { + switch (isa) { + case kArm: + case kThumb2: + case kArm64: + case kX86: + case kX86_64: + case kMips: + case kMips64: + return true; + case kNone: + default: + return false; + } +} + size_t GetInstructionSetAlignment(InstructionSet isa); static inline bool Is64BitInstructionSet(InstructionSet isa) { |