00001 #ifndef QEMU_TYPES_H
00002 #define QEMU_TYPES_H
00003 #include "cpu.h"
00004
00005 #ifdef TARGET_ABI32
00006 typedef uint32_t abi_ulong;
00007 typedef int32_t abi_long;
00008 #define TARGET_ABI_FMT_lx "%08x"
00009 #define TARGET_ABI_FMT_ld "%d"
00010 #define TARGET_ABI_FMT_lu "%u"
00011 #define TARGET_ABI_BITS 32
00012 #else
00013 typedef target_ulong abi_ulong;
00014 typedef target_long abi_long;
00015 #define TARGET_ABI_FMT_lx TARGET_FMT_lx
00016 #define TARGET_ABI_FMT_ld TARGET_FMT_ld
00017 #define TARGET_ABI_FMT_lu TARGET_FMT_lu
00018 #define TARGET_ABI_BITS TARGET_LONG_BITS
00019
00020 #if TARGET_ABI_BITS == 32
00021 #define TARGET_ABI32 1
00022 #endif
00023 #endif
00024 #endif