All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] thread don't work correctly in qemu-mipsel
@ 2009-06-03  4:46 Ju-sung.Lee
  2009-06-03 11:32 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Ju-sung.Lee @ 2009-06-03  4:46 UTC (permalink / raw)
  To: qemu-devel

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? 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] thread don't work correctly in qemu-mipsel
  2009-06-03  4:46 [Qemu-devel] thread don't work correctly in qemu-mipsel Ju-sung.Lee
@ 2009-06-03 11:32 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2009-06-03 11:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Ju-sung.Lee

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-03 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03  4:46 [Qemu-devel] thread don't work correctly in qemu-mipsel Ju-sung.Lee
2009-06-03 11:32 ` Paul Brook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.