diff options
author | 2004-01-24 15:26:06 +0000 | |
---|---|---|
committer | 2004-01-24 15:26:06 +0000 | |
commit | 35b66fc4f9dd2c4c3fb8e26c5c1480965b81bbd4 (patch) | |
tree | 783786d117cfbfc5f339061cbd5c97e418f5c74e /thunk.h | |
parent | virtual memory access for gdbstub (diff) | |
download | qemu-kvm-35b66fc4f9dd2c4c3fb8e26c5c1480965b81bbd4.tar.gz qemu-kvm-35b66fc4f9dd2c4c3fb8e26c5c1480965b81bbd4.tar.bz2 qemu-kvm-35b66fc4f9dd2c4c3fb8e26c5c1480965b81bbd4.zip |
correct target_ulong definition
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@582 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'thunk.h')
-rw-r--r-- | thunk.h | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -21,7 +21,7 @@ #define THUNK_H #include <inttypes.h> -#include "config.h" +#include "cpu.h" #include "bswap.h" @@ -29,11 +29,6 @@ #define BSWAP_NEEDED #endif -/* XXX: autoconf */ -#define TARGET_LONG_BITS 32 - -#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8) - #ifdef BSWAP_NEEDED static inline uint16_t tswap16(uint16_t s) @@ -105,16 +100,6 @@ static inline void tswap64s(uint64_t *s) #define tswapls(s) tswap64s((uint64_t *)(s)) #endif -#if TARGET_LONG_SIZE == 4 -typedef int32_t target_long; -typedef uint32_t target_ulong; -#elif TARGET_LONG_SIZE == 8 -typedef int64_t target_long; -typedef uint64_t target_ulong; -#else -#error TARGET_LONG_SIZE undefined -#endif - /* types enums definitions */ typedef enum argtype { |