From Bionic's sysconf.cpp:
// We do not have actual implementations for cache queries.
// It's valid to return 0 as the result is unknown.
case _SC_LEVEL1_ICACHE_SIZE: return 0;
case _SC_LEVEL1_ICACHE_ASSOC: return 0;
case _SC_LEVEL1_ICACHE_LINESIZE: return 0;
case _SC_LEVEL1_DCACHE_SIZE: return 0;
case _SC_LEVEL1_DCACHE_ASSOC: return 0;
case _SC_LEVEL1_DCACHE_LINESIZE: return 0;
So actually it already should be set to 0, but it appears some devices set it
to -1 which triggers assertion error.