summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-12-11 15:38:10 +0000
committerPaul Brook <paul@codesourcery.com>2009-12-11 15:38:50 +0000
commit725b8a6983215de4e510be68d120279d29ceec41 (patch)
tree4ebe476af917dced577a9ea71688f4c24506e7b5 /linux-user
parent7029a83bd6f71c6fe748220eb481f2afff3ab33f (diff)
Fix ARM userspace strex implementation.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 5fbcda2a3..e51539eff 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -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();