summaryrefslogtreecommitdiff
path: root/runtime/arch/instruction_set_features.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-04-03 13:46:54 -0700
committer Andreas Gampe <agampe@google.com> 2015-04-03 14:22:56 -0700
commit24a05f449a6b4b0e4944c2055f0c7490d6a09861 (patch)
tree6d05d580ae522e858a28b9d6c62b9ac9095548dd /runtime/arch/instruction_set_features.cc
parent425587d25832145a45a0b76beaa93996b0226f0d (diff)
ART: Add support for "silvermont" variant
The variant is already supported in the build system and wired up for the Nexus Player (fugu). The values are copied from the build system and correspond to documentation in, e.g., http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf chapter 15, section 1.1. Change-Id: I9facaa9d5b8bae3d98cf48f2969d02d11ebfe0e4
Diffstat (limited to 'runtime/arch/instruction_set_features.cc')
-rw-r--r--runtime/arch/instruction_set_features.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/arch/instruction_set_features.cc b/runtime/arch/instruction_set_features.cc
index db4b0b14ce..898f83a8d8 100644
--- a/runtime/arch/instruction_set_features.cc
+++ b/runtime/arch/instruction_set_features.cc
@@ -288,10 +288,10 @@ const X86_64InstructionSetFeatures* InstructionSetFeatures::AsX86_64InstructionS
return down_cast<const X86_64InstructionSetFeatures*>(this);
}
-bool InstructionSetFeatures::FindVariantInArray(const char* variants[], size_t num_variants,
+bool InstructionSetFeatures::FindVariantInArray(const char* const variants[], size_t num_variants,
const std::string& variant) {
- const char** begin = variants;
- const char** end = begin + num_variants;
+ const char* const * begin = variants;
+ const char* const * end = begin + num_variants;
return std::find(begin, end, variant) != end;
}