diff options
author | Emilio G. Cota | 2017-06-07 02:17:04 +0200 |
---|---|---|
committer | Richard Henderson | 2017-06-19 20:10:59 +0200 |
commit | b255b2c8a5484742606e8760870ba3e14d0c9605 (patch) | |
tree | a49a5f2b5c535768a0dc2b14dd90234c1cb009e9 /include/qemu/osdep.h | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20170614-1' into s... (diff) | |
download | qemu-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.h | 3 |
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 |