util: add cacheinfo
Add helpers to gather cache info from the host at init-time. For now, only export the host's I/D cache line sizes, which we will use to improve cache locality to avoid false sharing. Suggested-by: NRichard Henderson <rth@twiddle.net> Suggested-by: NGeert Martin Ijewski <gm.ijewski@web.de> Tested-by: NGeert Martin Ijewski <gm.ijewski@web.de> Signed-off-by: NEmilio G. Cota <cota@braap.org> Message-Id: <1496794624-4083-1-git-send-email-cota@braap.org> [rth: Move all implementations from tcg/ppc/] Signed-off-by: NRichard Henderson <rth@twiddle.net>
Showing
util/cacheinfo.c
0 → 100644
想要评论请 注册 或 登录