Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ruy/cpuinfo.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ruy/cpuinfo.cc b/ruy/cpuinfo.cc
index a3e75d7..8a0e912 100644
--- a/ruy/cpuinfo.cc
+++ b/ruy/cpuinfo.cc
@@ -56,6 +56,9 @@ void QueryCacheParams(CpuCacheParams* cache_params) {
continue; // continue, not break, it is possible to have L1+L3 but no
// L2.
}
+ if (!cache->processor_count) {
+ continue; // crashes from Chrome on Android suggests that might happen?
+ }
const bool is_local =
cpuinfo_get_processor(cache->processor_start)->core ==
cpuinfo_get_processor(cache->processor_start +