root / softmmu_exec.h @ 4118a970
History | View | Annotate | Download (1.3 kB)
1 | a9049a07 | bellard | /* Common softmmu definitions and inline routines. */
|
---|---|---|---|
2 | a9049a07 | bellard | |
3 | a9049a07 | bellard | #define ldul_user ldl_user
|
4 | a9049a07 | bellard | #define ldul_kernel ldl_kernel
|
5 | a9049a07 | bellard | |
6 | a9049a07 | bellard | #define ACCESS_TYPE 0 |
7 | a9049a07 | bellard | #define MEMSUFFIX _kernel
|
8 | a9049a07 | bellard | #define DATA_SIZE 1 |
9 | a9049a07 | bellard | #include "softmmu_header.h" |
10 | a9049a07 | bellard | |
11 | a9049a07 | bellard | #define DATA_SIZE 2 |
12 | a9049a07 | bellard | #include "softmmu_header.h" |
13 | a9049a07 | bellard | |
14 | a9049a07 | bellard | #define DATA_SIZE 4 |
15 | a9049a07 | bellard | #include "softmmu_header.h" |
16 | a9049a07 | bellard | |
17 | a9049a07 | bellard | #define DATA_SIZE 8 |
18 | a9049a07 | bellard | #include "softmmu_header.h" |
19 | a9049a07 | bellard | #undef ACCESS_TYPE
|
20 | a9049a07 | bellard | #undef MEMSUFFIX
|
21 | a9049a07 | bellard | |
22 | a9049a07 | bellard | #define ACCESS_TYPE 1 |
23 | a9049a07 | bellard | #define MEMSUFFIX _user
|
24 | a9049a07 | bellard | #define DATA_SIZE 1 |
25 | a9049a07 | bellard | #include "softmmu_header.h" |
26 | a9049a07 | bellard | |
27 | a9049a07 | bellard | #define DATA_SIZE 2 |
28 | a9049a07 | bellard | #include "softmmu_header.h" |
29 | a9049a07 | bellard | |
30 | a9049a07 | bellard | #define DATA_SIZE 4 |
31 | a9049a07 | bellard | #include "softmmu_header.h" |
32 | a9049a07 | bellard | |
33 | a9049a07 | bellard | #define DATA_SIZE 8 |
34 | a9049a07 | bellard | #include "softmmu_header.h" |
35 | a9049a07 | bellard | #undef ACCESS_TYPE
|
36 | a9049a07 | bellard | #undef MEMSUFFIX
|
37 | a9049a07 | bellard | |
38 | a9049a07 | bellard | /* these access are slower, they must be as rare as possible */
|
39 | a9049a07 | bellard | #define ACCESS_TYPE 2 |
40 | a9049a07 | bellard | #define MEMSUFFIX _data
|
41 | a9049a07 | bellard | #define DATA_SIZE 1 |
42 | a9049a07 | bellard | #include "softmmu_header.h" |
43 | a9049a07 | bellard | |
44 | a9049a07 | bellard | #define DATA_SIZE 2 |
45 | a9049a07 | bellard | #include "softmmu_header.h" |
46 | a9049a07 | bellard | |
47 | a9049a07 | bellard | #define DATA_SIZE 4 |
48 | a9049a07 | bellard | #include "softmmu_header.h" |
49 | a9049a07 | bellard | |
50 | a9049a07 | bellard | #define DATA_SIZE 8 |
51 | a9049a07 | bellard | #include "softmmu_header.h" |
52 | a9049a07 | bellard | #undef ACCESS_TYPE
|
53 | a9049a07 | bellard | #undef MEMSUFFIX
|
54 | a9049a07 | bellard | |
55 | a9049a07 | bellard | #define ldub(p) ldub_data(p)
|
56 | a9049a07 | bellard | #define ldsb(p) ldsb_data(p)
|
57 | a9049a07 | bellard | #define lduw(p) lduw_data(p)
|
58 | a9049a07 | bellard | #define ldsw(p) ldsw_data(p)
|
59 | a9049a07 | bellard | #define ldl(p) ldl_data(p)
|
60 | a9049a07 | bellard | #define ldq(p) ldq_data(p)
|
61 | a9049a07 | bellard | |
62 | a9049a07 | bellard | #define stb(p, v) stb_data(p, v)
|
63 | a9049a07 | bellard | #define stw(p, v) stw_data(p, v)
|
64 | a9049a07 | bellard | #define stl(p, v) stl_data(p, v)
|
65 | a9049a07 | bellard | #define stq(p, v) stq_data(p, v) |