summaryrefslogtreecommitdiffstats
path: root/include/qemu/osdep.h
diff options
context:
space:
mode:
authorEmilio G. Cota2017-06-07 02:17:04 +0200
committerRichard Henderson2017-06-19 20:10:59 +0200
commitb255b2c8a5484742606e8760870ba3e14d0c9605 (patch)
treea49a5f2b5c535768a0dc2b14dd90234c1cb009e9 /include/qemu/osdep.h
parentMerge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20170614-1' into s... (diff)
downloadqemu-b255b2c8a5484742606e8760870ba3e14d0c9605.tar.gz
qemu-b255b2c8a5484742606e8760870ba3e14d0c9605.tar.xz
qemu-b255b2c8a5484742606e8760870ba3e14d0c9605.zip
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>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r--include/qemu/osdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index fb008a2e65..85596341fa 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -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