root / softmmu_header.h @ 1d6e34fd
History | View | Annotate | Download (9.7 kB)
1 | b92e5a22 | bellard | /*
|
---|---|---|---|
2 | b92e5a22 | bellard | * Software MMU support
|
3 | b92e5a22 | bellard | *
|
4 | b92e5a22 | bellard | * Copyright (c) 2003 Fabrice Bellard
|
5 | b92e5a22 | bellard | *
|
6 | b92e5a22 | bellard | * This library is free software; you can redistribute it and/or
|
7 | b92e5a22 | bellard | * modify it under the terms of the GNU Lesser General Public
|
8 | b92e5a22 | bellard | * License as published by the Free Software Foundation; either
|
9 | b92e5a22 | bellard | * version 2 of the License, or (at your option) any later version.
|
10 | b92e5a22 | bellard | *
|
11 | b92e5a22 | bellard | * This library is distributed in the hope that it will be useful,
|
12 | b92e5a22 | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | b92e5a22 | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | b92e5a22 | bellard | * Lesser General Public License for more details.
|
15 | b92e5a22 | bellard | *
|
16 | b92e5a22 | bellard | * You should have received a copy of the GNU Lesser General Public
|
17 | b92e5a22 | bellard | * License along with this library; if not, write to the Free Software
|
18 | b92e5a22 | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | b92e5a22 | bellard | */
|
20 | b92e5a22 | bellard | #if DATA_SIZE == 8 |
21 | b92e5a22 | bellard | #define SUFFIX q
|
22 | 61382a50 | bellard | #define USUFFIX q
|
23 | b92e5a22 | bellard | #define DATA_TYPE uint64_t
|
24 | b92e5a22 | bellard | #elif DATA_SIZE == 4 |
25 | b92e5a22 | bellard | #define SUFFIX l
|
26 | 61382a50 | bellard | #define USUFFIX l
|
27 | b92e5a22 | bellard | #define DATA_TYPE uint32_t
|
28 | b92e5a22 | bellard | #elif DATA_SIZE == 2 |
29 | b92e5a22 | bellard | #define SUFFIX w
|
30 | 61382a50 | bellard | #define USUFFIX uw
|
31 | b92e5a22 | bellard | #define DATA_TYPE uint16_t
|
32 | b92e5a22 | bellard | #define DATA_STYPE int16_t
|
33 | b92e5a22 | bellard | #elif DATA_SIZE == 1 |
34 | b92e5a22 | bellard | #define SUFFIX b
|
35 | 61382a50 | bellard | #define USUFFIX ub
|
36 | b92e5a22 | bellard | #define DATA_TYPE uint8_t
|
37 | b92e5a22 | bellard | #define DATA_STYPE int8_t
|
38 | b92e5a22 | bellard | #else
|
39 | b92e5a22 | bellard | #error unsupported data size
|
40 | b92e5a22 | bellard | #endif
|
41 | b92e5a22 | bellard | |
42 | 61382a50 | bellard | #if ACCESS_TYPE == 0 |
43 | 61382a50 | bellard | |
44 | 61382a50 | bellard | #define CPU_MEM_INDEX 0 |
45 | 61382a50 | bellard | #define MMUSUFFIX _mmu
|
46 | 61382a50 | bellard | |
47 | 61382a50 | bellard | #elif ACCESS_TYPE == 1 |
48 | 61382a50 | bellard | |
49 | 61382a50 | bellard | #define CPU_MEM_INDEX 1 |
50 | 61382a50 | bellard | #define MMUSUFFIX _mmu
|
51 | 61382a50 | bellard | |
52 | 61382a50 | bellard | #elif ACCESS_TYPE == 2 |
53 | 61382a50 | bellard | |
54 | 2d603d22 | bellard | #ifdef TARGET_I386
|
55 | 61382a50 | bellard | #define CPU_MEM_INDEX ((env->hflags & HF_CPL_MASK) == 3) |
56 | 2d603d22 | bellard | #elif defined (TARGET_PPC)
|
57 | 2d603d22 | bellard | #define CPU_MEM_INDEX (msr_pr)
|
58 | e95c8d51 | bellard | #elif defined (TARGET_SPARC)
|
59 | e95c8d51 | bellard | #define CPU_MEM_INDEX ((env->psrs) == 0) |
60 | 2d603d22 | bellard | #endif
|
61 | 61382a50 | bellard | #define MMUSUFFIX _mmu
|
62 | 61382a50 | bellard | |
63 | 61382a50 | bellard | #elif ACCESS_TYPE == 3 |
64 | 61382a50 | bellard | |
65 | 2d603d22 | bellard | #ifdef TARGET_I386
|
66 | 61382a50 | bellard | #define CPU_MEM_INDEX ((env->hflags & HF_CPL_MASK) == 3) |
67 | 2d603d22 | bellard | #elif defined (TARGET_PPC)
|
68 | 2d603d22 | bellard | #define CPU_MEM_INDEX (msr_pr)
|
69 | e95c8d51 | bellard | #elif defined (TARGET_SPARC)
|
70 | e95c8d51 | bellard | #define CPU_MEM_INDEX ((env->psrs) == 0) |
71 | 2d603d22 | bellard | #endif
|
72 | 61382a50 | bellard | #define MMUSUFFIX _cmmu
|
73 | 61382a50 | bellard | |
74 | b92e5a22 | bellard | #else
|
75 | 61382a50 | bellard | #error invalid ACCESS_TYPE
|
76 | b92e5a22 | bellard | #endif
|
77 | b92e5a22 | bellard | |
78 | b92e5a22 | bellard | #if DATA_SIZE == 8 |
79 | b92e5a22 | bellard | #define RES_TYPE uint64_t
|
80 | b92e5a22 | bellard | #else
|
81 | b92e5a22 | bellard | #define RES_TYPE int |
82 | b92e5a22 | bellard | #endif
|
83 | b92e5a22 | bellard | |
84 | b92e5a22 | bellard | |
85 | c27004ec | bellard | DATA_TYPE REGPARM(1) glue(glue(__ld, SUFFIX), MMUSUFFIX)(target_ulong addr,
|
86 | 61382a50 | bellard | int is_user);
|
87 | c27004ec | bellard | void REGPARM(2) glue(glue(__st, SUFFIX), MMUSUFFIX)(target_ulong addr, DATA_TYPE v, int is_user); |
88 | b92e5a22 | bellard | |
89 | c27004ec | bellard | #if (DATA_SIZE <= 4) && (TARGET_LONG_BITS == 32) && defined(__i386__) && \ |
90 | c27004ec | bellard | (ACCESS_TYPE <= 1) && defined(ASM_SOFTMMU)
|
91 | e16c53fa | bellard | |
92 | c27004ec | bellard | static inline RES_TYPE glue(glue(ld, USUFFIX), MEMSUFFIX)(target_ulong ptr) |
93 | e16c53fa | bellard | { |
94 | e16c53fa | bellard | int res;
|
95 | e16c53fa | bellard | |
96 | e16c53fa | bellard | asm volatile ("movl %1, %%edx\n" |
97 | e16c53fa | bellard | "movl %1, %%eax\n"
|
98 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
99 | e16c53fa | bellard | "andl %4, %%eax\n"
|
100 | e16c53fa | bellard | "andl %2, %%edx\n"
|
101 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
102 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
103 | e16c53fa | bellard | "movl %1, %%eax\n"
|
104 | e16c53fa | bellard | "je 1f\n"
|
105 | e16c53fa | bellard | "pushl %6\n"
|
106 | e16c53fa | bellard | "call %7\n"
|
107 | e16c53fa | bellard | "popl %%edx\n"
|
108 | e16c53fa | bellard | "movl %%eax, %0\n"
|
109 | e16c53fa | bellard | "jmp 2f\n"
|
110 | e16c53fa | bellard | "1:\n"
|
111 | e16c53fa | bellard | "addl 4(%%edx), %%eax\n"
|
112 | e16c53fa | bellard | #if DATA_SIZE == 1 |
113 | e16c53fa | bellard | "movzbl (%%eax), %0\n"
|
114 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
115 | e16c53fa | bellard | "movzwl (%%eax), %0\n"
|
116 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
117 | e16c53fa | bellard | "movl (%%eax), %0\n"
|
118 | e16c53fa | bellard | #else
|
119 | e16c53fa | bellard | #error unsupported size
|
120 | e16c53fa | bellard | #endif
|
121 | e16c53fa | bellard | "2:\n"
|
122 | e16c53fa | bellard | : "=r" (res)
|
123 | e16c53fa | bellard | : "r" (ptr),
|
124 | e16c53fa | bellard | "i" ((CPU_TLB_SIZE - 1) << 3), |
125 | e16c53fa | bellard | "i" (TARGET_PAGE_BITS - 3), |
126 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
127 | e16c53fa | bellard | "m" (*(uint32_t *)offsetof(CPUState, tlb_read[CPU_MEM_INDEX][0].address)), |
128 | e16c53fa | bellard | "i" (CPU_MEM_INDEX),
|
129 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__ld, SUFFIX), MMUSUFFIX))
|
130 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
131 | e16c53fa | bellard | return res;
|
132 | e16c53fa | bellard | } |
133 | e16c53fa | bellard | |
134 | e16c53fa | bellard | #if DATA_SIZE <= 2 |
135 | c27004ec | bellard | static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) |
136 | e16c53fa | bellard | { |
137 | e16c53fa | bellard | int res;
|
138 | e16c53fa | bellard | |
139 | e16c53fa | bellard | asm volatile ("movl %1, %%edx\n" |
140 | e16c53fa | bellard | "movl %1, %%eax\n"
|
141 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
142 | e16c53fa | bellard | "andl %4, %%eax\n"
|
143 | e16c53fa | bellard | "andl %2, %%edx\n"
|
144 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
145 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
146 | e16c53fa | bellard | "movl %1, %%eax\n"
|
147 | e16c53fa | bellard | "je 1f\n"
|
148 | e16c53fa | bellard | "pushl %6\n"
|
149 | e16c53fa | bellard | "call %7\n"
|
150 | e16c53fa | bellard | "popl %%edx\n"
|
151 | e16c53fa | bellard | #if DATA_SIZE == 1 |
152 | e16c53fa | bellard | "movsbl %%al, %0\n"
|
153 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
154 | e16c53fa | bellard | "movswl %%ax, %0\n"
|
155 | e16c53fa | bellard | #else
|
156 | e16c53fa | bellard | #error unsupported size
|
157 | e16c53fa | bellard | #endif
|
158 | e16c53fa | bellard | "jmp 2f\n"
|
159 | e16c53fa | bellard | "1:\n"
|
160 | e16c53fa | bellard | "addl 4(%%edx), %%eax\n"
|
161 | e16c53fa | bellard | #if DATA_SIZE == 1 |
162 | e16c53fa | bellard | "movsbl (%%eax), %0\n"
|
163 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
164 | e16c53fa | bellard | "movswl (%%eax), %0\n"
|
165 | e16c53fa | bellard | #else
|
166 | e16c53fa | bellard | #error unsupported size
|
167 | e16c53fa | bellard | #endif
|
168 | e16c53fa | bellard | "2:\n"
|
169 | e16c53fa | bellard | : "=r" (res)
|
170 | e16c53fa | bellard | : "r" (ptr),
|
171 | e16c53fa | bellard | "i" ((CPU_TLB_SIZE - 1) << 3), |
172 | e16c53fa | bellard | "i" (TARGET_PAGE_BITS - 3), |
173 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
174 | e16c53fa | bellard | "m" (*(uint32_t *)offsetof(CPUState, tlb_read[CPU_MEM_INDEX][0].address)), |
175 | e16c53fa | bellard | "i" (CPU_MEM_INDEX),
|
176 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__ld, SUFFIX), MMUSUFFIX))
|
177 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
178 | e16c53fa | bellard | return res;
|
179 | e16c53fa | bellard | } |
180 | e16c53fa | bellard | #endif
|
181 | e16c53fa | bellard | |
182 | c27004ec | bellard | static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE v) |
183 | e16c53fa | bellard | { |
184 | e16c53fa | bellard | asm volatile ("movl %0, %%edx\n" |
185 | e16c53fa | bellard | "movl %0, %%eax\n"
|
186 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
187 | e16c53fa | bellard | "andl %4, %%eax\n"
|
188 | e16c53fa | bellard | "andl %2, %%edx\n"
|
189 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
190 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
191 | e16c53fa | bellard | "movl %0, %%eax\n"
|
192 | e16c53fa | bellard | "je 1f\n"
|
193 | e16c53fa | bellard | #if DATA_SIZE == 1 |
194 | e16c53fa | bellard | "movzbl %b1, %%edx\n"
|
195 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
196 | e16c53fa | bellard | "movzwl %w1, %%edx\n"
|
197 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
198 | e16c53fa | bellard | "movl %1, %%edx\n"
|
199 | e16c53fa | bellard | #else
|
200 | e16c53fa | bellard | #error unsupported size
|
201 | e16c53fa | bellard | #endif
|
202 | e16c53fa | bellard | "pushl %6\n"
|
203 | e16c53fa | bellard | "call %7\n"
|
204 | e16c53fa | bellard | "popl %%eax\n"
|
205 | e16c53fa | bellard | "jmp 2f\n"
|
206 | e16c53fa | bellard | "1:\n"
|
207 | e16c53fa | bellard | "addl 4(%%edx), %%eax\n"
|
208 | e16c53fa | bellard | #if DATA_SIZE == 1 |
209 | e16c53fa | bellard | "movb %b1, (%%eax)\n"
|
210 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
211 | e16c53fa | bellard | "movw %w1, (%%eax)\n"
|
212 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
213 | e16c53fa | bellard | "movl %1, (%%eax)\n"
|
214 | e16c53fa | bellard | #else
|
215 | e16c53fa | bellard | #error unsupported size
|
216 | e16c53fa | bellard | #endif
|
217 | e16c53fa | bellard | "2:\n"
|
218 | e16c53fa | bellard | : |
219 | e16c53fa | bellard | : "r" (ptr),
|
220 | e16c53fa | bellard | /* NOTE: 'q' would be needed as constraint, but we could not use it
|
221 | e16c53fa | bellard | with T1 ! */
|
222 | e16c53fa | bellard | "r" (v),
|
223 | e16c53fa | bellard | "i" ((CPU_TLB_SIZE - 1) << 3), |
224 | e16c53fa | bellard | "i" (TARGET_PAGE_BITS - 3), |
225 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
226 | e16c53fa | bellard | "m" (*(uint32_t *)offsetof(CPUState, tlb_write[CPU_MEM_INDEX][0].address)), |
227 | e16c53fa | bellard | "i" (CPU_MEM_INDEX),
|
228 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__st, SUFFIX), MMUSUFFIX))
|
229 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
230 | e16c53fa | bellard | } |
231 | e16c53fa | bellard | |
232 | e16c53fa | bellard | #else
|
233 | e16c53fa | bellard | |
234 | e16c53fa | bellard | /* generic load/store macros */
|
235 | e16c53fa | bellard | |
236 | c27004ec | bellard | static inline RES_TYPE glue(glue(ld, USUFFIX), MEMSUFFIX)(target_ulong ptr) |
237 | b92e5a22 | bellard | { |
238 | b92e5a22 | bellard | int index;
|
239 | b92e5a22 | bellard | RES_TYPE res; |
240 | c27004ec | bellard | target_ulong addr; |
241 | c27004ec | bellard | unsigned long physaddr; |
242 | 61382a50 | bellard | int is_user;
|
243 | 61382a50 | bellard | |
244 | c27004ec | bellard | addr = ptr; |
245 | b92e5a22 | bellard | index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
246 | 61382a50 | bellard | is_user = CPU_MEM_INDEX; |
247 | 61382a50 | bellard | if (__builtin_expect(env->tlb_read[is_user][index].address !=
|
248 | b92e5a22 | bellard | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))), 0)) { |
249 | 61382a50 | bellard | res = glue(glue(__ld, SUFFIX), MMUSUFFIX)(addr, is_user); |
250 | b92e5a22 | bellard | } else {
|
251 | 61382a50 | bellard | physaddr = addr + env->tlb_read[is_user][index].addend; |
252 | 61382a50 | bellard | res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr); |
253 | b92e5a22 | bellard | } |
254 | b92e5a22 | bellard | return res;
|
255 | b92e5a22 | bellard | } |
256 | b92e5a22 | bellard | |
257 | b92e5a22 | bellard | #if DATA_SIZE <= 2 |
258 | c27004ec | bellard | static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) |
259 | b92e5a22 | bellard | { |
260 | b92e5a22 | bellard | int res, index;
|
261 | c27004ec | bellard | target_ulong addr; |
262 | c27004ec | bellard | unsigned long physaddr; |
263 | 61382a50 | bellard | int is_user;
|
264 | 61382a50 | bellard | |
265 | c27004ec | bellard | addr = ptr; |
266 | b92e5a22 | bellard | index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
267 | 61382a50 | bellard | is_user = CPU_MEM_INDEX; |
268 | 61382a50 | bellard | if (__builtin_expect(env->tlb_read[is_user][index].address !=
|
269 | b92e5a22 | bellard | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))), 0)) { |
270 | 61382a50 | bellard | res = (DATA_STYPE)glue(glue(__ld, SUFFIX), MMUSUFFIX)(addr, is_user); |
271 | b92e5a22 | bellard | } else {
|
272 | 61382a50 | bellard | physaddr = addr + env->tlb_read[is_user][index].addend; |
273 | b92e5a22 | bellard | res = glue(glue(lds, SUFFIX), _raw)((uint8_t *)physaddr); |
274 | b92e5a22 | bellard | } |
275 | b92e5a22 | bellard | return res;
|
276 | b92e5a22 | bellard | } |
277 | b92e5a22 | bellard | #endif
|
278 | b92e5a22 | bellard | |
279 | e16c53fa | bellard | /* generic store macro */
|
280 | e16c53fa | bellard | |
281 | c27004ec | bellard | static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE v) |
282 | b92e5a22 | bellard | { |
283 | b92e5a22 | bellard | int index;
|
284 | c27004ec | bellard | target_ulong addr; |
285 | c27004ec | bellard | unsigned long physaddr; |
286 | 61382a50 | bellard | int is_user;
|
287 | 61382a50 | bellard | |
288 | c27004ec | bellard | addr = ptr; |
289 | b92e5a22 | bellard | index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
290 | 61382a50 | bellard | is_user = CPU_MEM_INDEX; |
291 | 61382a50 | bellard | if (__builtin_expect(env->tlb_write[is_user][index].address !=
|
292 | b92e5a22 | bellard | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))), 0)) { |
293 | 61382a50 | bellard | glue(glue(__st, SUFFIX), MMUSUFFIX)(addr, v, is_user); |
294 | b92e5a22 | bellard | } else {
|
295 | 61382a50 | bellard | physaddr = addr + env->tlb_write[is_user][index].addend; |
296 | b92e5a22 | bellard | glue(glue(st, SUFFIX), _raw)((uint8_t *)physaddr, v); |
297 | b92e5a22 | bellard | } |
298 | b92e5a22 | bellard | } |
299 | b92e5a22 | bellard | |
300 | e16c53fa | bellard | #endif
|
301 | e16c53fa | bellard | |
302 | 2d603d22 | bellard | #if DATA_SIZE == 8 |
303 | c27004ec | bellard | static inline double glue(ldfq, MEMSUFFIX)(target_ulong ptr) |
304 | 2d603d22 | bellard | { |
305 | 2d603d22 | bellard | union {
|
306 | 2d603d22 | bellard | double d;
|
307 | 2d603d22 | bellard | uint64_t i; |
308 | 2d603d22 | bellard | } u; |
309 | 2d603d22 | bellard | u.i = glue(ldq, MEMSUFFIX)(ptr); |
310 | 2d603d22 | bellard | return u.d;
|
311 | 2d603d22 | bellard | } |
312 | 2d603d22 | bellard | |
313 | c27004ec | bellard | static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v) |
314 | 2d603d22 | bellard | { |
315 | 2d603d22 | bellard | union {
|
316 | 2d603d22 | bellard | double d;
|
317 | 2d603d22 | bellard | uint64_t i; |
318 | 2d603d22 | bellard | } u; |
319 | 2d603d22 | bellard | u.d = v; |
320 | 2d603d22 | bellard | glue(stq, MEMSUFFIX)(ptr, u.i); |
321 | 2d603d22 | bellard | } |
322 | 2d603d22 | bellard | #endif /* DATA_SIZE == 8 */ |
323 | 2d603d22 | bellard | |
324 | 2d603d22 | bellard | #if DATA_SIZE == 4 |
325 | c27004ec | bellard | static inline float glue(ldfl, MEMSUFFIX)(target_ulong ptr) |
326 | 2d603d22 | bellard | { |
327 | 2d603d22 | bellard | union {
|
328 | 2d603d22 | bellard | float f;
|
329 | 2d603d22 | bellard | uint32_t i; |
330 | 2d603d22 | bellard | } u; |
331 | 2d603d22 | bellard | u.i = glue(ldl, MEMSUFFIX)(ptr); |
332 | 2d603d22 | bellard | return u.f;
|
333 | 2d603d22 | bellard | } |
334 | 2d603d22 | bellard | |
335 | c27004ec | bellard | static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float v) |
336 | 2d603d22 | bellard | { |
337 | 2d603d22 | bellard | union {
|
338 | 2d603d22 | bellard | float f;
|
339 | 2d603d22 | bellard | uint32_t i; |
340 | 2d603d22 | bellard | } u; |
341 | 2d603d22 | bellard | u.f = v; |
342 | 2d603d22 | bellard | glue(stl, MEMSUFFIX)(ptr, u.i); |
343 | 2d603d22 | bellard | } |
344 | 2d603d22 | bellard | #endif /* DATA_SIZE == 4 */ |
345 | 2d603d22 | bellard | |
346 | b92e5a22 | bellard | #undef RES_TYPE
|
347 | b92e5a22 | bellard | #undef DATA_TYPE
|
348 | b92e5a22 | bellard | #undef DATA_STYPE
|
349 | b92e5a22 | bellard | #undef SUFFIX
|
350 | 61382a50 | bellard | #undef USUFFIX
|
351 | b92e5a22 | bellard | #undef DATA_SIZE
|
352 | 61382a50 | bellard | #undef CPU_MEM_INDEX
|
353 | 61382a50 | bellard | #undef MMUSUFFIX |