arm_gic.c error message fix, by Adam Lackorzynski.
[qemu/dscho.git] / softmmu_exec.h
blob3b789eeb755cbcb96980c6bdc76315ceb4340d45
1 /* Common softmmu definitions and inline routines. */
3 #define ldul_user ldl_user
4 #define ldul_kernel ldl_kernel
6 #define ACCESS_TYPE 0
7 #define MEMSUFFIX _kernel
8 #define DATA_SIZE 1
9 #include "softmmu_header.h"
11 #define DATA_SIZE 2
12 #include "softmmu_header.h"
14 #define DATA_SIZE 4
15 #include "softmmu_header.h"
17 #define DATA_SIZE 8
18 #include "softmmu_header.h"
19 #undef ACCESS_TYPE
20 #undef MEMSUFFIX
22 #define ACCESS_TYPE 1
23 #define MEMSUFFIX _user
24 #define DATA_SIZE 1
25 #include "softmmu_header.h"
27 #define DATA_SIZE 2
28 #include "softmmu_header.h"
30 #define DATA_SIZE 4
31 #include "softmmu_header.h"
33 #define DATA_SIZE 8
34 #include "softmmu_header.h"
35 #undef ACCESS_TYPE
36 #undef MEMSUFFIX
38 /* these access are slower, they must be as rare as possible */
39 #define ACCESS_TYPE 2
40 #define MEMSUFFIX _data
41 #define DATA_SIZE 1
42 #include "softmmu_header.h"
44 #define DATA_SIZE 2
45 #include "softmmu_header.h"
47 #define DATA_SIZE 4
48 #include "softmmu_header.h"
50 #define DATA_SIZE 8
51 #include "softmmu_header.h"
52 #undef ACCESS_TYPE
53 #undef MEMSUFFIX
55 #define ldub(p) ldub_data(p)
56 #define ldsb(p) ldsb_data(p)
57 #define lduw(p) lduw_data(p)
58 #define ldsw(p) ldsw_data(p)
59 #define ldl(p) ldl_data(p)
60 #define ldq(p) ldq_data(p)
62 #define stb(p, v) stb_data(p, v)
63 #define stw(p, v) stw_data(p, v)
64 #define stl(p, v) stl_data(p, v)
65 #define stq(p, v) stq_data(p, v)