OSDN Git Service

MIPS32: Fix MipsInstructionSetFeatures::FromVariant()
authorAlexey Frunze <Alexey.Frunze@imgtec.com>
Tue, 28 Jun 2016 23:55:04 +0000 (16:55 -0700)
committerAlexey Frunze <Alexey.Frunze@imgtec.com>
Thu, 30 Jun 2016 21:33:51 +0000 (14:33 -0700)
commitc42a4d5973c27f192b4fd144d742e277545f96be
treea2748e27974d64fb583e79a32c219559cd408393
parent04e5e590f4eece8bd88b36d761edd8733f5065a1
MIPS32: Fix MipsInstructionSetFeatures::FromVariant()

Make it possible to completely override build-time instruction
set features with the provided variant string. Add sanity checks.
Comment on the "default" variant behavior.

Tested:
- test-art-host-gtest
- test-art-target-gtest and test-art-target-run-test-optimizing on:
  - MIPS32R6 (2nd arch) QEMU
  - CI20 board

Change-Id: I2470b7115a5b5e333e2e7a156e68c39945fb02e9
runtime/arch/mips/instruction_set_features_mips.cc
runtime/arch/mips/instruction_set_features_mips.h