mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 15:12:07 -06:00
include: Move qemu_[id]cache_* declarations to new qemu/cacheinfo.h
The qemu_icache_linesize, qemu_icache_linesize_log, qemu_dcache_linesize, and qemu_dcache_linesize_log variables are not used in many files. Move them out of osdep.h to a new qemu/cacheinfo.h, and document them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220208200856.3558249-5-peter.maydell@linaro.org
This commit is contained in:
parent
5b3e34315a
commit
ad768e6f2a
9 changed files with 28 additions and 5 deletions
21
include/qemu/cacheinfo.h
Normal file
21
include/qemu/cacheinfo.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* QEMU host cacheinfo information
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
#ifndef QEMU_CACHEINFO_H
|
||||
#define QEMU_CACHEINFO_H
|
||||
|
||||
/*
|
||||
* These variables represent our best guess at the host icache and
|
||||
* dcache sizes, expressed both as the size in bytes and as the
|
||||
* base-2 log of the size in bytes. They are initialized at startup
|
||||
* (via an attribute 'constructor' function).
|
||||
*/
|
||||
extern int qemu_icache_linesize;
|
||||
extern int qemu_icache_linesize_log;
|
||||
extern int qemu_dcache_linesize;
|
||||
extern int qemu_dcache_linesize_log;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue