From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yse3h-0003lh-Mb for qemu-devel@nongnu.org; Wed, 13 May 2015 17:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yse3c-0004Bq-L5 for qemu-devel@nongnu.org; Wed, 13 May 2015 17:19:17 -0400 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:34828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yse3c-0004Bi-Gg for qemu-devel@nongnu.org; Wed, 13 May 2015 17:19:12 -0400 Received: by qgej70 with SMTP id j70so28414573qge.2 for ; Wed, 13 May 2015 14:19:12 -0700 (PDT) Sender: Richard Henderson Message-ID: <5553BFCB.5060206@twiddle.net> Date: Wed, 13 May 2015 14:19:07 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1431544200-13371-1-git-send-email-rth@twiddle.net> <1431544200-13371-4-git-send-email-rth@twiddle.net> <5553BD4C.3060305@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/3] tcg: Add MO_ALIGN, MO_UNALN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Yongbok Kim , Leon Alrae , QEMU Developers On 05/13/2015 02:15 PM, Peter Maydell wrote: > On 13 May 2015 at 22:08, Richard Henderson wrote: >>> Are unaligned accesses always slow-path, by the way? > > Would it be in theory possible to fast-path MO_UNALN > unaligned accesses if the host CPU supported unaligned > accesses for whatever load/store insn we use in the TLB > hit case? We would also need to test for page boundary crossing. That would take at least 3 more insns, for a host that natively supports unaligned accesses. Whether that's worth it or not would need testing... r~