From 1e9cf89d3667d6342dc08f51d35732af5f41fdd4 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 3 Aug 2022 22:53:45 +0100 Subject: For cortex-a75/a55 validate features with hwcaps. Pixel3a is wrongly reporting as cortex-a75, it should report kryo360 instead. Test: ART module on pixel3a Bug: 241290778 Change-Id: I97e99192298becdf2af6f28e2e31b510f722c4e1 --- runtime/arch/instruction_set_features.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/arch/instruction_set_features.h') diff --git a/runtime/arch/instruction_set_features.h b/runtime/arch/instruction_set_features.h index b80d36f153..cee8c5d42f 100644 --- a/runtime/arch/instruction_set_features.h +++ b/runtime/arch/instruction_set_features.h @@ -39,6 +39,12 @@ class InstructionSetFeatures { const std::string& variant, std::string* error_msg); + // Process a CPU variant string for the given ISA and make sure the features advertised + // are supported by the hardware. This is needed for Pixel3a which wrongly + // reports itself as cortex-a75. + static std::unique_ptr FromVariantAndHwcap( + InstructionSet isa, const std::string& variant, std::string* error_msg); + // Parse a bitmap for the given isa and create an InstructionSetFeatures. static std::unique_ptr FromBitmap(InstructionSet isa, uint32_t bitmap); -- cgit v1.2.3-59-g8ed1b