mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Fix compiler warnings in common files
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4405 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
22548760ca
commit
4d7a0880ca
6 changed files with 30 additions and 31 deletions
|
@ -452,7 +452,7 @@ static inline uint64_t ldq_be_p(void *ptr)
|
|||
{
|
||||
uint32_t a,b;
|
||||
a = ldl_be_p(ptr);
|
||||
b = ldl_be_p(ptr+4);
|
||||
b = ldl_be_p((uint8_t *)ptr + 4);
|
||||
return (((uint64_t)a<<32)|b);
|
||||
}
|
||||
|
||||
|
@ -489,7 +489,7 @@ static inline void stl_be_p(void *ptr, int v)
|
|||
static inline void stq_be_p(void *ptr, uint64_t v)
|
||||
{
|
||||
stl_be_p(ptr, v >> 32);
|
||||
stl_be_p(ptr + 4, v);
|
||||
stl_be_p((uint8_t *)ptr + 4, v);
|
||||
}
|
||||
|
||||
/* float access */
|
||||
|
@ -518,7 +518,7 @@ static inline float64 ldfq_be_p(void *ptr)
|
|||
{
|
||||
CPU_DoubleU u;
|
||||
u.l.upper = ldl_be_p(ptr);
|
||||
u.l.lower = ldl_be_p(ptr + 4);
|
||||
u.l.lower = ldl_be_p((uint8_t *)ptr + 4);
|
||||
return u.d;
|
||||
}
|
||||
|
||||
|
@ -527,7 +527,7 @@ static inline void stfq_be_p(void *ptr, float64 v)
|
|||
CPU_DoubleU u;
|
||||
u.d = v;
|
||||
stl_be_p(ptr, u.l.upper);
|
||||
stl_be_p(ptr + 4, u.l.lower);
|
||||
stl_be_p((uint8_t *)ptr + 4, u.l.lower);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue