From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRLGO-0003Hw-5g for qemu-devel@nongnu.org; Mon, 17 Aug 2015 10:19:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRLGN-0007us-1p for qemu-devel@nongnu.org; Mon, 17 Aug 2015 10:19:48 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:32779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRLGM-0007uo-QF for qemu-devel@nongnu.org; Mon, 17 Aug 2015 10:19:46 -0400 Received: by lbbsx3 with SMTP id sx3so83088810lbb.0 for ; Mon, 17 Aug 2015 07:19:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150730075538.GU11361@aurel32.net> References: <55B734A7.8040108@gmx.net> <55B8B122.7020406@gmx.net> <55B8DB46.6070307@gmx.net> <55B99E47.8070007@gmx.net> <20150730075538.GU11361@aurel32.net> From: Artyom Tarasenko Date: Mon, 17 Aug 2015 16:19:26 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Debian 7.8.0 SPARC64 on qemu - anything i can do to speedup the emulation? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Richard Henderson , alex.bennee@linaro.org, qemu-devel , Dennis Luehring , Karel Gardas On Thu, Jul 30, 2015 at 9:55 AM, Aurelien Jarno wrote: > On 2015-07-30 05:47, Dennis Luehring wrote: >> so your aarch64 is just less todo for qemu - not EVERY >= 16bit memory >> access needs swapping or needs check for unaligned access to emulate >> bus-erros > > On recent Intel CPU, the byteswapping comes for free (MOVBE > instruction). > > About the unaligned access it's actually the reverse. The fact that > aarch64 does unaligned access means they have to go through the slow > path (I have posted a patch to improve that). On sparc given that all > access are aligned means there are more chances to go through the fast > path. Well, on the other hand, every access goes via helper_check_align. There is a comment /* XXX remove alignment check */. I wonder how this can be done in a more efficient way? Inlining the check and using a brcond instruction would require that all TCG temps would have to be changed to locals, which in turn would produce a performance impact. Are there other ways of doing it? Artyom -- Regards, Artyom Tarasenko SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu