Skip to contentSkip to conversation

linux-user: Return success from m68k set_thread_area syscall

PATCH Applied Peter Maydell 2 participants 2 messages Jul 29, 2013 – Aug 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Return success from m68k set_thread_area syscall

The m68k set_thread_area syscall implementation failed to set the return value. Correctly set it zero, since this syscall will always succeed.

---
Oops. Spotted by clang.

 linux-user/syscall.c |    1 +
 1 file changed, 1 insertion(+)
linux-user/syscall.c +1 -0
index 3f6db4b..f986548 100644
@@ -8523,6 +8523,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
       {
           TaskState *ts = ((CPUArchState *)cpu_env)->opaque;
           ts->tp_value = arg1;
+          ret = 0;
           break;
       }
 #else
Signature · 1 line
1.7.9.5