From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBiMf-0008M8-9M for qemu-devel@nongnu.org; Wed, 03 Jun 2009 00:46:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBiMZ-0008LE-Nf for qemu-devel@nongnu.org; Wed, 03 Jun 2009 00:46:11 -0400 Received: from [199.232.76.173] (port=41465 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBiMZ-0008LB-JR for qemu-devel@nongnu.org; Wed, 03 Jun 2009 00:46:07 -0400 Received: from mail.windriver.com ([147.11.1.11]:64908 helo=mail.wrs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBiMZ-0003x3-5q for qemu-devel@nongnu.org; Wed, 03 Jun 2009 00:46:07 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id n534k32C023541 for ; Tue, 2 Jun 2009 21:46:03 -0700 (PDT) Message-ID: <4A26000A.8060904@windriver.com> Date: Wed, 03 Jun 2009 13:46:02 +0900 From: "Ju-sung.Lee" MIME-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] thread don't work correctly in qemu-mipsel List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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?