diff options
author | 2006-09-24 12:26:28 +0000 | |
---|---|---|
committer | 2006-09-24 12:26:28 +0000 | |
commit | 9976cfe1b5136d1f606103404696917781ae7105 (patch) | |
tree | b3a6daaf4d211cf6ddb9765fefd8da6ce0d7034f /app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch | |
download | drizzt-9976cfe1b5136d1f606103404696917781ae7105.tar.gz drizzt-9976cfe1b5136d1f606103404696917781ae7105.tar.bz2 drizzt-9976cfe1b5136d1f606103404696917781ae7105.zip |
Initial import
svn path=/; revision=1
Diffstat (limited to 'app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch')
-rw-r--r-- | app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch b/app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch new file mode 100644 index 0000000..b642702 --- /dev/null +++ b/app-emulation/qemu-user/files/qemu-0.8.0-stwbrx.patch @@ -0,0 +1,15 @@ +diff -Nur qemu-0.8.0-old/cpu-all.h qemu-0.8.0/cpu-all.h +--- qemu-0.8.0-old/cpu-all.h 2006-04-21 23:45:55.000000000 +0200 ++++ qemu-0.8.0/cpu-all.h 2006-04-22 00:54:14.000000000 +0200 +@@ -250,7 +250,10 @@ + static inline void stl_le_p(void *ptr, int v) + { + #ifdef __powerpc__ +- __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*(uint32_t *)ptr) : "r" (v), "r" (ptr)); ++ __asm__ __volatile__ ("stwbrx %0,0,%1" ++ : /* no output registers */ ++ : "r" (v), "r" (ptr) /* copy v and ptr to registers */ ++ : "memory"); /* memory will be clobbered*/ + #else + uint8_t *p = ptr; + p[0] = v; |