[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] thread don't work correctly in qemu-mipsel
From: |
Ju-sung.Lee |
Subject: |
[Qemu-devel] thread don't work correctly in qemu-mipsel |
Date: |
Wed, 03 Jun 2009 13:46:02 +0900 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
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?
- [Qemu-devel] thread don't work correctly in qemu-mipsel,
Ju-sung.Lee <=