From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsuoT-000726-9S for qemu-devel@nongnu.org; Sat, 29 Jun 2013 09:03:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsuoS-0002zh-9c for qemu-devel@nongnu.org; Sat, 29 Jun 2013 09:03:37 -0400 Message-ID: <51CEDB21.8020301@suse.de> Date: Sat, 29 Jun 2013 15:03:29 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1372425837-30635-1-git-send-email-afaerber@suse.de> <51CDC8C1.5070106@twiddle.net> In-Reply-To: <51CDC8C1.5070106@twiddle.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] cpu: Drop unnecessary dynamic casts in *_env_get_cpu() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Peter Maydell , Anthony Green , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Max Filippov , Michael Walle , qemu-ppc , Paul Brook , Anthony Liguori , "Edgar E. Iglesias" , Paolo Bonzini , Guan Xuetao , Aurelien Jarno Am 28.06.2013 19:32, schrieb Richard Henderson: > On 06/28/2013 06:23 AM, Andreas F=C3=A4rber wrote: >> A transition from CPUFooState to FooCPU can be considered safe, >> just like FooCPU::env access in the opposite direction. >> The only benefit of the FOO_CPU() casts would be protection against >> bogus CPUFooState pointers, but then surrounding code would likely >> break, too. >> >> This should slightly improve interrupt etc. performance. >> >> Reported-by: Anthony Liguori >> Signed-off-by: Andreas F=C3=A4rber >=20 > Acked-by: Richard Henderson Thanks, applied to qom-cpu (with extended commit message): https://github.com/afaerber/qemu-cpu/commits/qom-cpu Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg