aboutsummaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-26 19:44:02 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-26 19:44:02 +0000
commit4f2ac237840677ffcb1b3ca30d04a4c2d360f7c7 (patch)
tree704572756ba55ed1631f64d1efc9511cec24560f /cpu-all.h
parentf658b4db792285d0ddc044d7532451b8ec3c4a08 (diff)
amd64 port (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@762 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 77a801c862..145059cc18 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -335,7 +335,7 @@ static inline int ldsw_raw(void *ptr)
static inline int ldl_raw(void *ptr)
{
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
int val;
asm volatile ("movl %1, %0\n"
"bswap %0\n"
@@ -372,7 +372,7 @@ static inline void stw_raw(void *ptr, int v)
static inline void stl_raw(void *ptr, int v)
{
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
asm volatile ("bswap %0\n"
"movl %0, %1\n"
: "=r" (v)