Commit 9f05cc34df6ea0cdd9183e8405792aa09ddac7d3
1 parent
285dc330
fixed big endian ops
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@418 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
cpu-all.h
@@ -212,8 +212,8 @@ static inline int ldl_raw(void *ptr) | @@ -212,8 +212,8 @@ static inline int ldl_raw(void *ptr) | ||
212 | static inline uint64_t ldq_raw(void *ptr) | 212 | static inline uint64_t ldq_raw(void *ptr) |
213 | { | 213 | { |
214 | uint32_t a,b; | 214 | uint32_t a,b; |
215 | - a = ldl (ptr); | ||
216 | - b = ldl (ptr+4); | 215 | + a = ldl_raw(ptr); |
216 | + b = ldl_raw(ptr+4); | ||
217 | return (((uint64_t)a<<32)|b); | 217 | return (((uint64_t)a<<32)|b); |
218 | } | 218 | } |
219 | 219 | ||
@@ -235,8 +235,8 @@ static inline void stl_raw(void *ptr, int v) | @@ -235,8 +235,8 @@ static inline void stl_raw(void *ptr, int v) | ||
235 | 235 | ||
236 | static inline void stq_raw(void *ptr, uint64_t v) | 236 | static inline void stq_raw(void *ptr, uint64_t v) |
237 | { | 237 | { |
238 | - stl (ptr, v); | ||
239 | - stl (ptr+4, v >> 32); | 238 | + stl_raw(ptr, v); |
239 | + stl_raw(ptr+4, v >> 32); | ||
240 | } | 240 | } |
241 | 241 | ||
242 | #else | 242 | #else |