sh4/r2d: update pci, usb and kernel management
[qemu/sh4.git] / linux-user / qemu-types.h
blob1adda9fbdb9e3fbfc044afe45119c51523b9fc13
1 #ifndef QEMU_TYPES_H
2 #define QEMU_TYPES_H
3 #include "cpu.h"
5 #ifdef TARGET_ABI32
6 typedef uint32_t abi_ulong;
7 typedef 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
13 typedef target_ulong abi_ulong;
14 typedef 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