summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorCarlos Santos2019-10-17 14:37:13 +0200
committerRichard Henderson2020-01-22 01:18:12 +0100
commit00b5032eaddb7193f03f0a28b10286244d2e2a7b (patch)
treedb60aa670ca04cdc384eef613d6a3d9d5ad1a416 /include/exec
parentcputlb: Handle NB_MMU_MODES > TARGET_PAGE_BITS_MIN (diff)
downloadqemu-00b5032eaddb7193f03f0a28b10286244d2e2a7b.tar.gz
qemu-00b5032eaddb7193f03f0a28b10286244d2e2a7b.tar.xz
qemu-00b5032eaddb7193f03f0a28b10286244d2e2a7b.zip
util/cacheinfo: fix crash when compiling with uClibc
uClibc defines _SC_LEVEL1_ICACHE_LINESIZE and _SC_LEVEL1_DCACHE_LINESIZE but the corresponding sysconf calls returns -1, which is a valid result, meaning that the limit is indeterminate. Handle this situation using the fallback values instead of crashing due to an assertion failure. Signed-off-by: Carlos Santos <casantos@redhat.com> Message-Id: <20191017123713.30192-1-casantos@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions