Revision a9049a07 target-sparc/exec.h
b/target-sparc/exec.h | ||
---|---|---|
83 | 83 |
|
84 | 84 |
/* XXX: move that to a generic header */ |
85 | 85 |
#if !defined(CONFIG_USER_ONLY) |
86 |
|
|
87 |
#define ldul_user ldl_user |
|
88 |
#define ldul_kernel ldl_kernel |
|
89 |
|
|
90 |
#define ACCESS_TYPE 0 |
|
91 |
#define MEMSUFFIX _kernel |
|
92 |
#define DATA_SIZE 1 |
|
93 |
#include "softmmu_header.h" |
|
94 |
|
|
95 |
#define DATA_SIZE 2 |
|
96 |
#include "softmmu_header.h" |
|
97 |
|
|
98 |
#define DATA_SIZE 4 |
|
99 |
#include "softmmu_header.h" |
|
100 |
|
|
101 |
#define DATA_SIZE 8 |
|
102 |
#include "softmmu_header.h" |
|
103 |
#undef ACCESS_TYPE |
|
104 |
#undef MEMSUFFIX |
|
105 |
|
|
106 |
#define ACCESS_TYPE 1 |
|
107 |
#define MEMSUFFIX _user |
|
108 |
#define DATA_SIZE 1 |
|
109 |
#include "softmmu_header.h" |
|
110 |
|
|
111 |
#define DATA_SIZE 2 |
|
112 |
#include "softmmu_header.h" |
|
113 |
|
|
114 |
#define DATA_SIZE 4 |
|
115 |
#include "softmmu_header.h" |
|
116 |
|
|
117 |
#define DATA_SIZE 8 |
|
118 |
#include "softmmu_header.h" |
|
119 |
#undef ACCESS_TYPE |
|
120 |
#undef MEMSUFFIX |
|
121 |
|
|
122 |
/* these access are slower, they must be as rare as possible */ |
|
123 |
#define ACCESS_TYPE 2 |
|
124 |
#define MEMSUFFIX _data |
|
125 |
#define DATA_SIZE 1 |
|
126 |
#include "softmmu_header.h" |
|
127 |
|
|
128 |
#define DATA_SIZE 2 |
|
129 |
#include "softmmu_header.h" |
|
130 |
|
|
131 |
#define DATA_SIZE 4 |
|
132 |
#include "softmmu_header.h" |
|
133 |
|
|
134 |
#define DATA_SIZE 8 |
|
135 |
#include "softmmu_header.h" |
|
136 |
#undef ACCESS_TYPE |
|
137 |
#undef MEMSUFFIX |
|
138 |
|
|
139 |
#define ldub(p) ldub_data(p) |
|
140 |
#define ldsb(p) ldsb_data(p) |
|
141 |
#define lduw(p) lduw_data(p) |
|
142 |
#define ldsw(p) ldsw_data(p) |
|
143 |
#define ldl(p) ldl_data(p) |
|
144 |
#define ldq(p) ldq_data(p) |
|
145 |
|
|
146 |
#define stb(p, v) stb_data(p, v) |
|
147 |
#define stw(p, v) stw_data(p, v) |
|
148 |
#define stl(p, v) stl_data(p, v) |
|
149 |
#define stq(p, v) stq_data(p, v) |
|
150 |
|
|
86 |
#include "softmmu_exec.h" |
|
151 | 87 |
#endif /* !defined(CONFIG_USER_ONLY) */ |
152 | 88 |
|
153 | 89 |
static inline void env_to_regs(void) |
Also available in: Unified diff