diff options
-rw-r--r-- | ruy/cpuinfo.cc | 3 |
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 + |