diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-03-03 17:59:06 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-03-03 17:59:06 +0000 |
commit | 5a30d3f19d9c6d135bf7a395a24dc455698d5cf9 (patch) | |
tree | 3ada83652cc2f37b7a6344585c8bd72e5e99588d /qemu-common.h | |
parent | 41e37c33fc5897ff8015af8e0e3f5eb13c394b51 (diff) | |
parent | c0fd260e9da7e6e60ea6bf1b0198a804f147073f (diff) | |
download | hqemu-5a30d3f19d9c6d135bf7a395a24dc455698d5cf9.zip hqemu-5a30d3f19d9c6d135bf7a395a24dc455698d5cf9.tar.gz |
Merge branch 'upstream' of git://qemu.weilnetz.de/qemu
* 'upstream' of git://qemu.weilnetz.de/qemu:
Move definition of HOST_LONG_BITS to qemu-common.h
target-xtensa: Clean includes
target-unicore32: Clean includes
target-sh4: Clean includes
target-s390x: Clean includes
target-ppc: Clean includes
target-mips: Clean includes
target-microblaze: Clean includes
target-m68k: Clean includes
target-lm32: Clean includes
target-i386: Clean includes
target-cris: Clean includes
target-arm: Clean includes
target-alpha: Clean includes
Remove macro HOST_LONG_SIZE
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index c5e9cad..dbfce6f 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -65,6 +65,15 @@ typedef struct Monitor Monitor; #define TIME_MAX LONG_MAX #endif +/* 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 + #ifndef CONFIG_IOVEC #define CONFIG_IOVEC struct iovec { |