diff options
Diffstat (limited to 'runtime/arch/instruction_set.cc')
-rw-r--r-- | runtime/arch/instruction_set.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/runtime/arch/instruction_set.cc b/runtime/arch/instruction_set.cc index b35e0889e4..8f64dcd306 100644 --- a/runtime/arch/instruction_set.cc +++ b/runtime/arch/instruction_set.cc @@ -19,11 +19,31 @@ // Explicitly include our own elf.h to avoid Linux and other dependencies. #include "../elf.h" #include "base/bit_utils.h" +#include "base/logging.h" #include "globals.h" namespace art { -const char* GetInstructionSetString(const InstructionSet isa) { +void InstructionSetAbort(InstructionSet isa) { + switch (isa) { + case kArm: + case kThumb2: + case kArm64: + case kX86: + case kX86_64: + case kMips: + case kMips64: + case kNone: + LOG(FATAL) << "Unsupported instruction set " << isa; + UNREACHABLE(); + + default: + LOG(FATAL) << "Unknown ISA " << isa; + UNREACHABLE(); + } +} + +const char* GetInstructionSetString(InstructionSet isa) { switch (isa) { case kArm: case kThumb2: |