thread don't work correctly in qemu-mipsel
Anyone seen this failure mode before?
qemu : 0.10.50
Target : Qemu-mipsel
toolchain : mipsel-linux-gcc (GCC) 4.2.4
I am attemplting to compile a thead test program in qemu-mipsel. but a thread test program don't work correctly. a thread test program is below
#include <pthread.h>
int check_me = 0;
void* func(void* data) {check_me = 42; return &check_me;} int main()
{ pthread_t t;
void *ret;
pthread_create (&t, 0, func, 0);
pthread_join (t, &ret);
return (check_me != 42 || ret != &check_me); }
a check_me value should be 42 and ret address should be same with &check_me, but check_me is 0 and ret address is nil in compiled program in qemu-mipsel.
So I have tested a thread test program in qemu-arm, this test program worked correctly in qemu-arm. I don't know why a thread test program don't work correctly in qemu-mipsel.
Is there a problem in qemu-mipsel?
Quoted 2 lines
I am attemplting to compile a thead test program in qemu-mipsel. but a thread test program don't work correctly. a thread test program is below
mips qemu doesn't currently support threads. I've got local patches for this that I hope to push out soon.
Paul