aboutsummaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-21 23:22:06 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-21 23:22:06 +0000
commitf0aca8227fbdb0cec65331cb59dbe768e2586e7d (patch)
treedb0359a4d4db635339aa049337e170c3fe27390b /cpu-all.h
parente59c11393b3c30b29bbf3176f2771cfae9b5cd1f (diff)
downloadqemu-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.zip
qemu-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.tar.gz
qemu-f0aca8227fbdb0cec65331cb59dbe768e2586e7d.tar.bz2
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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 55ccbea..b1c4b20 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -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;