mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h
qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." One of the reasons for headers to include it is HOST_LONG_BITS. Move that to its more natural home qemu/osdep.h, to facilitate removing these ill-advised includes later on. This also lets us use HOST_LONG_BITS in bswap.h instead of duplicating its definition there to avoid cyclic inclusion. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a7c4d9c7ca
commit
a813963216
3 changed files with 11 additions and 13 deletions
|
@ -23,15 +23,6 @@
|
|||
#include "qemu/option.h"
|
||||
#include "qemu/host-utils.h"
|
||||
|
||||
/* HOST_LONG_BITS is the size of a native pointer in bits. */
|
||||
#if UINTPTR_MAX == UINT32_MAX
|
||||
# define HOST_LONG_BITS 32
|
||||
#elif UINTPTR_MAX == UINT64_MAX
|
||||
# define HOST_LONG_BITS 64
|
||||
#else
|
||||
# error Unknown pointer size
|
||||
#endif
|
||||
|
||||
void cpu_ticks_init(void);
|
||||
|
||||
/* icount */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue