Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxrUF-0001tn-8x for qemu-devel@nongnu.org; Wed, 05 Nov 2008 18:08:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxrUD-0001ta-Uf for qemu-devel@nongnu.org; Wed, 05 Nov 2008 18:08:30 -0500 Received: from [199.232.76.173] (port=54875 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxrUD-0001tX-Qz for qemu-devel@nongnu.org; Wed, 05 Nov 2008 18:08:29 -0500 Received: from yw-out-1718.google.com ([74.125.46.153]:26230) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxrUD-0005NL-IQ for qemu-devel@nongnu.org; Wed, 05 Nov 2008 18:08:29 -0500 Received: by yw-out-1718.google.com with SMTP id 6so136577ywa.82 for ; Wed, 05 Nov 2008 15:08:28 -0800 (PST) Message-ID: <761ea48b0811051508n48888fcam4cf431c6d588a6f4@mail.gmail.com> Date: Thu, 6 Nov 2008 00:08:28 +0100 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] Alpha linux-user support In-Reply-To: <20081105165659.J80362@stanley.csl.cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081105125758.C79913@stanley.csl.cornell.edu> <761ea48b0811051133u207f3bc3q74a08c964aa5a46a@mail.gmail.com> <20081105165659.J80362@stanley.csl.cornell.edu> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Nov 5, 2008 at 11:03 PM, Vince Weaver wrote: > > First, I found a bug in the alpha emulation of the "ret" instruction, see a > separate e-mail to the list. [...] > I've attached my simple assembly program I am working with. It should print > hello world, but doesn't because the address passed to the write syscall is > wrong. I can't easily track down where things are going wrong though > because the gdbstub doesn't work for alpha. Does anyone know the status of > that? After applying your ret patch, it works for me on an x86_64 platform. However the first callsys instruction fails on ia32 and returns EFAULT (bad address). In fact what happens looks like a problem of 64 -> 32 bit mapping: page_check_range fails (called by access_ok which is called by lock_user in do_syscall). It doesn't like the 0x120010100 address. Laurent