From 09d0943f5efe92c1f3a6b9dbdf255adb0f960a22 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 8 Sep 2015 13:47:48 +0100 Subject: ART: Use .bss section for dex cache arrays. Change-Id: I5fd507973b56f6a662a02a8c1dd9ac4493fb7b36 --- runtime/arch/instruction_set.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'runtime/arch/instruction_set.h') 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) { -- cgit v1.2.3-59-g8ed1b