From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP9z3-0007sX-LQ for qemu-devel@nongnu.org; Tue, 11 Aug 2015 09:52:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP9yz-0002HZ-4G for qemu-devel@nongnu.org; Tue, 11 Aug 2015 09:52:53 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:38476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP9yy-0002HN-Sm for qemu-devel@nongnu.org; Tue, 11 Aug 2015 09:52:49 -0400 Received: by wicja10 with SMTP id ja10so69674751wic.1 for ; Tue, 11 Aug 2015 06:52:48 -0700 (PDT) Sender: Paolo Bonzini References: <1438966995-5913-1-git-send-email-a.rigo@virtualopensystems.com> <1438966995-5913-4-git-send-email-a.rigo@virtualopensystems.com> From: Paolo Bonzini Message-ID: <55C9FE28.9050403@redhat.com> Date: Tue, 11 Aug 2015 15:52:40 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v4 3/9] softmmu: Add helpers for a new slowpath List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alvise rigo , QEMU Developers , mttcg@listserver.greensocs.com Cc: Claudio Fontana , Jani Kokkonen , VirtualOpenSystems Technical Team , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 11/08/2015 15:32, alvise rigo wrote: >> > +#if DATA_SIZE > 1 >> > +#define helper_ldlink_name glue(glue(helper_le_ldlink, USUFFIX), MMUSUFFIX) >> > +#define helper_stcond_name glue(glue(helper_le_stcond, SUFFIX), MMUSUFFIX) >> > +#define helper_ld_legacy glue(glue(helper_le_ld, USUFFIX), MMUSUFFIX) >> > +#define helper_st_legacy glue(glue(helper_le_st, SUFFIX), MMUSUFFIX) > Wouldn't be better here to not use the helpers from softmmu_template.h? > Doing so, in softmmu_template.h we don't need to differentiate the > normal stores from the SCs > This at a cost of some additional boilerplate in softmmu_llsc_template.h. A lot more boilerplate I think? This patch looks good, I would just s/_legacy// because it's not really legacy. Paolo