diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-08-23 11:47:15 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-08-23 11:47:15 +0000 |
commit | f1d0d79f48ab191a1ed0b5065e39046e1d95fef4 (patch) | |
tree | 860036a8554d604726a256d7408c711df834b7cb /packages/qemu/files/64_ppc_asm_constraints.patch | |
parent | 2534c12ac4c879178132751e51db09c6e4f22cf9 (diff) | |
parent | 958b8822656bed6e5526f9441fea36570787f9c7 (diff) |
merge of '88dd6a801655485b76bb6d591c1f763d51ff47b8'
and 'ea2a23cae4f4d939a07f699c39b603c4c2559ad1'
Diffstat (limited to 'packages/qemu/files/64_ppc_asm_constraints.patch')
-rw-r--r-- | packages/qemu/files/64_ppc_asm_constraints.patch | 18 |
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; |