From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5fP9-0007Ql-0u for qemu-devel@nongnu.org; Thu, 18 Jun 2015 15:23:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5fP4-00021N-Mk for qemu-devel@nongnu.org; Thu, 18 Jun 2015 15:23:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5fP4-00021I-5A for qemu-devel@nongnu.org; Thu, 18 Jun 2015 15:23:10 -0400 Date: Thu, 18 Jun 2015 16:23:07 -0300 From: Eduardo Habkost Message-ID: <20150618192307.GH3874@thinpad.lan.raisama.net> References: <1434648295-30584-1-git-send-email-crosthwaite.peter@gmail.com> <1434648295-30584-6-git-send-email-crosthwaite.peter@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1434648295-30584-6-git-send-email-crosthwaite.peter@gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 5/8] gdbserver: _fork: Change fn to accept cpu instead of env List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Peter Crosthwaite , Riku Voipio , qemu-devel@nongnu.org, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net On Thu, Jun 18, 2015 at 10:24:52AM -0700, Peter Crosthwaite wrote: > All callsites to this function navigate the cpu->env_ptr only for the > function to take the env ptr back to the original cpu ptr. Change the > function to just pass in the CPU pointer instead. Removes a core code > usage of ENV_GET_CPU (in gdbstub.c). >=20 > Cc: Riku Voipio > Reviewed-by: Andreas F=E4rber > Signed-off-by: Peter Crosthwaite Reviewed-by: Eduardo Habkost --=20 Eduardo