Commit 3f87bf69590c6b3aead85c4ebb8cc7c9c81ccda5
1 parent
2531fc7b
use softfloat types in softmmu_header.h (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1608 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
8 deletions
softmmu_header.h
... | ... | @@ -304,20 +304,20 @@ static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE |
304 | 304 | #endif |
305 | 305 | |
306 | 306 | #if DATA_SIZE == 8 |
307 | -static inline double glue(ldfq, MEMSUFFIX)(target_ulong ptr) | |
307 | +static inline float64 glue(ldfq, MEMSUFFIX)(target_ulong ptr) | |
308 | 308 | { |
309 | 309 | union { |
310 | - double d; | |
310 | + float64 d; | |
311 | 311 | uint64_t i; |
312 | 312 | } u; |
313 | 313 | u.i = glue(ldq, MEMSUFFIX)(ptr); |
314 | 314 | return u.d; |
315 | 315 | } |
316 | 316 | |
317 | -static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v) | |
317 | +static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, float64 v) | |
318 | 318 | { |
319 | 319 | union { |
320 | - double d; | |
320 | + float64 d; | |
321 | 321 | uint64_t i; |
322 | 322 | } u; |
323 | 323 | u.d = v; |
... | ... | @@ -326,20 +326,20 @@ static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v) |
326 | 326 | #endif /* DATA_SIZE == 8 */ |
327 | 327 | |
328 | 328 | #if DATA_SIZE == 4 |
329 | -static inline float glue(ldfl, MEMSUFFIX)(target_ulong ptr) | |
329 | +static inline float32 glue(ldfl, MEMSUFFIX)(target_ulong ptr) | |
330 | 330 | { |
331 | 331 | union { |
332 | - float f; | |
332 | + float32 f; | |
333 | 333 | uint32_t i; |
334 | 334 | } u; |
335 | 335 | u.i = glue(ldl, MEMSUFFIX)(ptr); |
336 | 336 | return u.f; |
337 | 337 | } |
338 | 338 | |
339 | -static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float v) | |
339 | +static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float32 v) | |
340 | 340 | { |
341 | 341 | union { |
342 | - float f; | |
342 | + float32 f; | |
343 | 343 | uint32_t i; |
344 | 344 | } u; |
345 | 345 | u.f = v; | ... | ... |