Received: from eggs.gnu.org ([2001:4830:134:3::10]:60655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTYuk-0007XZ-W8 for qemu-devel@nongnu.org; Thu, 05 Mar 2015 11:46:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTYuf-0002Mb-TN for qemu-devel@nongnu.org; Thu, 05 Mar 2015 11:46:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTYuf-0002MG-MI for qemu-devel@nongnu.org; Thu, 05 Mar 2015 11:46:17 -0500 Date: Thu, 5 Mar 2015 17:15:01 +0100 From: Igor Mammedov Message-ID: <20150305171501.32f0d5e2@nial.brq.redhat.com> In-Reply-To: <1425569930-6660-3-git-send-email-ehabkost@redhat.com> References: <1425569930-6660-1-git-send-email-ehabkost@redhat.com> <1425569930-6660-3-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/6] cpu: Initialize breakpoint/watchpoint lists on cpu_common_initfn() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: zhugh.fnst@cn.fujitsu.com, qemu-devel@nongnu.org, tangchen@cn.fujitsu.com, chen.fan.fnst@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, anshul.makkar@profitbricks.com, Gu Zheng , Paolo Bonzini , Andreas =?UTF-8?B?RsOkcmJlcg==?= On Thu, 5 Mar 2015 12:38:46 -0300 Eduardo Habkost wrote: > One small step in the simplification of cpu_exec_init(). > > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > exec.c | 2 -- > qom/cpu.c | 2 ++ > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/exec.c b/exec.c > index 3a61e51..8220535 100644 > --- a/exec.c > +++ b/exec.c > @@ -542,8 +542,6 @@ void cpu_exec_init(CPUArchState *env) > cpu_index++; > } > cpu->cpu_index = cpu_index; > - QTAILQ_INIT(&cpu->breakpoints); > - QTAILQ_INIT(&cpu->watchpoints); > #ifndef CONFIG_USER_ONLY > cpu->as = &address_space_memory; > cpu->thread_id = qemu_get_thread_id(); > diff --git a/qom/cpu.c b/qom/cpu.c > index 970377e..b69ac41 100644 > --- a/qom/cpu.c > +++ b/qom/cpu.c > @@ -313,6 +313,8 @@ static void cpu_common_initfn(Object *obj) > CPUClass *cc = CPU_GET_CLASS(obj); > > cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs; > + QTAILQ_INIT(&cpu->breakpoints); > + QTAILQ_INIT(&cpu->watchpoints); > } > > static int64_t cpu_common_get_arch_id(CPUState *cpu)