[ppc] clobber r0 in MONO_CONTEXT_GET_CURRENT
authorBernhard Urban <bernhard.urban@xamarin.com>
Wed, 9 Nov 2016 15:03:52 +0000 (16:03 +0100)
committerBernhard Urban <bernhard.urban@xamarin.com>
Thu, 10 Nov 2016 12:00:36 +0000 (13:00 +0100)
r0 can't be the base for a memory acces.

mono/utils/mono-context.h

index 71af9f5fab750cee8bbe7659f1deb88a050f64a1..499c37846b714eea7f0e525f1b1dd04aed3e09e7 100644 (file)
@@ -640,7 +640,7 @@ typedef struct {
                "stfd 30, 8*30+4*32+8(%0)\n"    \
                "stfd 31, 8*31+4*32+8(%0)\n"    \
                : : "r" (&(ctx))        \
-               : "memory"                      \
+               : "memory", "r0"        \
        )
 
 #endif