Commit f0aca8227fbdb0cec65331cb59dbe768e2586e7d
1 parent
e59c1139
fixed big endian host support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1639 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
4 deletions
cpu-all.h
... | ... | @@ -231,8 +231,8 @@ static inline uint64_t ldq_le_p(void *ptr) |
231 | 231 | { |
232 | 232 | uint8_t *p = ptr; |
233 | 233 | uint32_t v1, v2; |
234 | - v1 = ldl_p(p); | |
235 | - v2 = ldl_p(p + 4); | |
234 | + v1 = ldl_le_p(p); | |
235 | + v2 = ldl_le_p(p + 4); | |
236 | 236 | return v1 | ((uint64_t)v2 << 32); |
237 | 237 | } |
238 | 238 | |
... | ... | @@ -263,8 +263,8 @@ static inline void stl_le_p(void *ptr, int v) |
263 | 263 | static inline void stq_le_p(void *ptr, uint64_t v) |
264 | 264 | { |
265 | 265 | uint8_t *p = ptr; |
266 | - stl_p(p, (uint32_t)v); | |
267 | - stl_p(p + 4, v >> 32); | |
266 | + stl_le_p(p, (uint32_t)v); | |
267 | + stl_le_p(p + 4, v >> 32); | |
268 | 268 | } |
269 | 269 | |
270 | 270 | /* float access */ |
... | ... | @@ -725,6 +725,7 @@ void cpu_dump_state(CPUState *env, FILE *f, |
725 | 725 | int flags); |
726 | 726 | |
727 | 727 | void cpu_abort(CPUState *env, const char *fmt, ...); |
728 | +extern CPUState *first_cpu; | |
728 | 729 | extern CPUState *cpu_single_env; |
729 | 730 | extern int code_copy_enabled; |
730 | 731 | ... | ... |