Received: from eggs.gnu.org ([208.118.235.92]:34560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI2Wj-0007uZ-VT for qemu-devel@nongnu.org; Tue, 19 Mar 2013 15:48:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI2Wi-0007Gz-UG for qemu-devel@nongnu.org; Tue, 19 Mar 2013 15:48:53 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <5148AF42.7000103@twiddle.net> Date: Tue, 19 Mar 2013 20:48:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1363694598-19799-1-git-send-email-chouteau@adacore.com> <1F098328-BA3A-40BC-955B-9CDFF470D257@suse.de> <514880BD.8040009@adacore.com> <51489E47.5040204@adacore.com> <5148AF42.7000103@twiddle.net> Subject: Re: [Qemu-devel] [PATCH] PPC/GDB: handle read and write of fpscr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Peter Maydell , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Fabien Chouteau On 19.03.2013, at 19:32, Richard Henderson wrote: > On 03/19/2013 10:20 AM, Fabien Chouteau wrote: >> Cleaner solution indeed. I'll do the opposite, store_fpscr calls = helper_store_fpscr. >=20 > The declarations won't be in the right places for that to work right. >=20 > Canonically, cpu_store_fpscr should be declared in cpu.h, have the = leading > "cpu_" prefix, and then helper_store_fpscr is declared (via macro) in = helper.h > and its definition should call the cpu.h function. Heh :) Fabien did a clever workaround that one in his v2. Mind to check = whether it's ok for you? Alex