root / bsd-user / qemu-types.h @ f8d3d128
History | View | Annotate | Download (595 Bytes)
1 | 1609cd44 | aurel32 | #ifndef QEMU_TYPES_H
|
---|---|---|---|
2 | 1609cd44 | aurel32 | #define QEMU_TYPES_H
|
3 | 1609cd44 | aurel32 | #include "cpu.h" |
4 | 1609cd44 | aurel32 | |
5 | 1609cd44 | aurel32 | #ifdef TARGET_ABI32
|
6 | 1609cd44 | aurel32 | typedef uint32_t abi_ulong;
|
7 | 1609cd44 | aurel32 | typedef int32_t abi_long;
|
8 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_lx "%08x" |
9 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_ld "%d" |
10 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_lu "%u" |
11 | 1609cd44 | aurel32 | #define TARGET_ABI_BITS 32 |
12 | 1609cd44 | aurel32 | #else
|
13 | 1609cd44 | aurel32 | typedef target_ulong abi_ulong;
|
14 | 1609cd44 | aurel32 | typedef target_long abi_long;
|
15 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_lx TARGET_FMT_lx
|
16 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_ld TARGET_FMT_ld
|
17 | 1609cd44 | aurel32 | #define TARGET_ABI_FMT_lu TARGET_FMT_lu
|
18 | 1609cd44 | aurel32 | #define TARGET_ABI_BITS TARGET_LONG_BITS
|
19 | 1609cd44 | aurel32 | /* for consistency, define ABI32 too */
|
20 | 1609cd44 | aurel32 | #if TARGET_ABI_BITS == 32 |
21 | 1609cd44 | aurel32 | #define TARGET_ABI32 1 |
22 | 1609cd44 | aurel32 | #endif
|
23 | 1609cd44 | aurel32 | #endif
|
24 | 1609cd44 | aurel32 | #endif |