From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nmokh-00045Y-GR for qemu-devel@nongnu.org; Wed, 03 Mar 2010 08:36:39 -0500 Received: from [199.232.76.173] (port=33385 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nmokh-00045F-0y for qemu-devel@nongnu.org; Wed, 03 Mar 2010 08:36:39 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nmoke-0001G6-M9 for qemu-devel@nongnu.org; Wed, 03 Mar 2010 08:36:38 -0500 Received: from mx20.gnu.org ([199.232.41.8]:50313) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nmoke-0001Fs-BM for qemu-devel@nongnu.org; Wed, 03 Mar 2010 08:36:36 -0500 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nmokc-0001MU-Lh for qemu-devel@nongnu.org; Wed, 03 Mar 2010 08:36:34 -0500 Message-ID: <4B8E65DD.8090408@codesourcery.com> Date: Wed, 03 Mar 2010 16:36:29 +0300 From: Maxim Kuvyrkov MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/4] Fix signal handling for ColdFire References: <4B8C133D.2030900@codesourcery.com> <4B8C1660.5080009@codesourcery.com> <4B8E6181.7010104@twiddle.net> In-Reply-To: <4B8E6181.7010104@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On 3/3/10 4:17 PM, Richard Henderson wrote: >> + float64 sc_fpregs[2]; /* room for two fp registers */ > ... >> - int f_fpcntl[3]; >> - int f_fpregs[8*3]; >> + uint32_t f_fpcntl[3]; >> + float64 f_fpregs[8]; > > Surely these float64 uses are incorrect. The kernel uses 3*int > at both of these places, which matches up with the 96-bit values > in the regular m68k fpu. ColdFire FPU registers are 64-bit wide, this is one of the difference between ColdFire and classic m68k. The kernel patch to sigcontext.h to support ColdFire was merged several days ago at http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/m68k/include/asm/sigcontext.h;h=1320eaa4cc2aab4b531a565c57ab62afb30bd0ec;hb=HEAD . And thanks to your comment I noticed that an old version of the sigcontext patch was merged into the kernel in the above commit. Will need to fix it. Regards, -- Maxim Kuvyrkov CodeSourcery maxim@codesourcery.com (650) 331-3385 x724