Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfKGZ-0000S2-D2 for qemu-devel@nongnu.org; Wed, 10 Feb 2010 16:38:35 -0500 Received: from [199.232.76.173] (port=39806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfKGY-0000Rg-HS for qemu-devel@nongnu.org; Wed, 10 Feb 2010 16:38:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfKGW-0001gt-Ln for qemu-devel@nongnu.org; Wed, 10 Feb 2010 16:38:34 -0500 Received: from smtp-out.google.com ([216.239.33.17]:37054) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfKGV-0001gW-Ps for qemu-devel@nongnu.org; Wed, 10 Feb 2010 16:38:32 -0500 Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o1ALcLPR021218 for ; Wed, 10 Feb 2010 21:38:22 GMT Received: from fxm24 (fxm24.prod.google.com [10.184.13.24]) by wpaz17.hot.corp.google.com with ESMTP id o1ALcJnW031754 for ; Wed, 10 Feb 2010 13:38:20 -0800 Received: by fxm24 with SMTP id 24so18237fxm.3 for ; Wed, 10 Feb 2010 13:38:19 -0800 (PST) Date: Wed, 10 Feb 2010 21:38:57 +0000 (GMT) From: Damion Yates Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [Qemu-devel] forking i386 binaries on arm linux user mode List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I've grabbed the latest stable qemu and compiled under scratchbox. I hit an issue compiling it, with no __builtin__clear_cache() so linked in a kludge.c containing a call to __clear_cache() with the params passed as they would be to __builtin__clear_cache(). Firstly does this sound like it should work as a workaround? It certainly got me to the next level, which is that I can now run loads of linux binaries on my armlinux system (a Nokia n900). I've tried tower toppler (http://toppler.sourceforge.net/) which uses SDL (via X11) and this was surprisingly fast, in fact it almost felt as fast as the native toppler that somebody crosscompiled already. Most linux utils work when I copy then and any dependant libs from my x86 laptop to the phone. I'm lucky (I guess) that /lib/ld-linux.so.3 is the arm version and I'm using a slightly older .2 for x86 so I can have both files there. I also enabled arbitrary execution of binaries via binfmt_misc. The 600 Mhz Arm V8 Cortex (I think it is), feels like it's running at about Pentium 90 speeds, which I'm hoping is enough for what I really want to get going. I want to run an old, possibly win16 Windows game under wine. I saw that user mode qemu-i386 was able to run wine in a post in 2004: http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/2004-June/014468.html - This was on a PPC however. When I run wine it SEGVs out and the strace of it shows it dies trying to do clone(). I also can't run things like xterm which can't do fork(). Is this because by default it's trying to go via the arm "/bin/sh" to invoke whatever it wants to exec() in to? Should clone()/fork() work? Has anyone been able to run wine ./blah.exe under user-linux mode of qemu on arm or indeed any other non x86 based CPU ? Damion