From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCFaZ-00052f-OC for qemu-devel@nongnu.org; Mon, 06 Jul 2015 19:14:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCFaW-0007WK-Ii for qemu-devel@nongnu.org; Mon, 06 Jul 2015 19:14:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44015 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCFaW-0007VE-Ay for qemu-devel@nongnu.org; Mon, 06 Jul 2015 19:14:12 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 7 Jul 2015 01:13:45 +0200 Message-Id: <1436224445-19449-3-git-send-email-afaerber@suse.de> In-Reply-To: <1436224445-19449-1-git-send-email-afaerber@suse.de> References: <1436224445-19449-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 02/22] cpu: Initialize breakpoint/watchpoint lists in cpu_common_initfn() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Eduardo Habkost , =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Eduardo Habkost One small step in the simplification of cpu_exec_init(). Reviewed-by: Igor Mammedov Signed-off-by: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- exec.c | 2 -- qom/cpu.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index e63f748..b5ff469 100644 --- a/exec.c +++ b/exec.c @@ -541,8 +541,6 @@ void cpu_exec_init(CPUArchState *env) cpu_index++; } cpu->cpu_index =3D cpu_index; - QTAILQ_INIT(&cpu->breakpoints); - QTAILQ_INIT(&cpu->watchpoints); #ifndef CONFIG_USER_ONLY cpu->as =3D &address_space_memory; cpu->thread_id =3D qemu_get_thread_id(); diff --git a/qom/cpu.c b/qom/cpu.c index 108bfa2..56c53a8 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -313,6 +313,8 @@ static void cpu_common_initfn(Object *obj) CPUClass *cc =3D CPU_GET_CLASS(obj); =20 cpu->gdb_num_regs =3D cpu->gdb_num_g_regs =3D cc->gdb_num_core_regs; + QTAILQ_INIT(&cpu->breakpoints); + QTAILQ_INIT(&cpu->watchpoints); } =20 static int64_t cpu_common_get_arch_id(CPUState *cpu) --=20 2.1.4