Received: from eggs.gnu.org ([2001:4830:134:3::10]:57129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNsGm-0001oj-1n for qemu-devel@nongnu.org; Wed, 12 Mar 2014 19:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNsGg-0005AQ-2P for qemu-devel@nongnu.org; Wed, 12 Mar 2014 19:09:03 -0400 Received: from a.painless.aa.net.uk ([81.187.30.51]:38063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNsGf-0005AM-Sg for qemu-devel@nongnu.org; Wed, 12 Mar 2014 19:08:57 -0400 Received: from 0.2.f.d.0.a.2.9.b.c.8.2.e.b.c.6.9.0.3.d.f.7.a.c.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:ca7f:d309:6cbe:28cb:92a0:df20] helo=athena.zubnet.me.uk) by a.painless.aa.net.uk with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1WNsGc-00046L-Gc for qemu-devel@nongnu.org; Wed, 12 Mar 2014 23:08:56 +0000 Received: from sdb by athena.zubnet.me.uk with local (Exim 4.82) (envelope-from ) id 1WNsGb-000426-Tg for qemu-devel@nongnu.org; Wed, 12 Mar 2014 23:08:53 +0000 Date: Wed, 12 Mar 2014 23:08:53 +0000 From: Stuart Brady Message-ID: <20140312230853.GB13298@zubnet.me.uk> References: <1394410549-13751-1-git-send-email-afaerber@suse.de> <1394410549-13751-20-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1394410549-13751-20-git-send-email-afaerber@suse.de> Subject: Re: [Qemu-devel] [PATCH qom-cpu v2 19/40] cpu: Move breakpoints field from CPU_COMMON to CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Mar 10, 2014 at 01:15:28AM +0100, Andreas Färber wrote: > Most targets were using offsetof(CPUFooState, breakpoints) to determine > how much of CPUFooState to clear on reset. Use the next field after > CPU_COMMON instead, if any, or sizeof(CPUFooState) otherwise. Would it not be easier and more readable to add a field replacing 'breakpoints' just for this purpose, at least for the time being? I'm guessing CPU_COMMON_TLB will be getting cleaned up too at some point so is it really worth avoiding the tiny amount of bloat this imposes? -- Cheers, Stuart