root / softmmu_header.h @ 510aba20
History | View | Annotate | Download (9.5 kB)
1 | b92e5a22 | bellard | /*
|
---|---|---|---|
2 | b92e5a22 | bellard | * Software MMU support
|
3 | 5fafdf24 | ths | *
|
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 | 6ebbf390 | j_mayer | #if ACCESS_TYPE < (NB_MMU_MODES)
|
43 | 61382a50 | bellard | |
44 | 6ebbf390 | j_mayer | #define CPU_MMU_INDEX ACCESS_TYPE
|
45 | 61382a50 | bellard | #define MMUSUFFIX _mmu
|
46 | 61382a50 | bellard | |
47 | 6ebbf390 | j_mayer | #elif ACCESS_TYPE == (NB_MMU_MODES)
|
48 | 61382a50 | bellard | |
49 | 6ebbf390 | j_mayer | #define CPU_MMU_INDEX (cpu_mmu_index(env))
|
50 | 61382a50 | bellard | #define MMUSUFFIX _mmu
|
51 | 61382a50 | bellard | |
52 | 6ebbf390 | j_mayer | #elif ACCESS_TYPE == (NB_MMU_MODES + 1) |
53 | 61382a50 | bellard | |
54 | 6ebbf390 | j_mayer | #define CPU_MMU_INDEX (cpu_mmu_index(env))
|
55 | 61382a50 | bellard | #define MMUSUFFIX _cmmu
|
56 | 61382a50 | bellard | |
57 | b92e5a22 | bellard | #else
|
58 | 61382a50 | bellard | #error invalid ACCESS_TYPE
|
59 | b92e5a22 | bellard | #endif
|
60 | b92e5a22 | bellard | |
61 | b92e5a22 | bellard | #if DATA_SIZE == 8 |
62 | b92e5a22 | bellard | #define RES_TYPE uint64_t
|
63 | b92e5a22 | bellard | #else
|
64 | b92e5a22 | bellard | #define RES_TYPE int |
65 | b92e5a22 | bellard | #endif
|
66 | b92e5a22 | bellard | |
67 | 6ebbf390 | j_mayer | #if ACCESS_TYPE == (NB_MMU_MODES + 1) |
68 | 84b7b8e7 | bellard | #define ADDR_READ addr_code
|
69 | 84b7b8e7 | bellard | #else
|
70 | 84b7b8e7 | bellard | #define ADDR_READ addr_read
|
71 | 84b7b8e7 | bellard | #endif
|
72 | b92e5a22 | bellard | |
73 | c27004ec | bellard | #if (DATA_SIZE <= 4) && (TARGET_LONG_BITS == 32) && defined(__i386__) && \ |
74 | 6ebbf390 | j_mayer | (ACCESS_TYPE < NB_MMU_MODES) && defined(ASM_SOFTMMU) |
75 | e16c53fa | bellard | |
76 | c27004ec | bellard | static inline RES_TYPE glue(glue(ld, USUFFIX), MEMSUFFIX)(target_ulong ptr) |
77 | e16c53fa | bellard | { |
78 | e16c53fa | bellard | int res;
|
79 | e16c53fa | bellard | |
80 | e16c53fa | bellard | asm volatile ("movl %1, %%edx\n" |
81 | e16c53fa | bellard | "movl %1, %%eax\n"
|
82 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
83 | e16c53fa | bellard | "andl %4, %%eax\n"
|
84 | e16c53fa | bellard | "andl %2, %%edx\n"
|
85 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
86 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
87 | e16c53fa | bellard | "movl %1, %%eax\n"
|
88 | e16c53fa | bellard | "je 1f\n"
|
89 | d656469f | bellard | "movl %6, %%edx\n"
|
90 | e16c53fa | bellard | "call %7\n"
|
91 | e16c53fa | bellard | "movl %%eax, %0\n"
|
92 | e16c53fa | bellard | "jmp 2f\n"
|
93 | e16c53fa | bellard | "1:\n"
|
94 | 84b7b8e7 | bellard | "addl 12(%%edx), %%eax\n"
|
95 | e16c53fa | bellard | #if DATA_SIZE == 1 |
96 | e16c53fa | bellard | "movzbl (%%eax), %0\n"
|
97 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
98 | e16c53fa | bellard | "movzwl (%%eax), %0\n"
|
99 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
100 | e16c53fa | bellard | "movl (%%eax), %0\n"
|
101 | e16c53fa | bellard | #else
|
102 | e16c53fa | bellard | #error unsupported size
|
103 | e16c53fa | bellard | #endif
|
104 | e16c53fa | bellard | "2:\n"
|
105 | e16c53fa | bellard | : "=r" (res)
|
106 | 5fafdf24 | ths | : "r" (ptr),
|
107 | 5fafdf24 | ths | "i" ((CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS), |
108 | 5fafdf24 | ths | "i" (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS),
|
109 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
110 | 6ebbf390 | j_mayer | "m" (*(uint32_t *)offsetof(CPUState, tlb_table[CPU_MMU_INDEX][0].addr_read)), |
111 | 6ebbf390 | j_mayer | "i" (CPU_MMU_INDEX),
|
112 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__ld, SUFFIX), MMUSUFFIX))
|
113 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
114 | e16c53fa | bellard | return res;
|
115 | e16c53fa | bellard | } |
116 | e16c53fa | bellard | |
117 | e16c53fa | bellard | #if DATA_SIZE <= 2 |
118 | c27004ec | bellard | static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) |
119 | e16c53fa | bellard | { |
120 | e16c53fa | bellard | int res;
|
121 | e16c53fa | bellard | |
122 | e16c53fa | bellard | asm volatile ("movl %1, %%edx\n" |
123 | e16c53fa | bellard | "movl %1, %%eax\n"
|
124 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
125 | e16c53fa | bellard | "andl %4, %%eax\n"
|
126 | e16c53fa | bellard | "andl %2, %%edx\n"
|
127 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
128 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
129 | e16c53fa | bellard | "movl %1, %%eax\n"
|
130 | e16c53fa | bellard | "je 1f\n"
|
131 | d656469f | bellard | "movl %6, %%edx\n"
|
132 | e16c53fa | bellard | "call %7\n"
|
133 | e16c53fa | bellard | #if DATA_SIZE == 1 |
134 | e16c53fa | bellard | "movsbl %%al, %0\n"
|
135 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
136 | e16c53fa | bellard | "movswl %%ax, %0\n"
|
137 | e16c53fa | bellard | #else
|
138 | e16c53fa | bellard | #error unsupported size
|
139 | e16c53fa | bellard | #endif
|
140 | e16c53fa | bellard | "jmp 2f\n"
|
141 | e16c53fa | bellard | "1:\n"
|
142 | 84b7b8e7 | bellard | "addl 12(%%edx), %%eax\n"
|
143 | e16c53fa | bellard | #if DATA_SIZE == 1 |
144 | e16c53fa | bellard | "movsbl (%%eax), %0\n"
|
145 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
146 | e16c53fa | bellard | "movswl (%%eax), %0\n"
|
147 | e16c53fa | bellard | #else
|
148 | e16c53fa | bellard | #error unsupported size
|
149 | e16c53fa | bellard | #endif
|
150 | e16c53fa | bellard | "2:\n"
|
151 | e16c53fa | bellard | : "=r" (res)
|
152 | 5fafdf24 | ths | : "r" (ptr),
|
153 | 5fafdf24 | ths | "i" ((CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS), |
154 | 5fafdf24 | ths | "i" (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS),
|
155 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
156 | 6ebbf390 | j_mayer | "m" (*(uint32_t *)offsetof(CPUState, tlb_table[CPU_MMU_INDEX][0].addr_read)), |
157 | 6ebbf390 | j_mayer | "i" (CPU_MMU_INDEX),
|
158 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__ld, SUFFIX), MMUSUFFIX))
|
159 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
160 | e16c53fa | bellard | return res;
|
161 | e16c53fa | bellard | } |
162 | e16c53fa | bellard | #endif
|
163 | e16c53fa | bellard | |
164 | c27004ec | bellard | static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE v) |
165 | e16c53fa | bellard | { |
166 | e16c53fa | bellard | asm volatile ("movl %0, %%edx\n" |
167 | e16c53fa | bellard | "movl %0, %%eax\n"
|
168 | e16c53fa | bellard | "shrl %3, %%edx\n"
|
169 | e16c53fa | bellard | "andl %4, %%eax\n"
|
170 | e16c53fa | bellard | "andl %2, %%edx\n"
|
171 | e16c53fa | bellard | "leal %5(%%edx, %%ebp), %%edx\n"
|
172 | e16c53fa | bellard | "cmpl (%%edx), %%eax\n"
|
173 | e16c53fa | bellard | "movl %0, %%eax\n"
|
174 | e16c53fa | bellard | "je 1f\n"
|
175 | e16c53fa | bellard | #if DATA_SIZE == 1 |
176 | e16c53fa | bellard | "movzbl %b1, %%edx\n"
|
177 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
178 | e16c53fa | bellard | "movzwl %w1, %%edx\n"
|
179 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
180 | e16c53fa | bellard | "movl %1, %%edx\n"
|
181 | e16c53fa | bellard | #else
|
182 | e16c53fa | bellard | #error unsupported size
|
183 | e16c53fa | bellard | #endif
|
184 | d656469f | bellard | "movl %6, %%ecx\n"
|
185 | e16c53fa | bellard | "call %7\n"
|
186 | e16c53fa | bellard | "jmp 2f\n"
|
187 | e16c53fa | bellard | "1:\n"
|
188 | 84b7b8e7 | bellard | "addl 8(%%edx), %%eax\n"
|
189 | e16c53fa | bellard | #if DATA_SIZE == 1 |
190 | e16c53fa | bellard | "movb %b1, (%%eax)\n"
|
191 | e16c53fa | bellard | #elif DATA_SIZE == 2 |
192 | e16c53fa | bellard | "movw %w1, (%%eax)\n"
|
193 | e16c53fa | bellard | #elif DATA_SIZE == 4 |
194 | e16c53fa | bellard | "movl %1, (%%eax)\n"
|
195 | e16c53fa | bellard | #else
|
196 | e16c53fa | bellard | #error unsupported size
|
197 | e16c53fa | bellard | #endif
|
198 | e16c53fa | bellard | "2:\n"
|
199 | 5fafdf24 | ths | : |
200 | 5fafdf24 | ths | : "r" (ptr),
|
201 | f220f4e3 | bellard | #if DATA_SIZE == 1 |
202 | f220f4e3 | bellard | "q" (v),
|
203 | f220f4e3 | bellard | #else
|
204 | 5fafdf24 | ths | "r" (v),
|
205 | f220f4e3 | bellard | #endif
|
206 | 5fafdf24 | ths | "i" ((CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS), |
207 | 5fafdf24 | ths | "i" (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS),
|
208 | e16c53fa | bellard | "i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)), |
209 | 6ebbf390 | j_mayer | "m" (*(uint32_t *)offsetof(CPUState, tlb_table[CPU_MMU_INDEX][0].addr_write)), |
210 | 6ebbf390 | j_mayer | "i" (CPU_MMU_INDEX),
|
211 | e16c53fa | bellard | "m" (*(uint8_t *)&glue(glue(__st, SUFFIX), MMUSUFFIX))
|
212 | e16c53fa | bellard | : "%eax", "%ecx", "%edx", "memory", "cc"); |
213 | e16c53fa | bellard | } |
214 | e16c53fa | bellard | |
215 | e16c53fa | bellard | #else
|
216 | e16c53fa | bellard | |
217 | e16c53fa | bellard | /* generic load/store macros */
|
218 | e16c53fa | bellard | |
219 | c27004ec | bellard | static inline RES_TYPE glue(glue(ld, USUFFIX), MEMSUFFIX)(target_ulong ptr) |
220 | b92e5a22 | bellard | { |
221 | 4d7a0880 | blueswir1 | int page_index;
|
222 | b92e5a22 | bellard | RES_TYPE res; |
223 | c27004ec | bellard | target_ulong addr; |
224 | c27004ec | bellard | unsigned long physaddr; |
225 | 6ebbf390 | j_mayer | int mmu_idx;
|
226 | 61382a50 | bellard | |
227 | c27004ec | bellard | addr = ptr; |
228 | 4d7a0880 | blueswir1 | page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
229 | 6ebbf390 | j_mayer | mmu_idx = CPU_MMU_INDEX; |
230 | 551bd27f | ths | if (unlikely(env->tlb_table[mmu_idx][page_index].ADDR_READ !=
|
231 | 551bd27f | ths | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))))) {
|
232 | 6ebbf390 | j_mayer | res = glue(glue(__ld, SUFFIX), MMUSUFFIX)(addr, mmu_idx); |
233 | b92e5a22 | bellard | } else {
|
234 | 4d7a0880 | blueswir1 | physaddr = addr + env->tlb_table[mmu_idx][page_index].addend; |
235 | 61382a50 | bellard | res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr); |
236 | b92e5a22 | bellard | } |
237 | b92e5a22 | bellard | return res;
|
238 | b92e5a22 | bellard | } |
239 | b92e5a22 | bellard | |
240 | b92e5a22 | bellard | #if DATA_SIZE <= 2 |
241 | c27004ec | bellard | static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) |
242 | b92e5a22 | bellard | { |
243 | 4d7a0880 | blueswir1 | int res, page_index;
|
244 | c27004ec | bellard | target_ulong addr; |
245 | c27004ec | bellard | unsigned long physaddr; |
246 | 6ebbf390 | j_mayer | int mmu_idx;
|
247 | 61382a50 | bellard | |
248 | c27004ec | bellard | addr = ptr; |
249 | 4d7a0880 | blueswir1 | page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
250 | 6ebbf390 | j_mayer | mmu_idx = CPU_MMU_INDEX; |
251 | 551bd27f | ths | if (unlikely(env->tlb_table[mmu_idx][page_index].ADDR_READ !=
|
252 | 551bd27f | ths | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))))) {
|
253 | 6ebbf390 | j_mayer | res = (DATA_STYPE)glue(glue(__ld, SUFFIX), MMUSUFFIX)(addr, mmu_idx); |
254 | b92e5a22 | bellard | } else {
|
255 | 4d7a0880 | blueswir1 | physaddr = addr + env->tlb_table[mmu_idx][page_index].addend; |
256 | b92e5a22 | bellard | res = glue(glue(lds, SUFFIX), _raw)((uint8_t *)physaddr); |
257 | b92e5a22 | bellard | } |
258 | b92e5a22 | bellard | return res;
|
259 | b92e5a22 | bellard | } |
260 | b92e5a22 | bellard | #endif
|
261 | b92e5a22 | bellard | |
262 | 6ebbf390 | j_mayer | #if ACCESS_TYPE != (NB_MMU_MODES + 1) |
263 | 84b7b8e7 | bellard | |
264 | e16c53fa | bellard | /* generic store macro */
|
265 | e16c53fa | bellard | |
266 | c27004ec | bellard | static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE v) |
267 | b92e5a22 | bellard | { |
268 | 4d7a0880 | blueswir1 | int page_index;
|
269 | c27004ec | bellard | target_ulong addr; |
270 | c27004ec | bellard | unsigned long physaddr; |
271 | 6ebbf390 | j_mayer | int mmu_idx;
|
272 | 61382a50 | bellard | |
273 | c27004ec | bellard | addr = ptr; |
274 | 4d7a0880 | blueswir1 | page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
|
275 | 6ebbf390 | j_mayer | mmu_idx = CPU_MMU_INDEX; |
276 | 551bd27f | ths | if (unlikely(env->tlb_table[mmu_idx][page_index].addr_write !=
|
277 | 551bd27f | ths | (addr & (TARGET_PAGE_MASK | (DATA_SIZE - 1))))) {
|
278 | 6ebbf390 | j_mayer | glue(glue(__st, SUFFIX), MMUSUFFIX)(addr, v, mmu_idx); |
279 | b92e5a22 | bellard | } else {
|
280 | 4d7a0880 | blueswir1 | physaddr = addr + env->tlb_table[mmu_idx][page_index].addend; |
281 | b92e5a22 | bellard | glue(glue(st, SUFFIX), _raw)((uint8_t *)physaddr, v); |
282 | b92e5a22 | bellard | } |
283 | b92e5a22 | bellard | } |
284 | b92e5a22 | bellard | |
285 | 6ebbf390 | j_mayer | #endif /* ACCESS_TYPE != (NB_MMU_MODES + 1) */ |
286 | 84b7b8e7 | bellard | |
287 | 84b7b8e7 | bellard | #endif /* !asm */ |
288 | 84b7b8e7 | bellard | |
289 | 6ebbf390 | j_mayer | #if ACCESS_TYPE != (NB_MMU_MODES + 1) |
290 | e16c53fa | bellard | |
291 | 2d603d22 | bellard | #if DATA_SIZE == 8 |
292 | 3f87bf69 | bellard | static inline float64 glue(ldfq, MEMSUFFIX)(target_ulong ptr) |
293 | 2d603d22 | bellard | { |
294 | 2d603d22 | bellard | union {
|
295 | 3f87bf69 | bellard | float64 d; |
296 | 2d603d22 | bellard | uint64_t i; |
297 | 2d603d22 | bellard | } u; |
298 | 2d603d22 | bellard | u.i = glue(ldq, MEMSUFFIX)(ptr); |
299 | 2d603d22 | bellard | return u.d;
|
300 | 2d603d22 | bellard | } |
301 | 2d603d22 | bellard | |
302 | 3f87bf69 | bellard | static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, float64 v) |
303 | 2d603d22 | bellard | { |
304 | 2d603d22 | bellard | union {
|
305 | 3f87bf69 | bellard | float64 d; |
306 | 2d603d22 | bellard | uint64_t i; |
307 | 2d603d22 | bellard | } u; |
308 | 2d603d22 | bellard | u.d = v; |
309 | 2d603d22 | bellard | glue(stq, MEMSUFFIX)(ptr, u.i); |
310 | 2d603d22 | bellard | } |
311 | 2d603d22 | bellard | #endif /* DATA_SIZE == 8 */ |
312 | 2d603d22 | bellard | |
313 | 2d603d22 | bellard | #if DATA_SIZE == 4 |
314 | 3f87bf69 | bellard | static inline float32 glue(ldfl, MEMSUFFIX)(target_ulong ptr) |
315 | 2d603d22 | bellard | { |
316 | 2d603d22 | bellard | union {
|
317 | 3f87bf69 | bellard | float32 f; |
318 | 2d603d22 | bellard | uint32_t i; |
319 | 2d603d22 | bellard | } u; |
320 | 2d603d22 | bellard | u.i = glue(ldl, MEMSUFFIX)(ptr); |
321 | 2d603d22 | bellard | return u.f;
|
322 | 2d603d22 | bellard | } |
323 | 2d603d22 | bellard | |
324 | 3f87bf69 | bellard | static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float32 v) |
325 | 2d603d22 | bellard | { |
326 | 2d603d22 | bellard | union {
|
327 | 3f87bf69 | bellard | float32 f; |
328 | 2d603d22 | bellard | uint32_t i; |
329 | 2d603d22 | bellard | } u; |
330 | 2d603d22 | bellard | u.f = v; |
331 | 2d603d22 | bellard | glue(stl, MEMSUFFIX)(ptr, u.i); |
332 | 2d603d22 | bellard | } |
333 | 2d603d22 | bellard | #endif /* DATA_SIZE == 4 */ |
334 | 2d603d22 | bellard | |
335 | 6ebbf390 | j_mayer | #endif /* ACCESS_TYPE != (NB_MMU_MODES + 1) */ |
336 | 84b7b8e7 | bellard | |
337 | b92e5a22 | bellard | #undef RES_TYPE
|
338 | b92e5a22 | bellard | #undef DATA_TYPE
|
339 | b92e5a22 | bellard | #undef DATA_STYPE
|
340 | b92e5a22 | bellard | #undef SUFFIX
|
341 | 61382a50 | bellard | #undef USUFFIX
|
342 | b92e5a22 | bellard | #undef DATA_SIZE
|
343 | 6ebbf390 | j_mayer | #undef CPU_MMU_INDEX
|
344 | 61382a50 | bellard | #undef MMUSUFFIX
|
345 | 84b7b8e7 | bellard | #undef ADDR_READ |