diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:22:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:22:06 +0000 |
commit | f0aca8227fbdb0cec65331cb59dbe768e2586e7d (patch) | |
tree | db0359a4d4db635339aa049337e170c3fe27390b /cpu-all.h | |
parent | make the number of buffers settable (malc) (diff) | |
download | qemu-kvm-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.tar.gz qemu-kvm-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.tar.bz2 qemu-kvm-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.zip |
fixed big endian host support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1639 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -231,8 +231,8 @@ static inline uint64_t ldq_le_p(void *ptr) { uint8_t *p = ptr; uint32_t v1, v2; - v1 = ldl_p(p); - v2 = ldl_p(p + 4); + v1 = ldl_le_p(p); + v2 = ldl_le_p(p + 4); return v1 | ((uint64_t)v2 << 32); } @@ -263,8 +263,8 @@ static inline void stl_le_p(void *ptr, int v) static inline void stq_le_p(void *ptr, uint64_t v) { uint8_t *p = ptr; - stl_p(p, (uint32_t)v); - stl_p(p + 4, v >> 32); + stl_le_p(p, (uint32_t)v); + stl_le_p(p + 4, v >> 32); } /* float access */ @@ -725,6 +725,7 @@ void cpu_dump_state(CPUState *env, FILE *f, int flags); void cpu_abort(CPUState *env, const char *fmt, ...); +extern CPUState *first_cpu; extern CPUState *cpu_single_env; extern int code_copy_enabled; |