mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
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: Richard Henderson <rth@twiddle.net> Suggested-by: Geert Martin Ijewski <gm.ijewski@web.de> Tested-by: Geert Martin Ijewski <gm.ijewski@web.de> Signed-off-by: Emilio 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: Richard Henderson <rth@twiddle.net>
This commit is contained in:
committed by
Richard Henderson
parent
cef8fd6836
commit
b255b2c8a5
@ -483,4 +483,7 @@ char *qemu_get_pid_name(pid_t pid);
|
||||
*/
|
||||
pid_t qemu_fork(Error **errp);
|
||||
|
||||
extern int qemu_icache_linesize;
|
||||
extern int qemu_dcache_linesize;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user