Received: from eggs.gnu.org ([2001:4830:134:3::10]:60008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqz6O-0005Ue-OL for qemu-devel@nongnu.org; Mon, 03 Oct 2016 05:00:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqz6K-0002na-Kj for qemu-devel@nongnu.org; Mon, 03 Oct 2016 04:59:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqz6K-0002nL-FL for qemu-devel@nongnu.org; Mon, 03 Oct 2016 04:59:56 -0400 References: <20160930213106.20186-1-alex.bennee@linaro.org> <20160930213106.20186-4-alex.bennee@linaro.org> From: Paolo Bonzini Message-ID: <3cb98ad6-1832-57af-e06d-450a031c15f1@redhat.com> Date: Mon, 3 Oct 2016 10:59:50 +0200 MIME-Version: 1.0 In-Reply-To: <20160930213106.20186-4-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 03/15] exec-all.h: revert tb_page_addr_t to target_ulong List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , qemu-devel@nongnu.org Cc: mttcg@greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, bobby.prani@gmail.com, nikunj@linux.vnet.ibm.com, mark.burton@greensocs.com, jan.kiszka@siemens.com, serge.fdrv@gmail.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite On 30/09/2016 23:30, Alex Benn=C3=A9e wrote: > Commit b480d9b74 converted tb_page_addr_t to abi_ulong which while the > right size imposes additional alignment restrictions on the type. This > gets in the way of using atomic accesses on certain guest platforms > which allow finer alignments. As tb_page_addr_t isn't actually visible > to the guest we can revert the change. >=20 > This is potentially less efficient for ILP32 style guests but it is the > simpler change to make. >=20 > Signed-off-by: Alex Benn=C3=A9e > --- > include/exec/exec-all.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h > index 336a57c..c3596a6 100644 > --- a/include/exec/exec-all.h > +++ b/include/exec/exec-all.h > @@ -30,7 +30,7 @@ > addresses in userspace mode. Define tb_page_addr_t to be an approp= riate > type. */ > #if defined(CONFIG_USER_ONLY) > -typedef abi_ulong tb_page_addr_t; > +typedef target_ulong tb_page_addr_t; > #else > typedef ram_addr_t tb_page_addr_t; > #endif >=20 I think target_ulong is in general not accessible atomically, because we still haven't dropped 64-on-32 support. Paolo