blob: 1adda9fbdb9e3fbfc044afe45119c51523b9fc13 [file] [log] [blame]
aurel321609cd42008-12-08 18:12:04 +00001#ifndef QEMU_TYPES_H
2#define QEMU_TYPES_H
3#include "cpu.h"
4
5#ifdef TARGET_ABI32
6typedef uint32_t abi_ulong;
7typedef int32_t abi_long;
8#define TARGET_ABI_FMT_lx "%08x"
9#define TARGET_ABI_FMT_ld "%d"
10#define TARGET_ABI_FMT_lu "%u"
11#define TARGET_ABI_BITS 32
12#else
13typedef target_ulong abi_ulong;
14typedef target_long abi_long;
15#define TARGET_ABI_FMT_lx TARGET_FMT_lx
16#define TARGET_ABI_FMT_ld TARGET_FMT_ld
17#define TARGET_ABI_FMT_lu TARGET_FMT_lu
18#define TARGET_ABI_BITS TARGET_LONG_BITS
19/* for consistency, define ABI32 too */
20#if TARGET_ABI_BITS == 32
21#define TARGET_ABI32 1
22#endif
23#endif
24#endif