From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YglKs-00060z-V3 for qemu-devel@nongnu.org; Fri, 10 Apr 2015 22:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YglKp-0007ll-Pl for qemu-devel@nongnu.org; Fri, 10 Apr 2015 22:39:54 -0400 Received: from blu004-omc1s24.hotmail.com ([65.55.116.35]:61423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YglKp-0007lh-M6 for qemu-devel@nongnu.org; Fri, 10 Apr 2015 22:39:51 -0400 Message-ID: Date: Sat, 11 Apr 2015 10:39:54 +0800 From: Chen Gang MIME-Version: 1.0 References: <55153546.5060906@hotmail.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/12 v9] linux-user: tilegx: Firstly add architecture related features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , qemu-devel , Chris Metcalf , "walt@tilera.com" , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , "rth@twiddle.net" On 4/11/15 05:38, Peter Maydell wrote: > On 10 April 2015 at 21:01, Chen Gang wrote: >> >> Firstly, thank you very much for your patient work for all related >> patches. >> >> And I shall try to send patch v10 within this month, and let linux-user >> run "Hello world" completely (finish emulate a demo executable binary >> successfully). >> >> The related reply is below: >> >> On 4/10/15 05:21, Peter Maydell wrote: >>>> + tilegx_reg_t tp; /* thread-local data */ >>>> + tilegx_reg_t sp; /* stack pointer */ >>>> + tilegx_reg_t lr; /* lr pointer */ >>> >>> This is missing a bunch of stuff from the kernel uapi >>> pt_regs type, which is bad because this struct is part >>> of the user-facing ABI (it gets used in signal handling). >>> >> >> OK, thanks. And I guess, sigcontext is a little betther than pt_regs. > > sigcontext is a different struct. The target_pt_regs struct > should match the kernel's pt_regs struct, and the target_sigcontext > should match the kernel's sigcontext struct. > OK, Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed