Fix ARM userspace strex implementation.
authorPaul Brook <paul@codesourcery.com>
Fri, 11 Dec 2009 15:38:10 +0000 (15:38 +0000)
committerPaul Brook <paul@codesourcery.com>
Fri, 11 Dec 2009 15:38:50 +0000 (15:38 +0000)
Signed-off-by: Paul Brook <paul@codesourcery.com>
linux-user/main.c

index 5fbcda2..e51539e 100644 (file)
@@ -593,6 +593,7 @@ static int do_strex(CPUARMState *env)
     }
     rc = 0;
 fail:
+    env->regs[15] += 4;
     env->regs[(env->exclusive_info >> 4) & 0xf] = rc;
 done:
     end_exclusive();