summaryrefslogtreecommitdiff
path: root/packages/qemu/files/64_ppc_asm_constraints.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-08-22 17:01:20 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-08-22 17:01:20 +0000
commitfa760cfb01223f333a8553566d845b7a462c459b (patch)
tree20c7093841e3bf7445fb2c628a4334bc3ead221a /packages/qemu/files/64_ppc_asm_constraints.patch
parente398e9063c713cb73ea3cc19aecc8d9138d6acf9 (diff)
parent70e5cf9476598fdf441d22adfd166e3ee90ae4c8 (diff)
merge of '4ceb0ef60a086087bfe7a232b07d6fb71c3ccd04'
and 'eaf6fede3ee9af7cea4d430e426ee09da45e8f21'
Diffstat (limited to 'packages/qemu/files/64_ppc_asm_constraints.patch')
-rw-r--r--packages/qemu/files/64_ppc_asm_constraints.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/qemu/files/64_ppc_asm_constraints.patch b/packages/qemu/files/64_ppc_asm_constraints.patch
new file mode 100644
index 0000000000..e4858b79d7
--- /dev/null
+++ b/packages/qemu/files/64_ppc_asm_constraints.patch
@@ -0,0 +1,18 @@
+#DPATCHLEVEL=1
+---
+# cpu-all.h | 2 +-
+# 1 file changed, 1 insertion(+), 1 deletion(-)
+#
+Index: qemu/cpu-all.h
+===================================================================
+--- qemu.orig/cpu-all.h 2007-06-13 11:48:22.000000000 +0100
++++ qemu/cpu-all.h 2007-06-13 11:51:56.000000000 +0100
+@@ -250,7 +250,7 @@ static inline void stw_le_p(void *ptr, i
+ 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" : : "r" (v), "r" (ptr) : "memory");
+ #else
+ uint8_t *p = ptr;
+ p[0] = v;