[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 02/22] cpu: Initialize breakpoint/watchpoint lists
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PULL v2 02/22] cpu: Initialize breakpoint/watchpoint lists in cpu_common_initfn() |
Date: |
Tue, 7 Jul 2015 19:16:09 +0200 |
From: Eduardo Habkost <address@hidden>
One small step in the simplification of cpu_exec_init().
Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
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 = 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 108bfa2..56c53a8 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)
--
2.1.4
- [Qemu-devel] [PULL v2 00/22] QOM CPUState patch queue 2015-07-07, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 02/22] cpu: Initialize breakpoint/watchpoint lists in cpu_common_initfn(),
Andreas Färber <=
- [Qemu-devel] [PULL v2 03/22] cpu: Reorder cpu->as, cpu->thread_id, cpu->memory_dispatch init, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 08/22] gdbstub: Change gdbserver_fork() to accept cpu instead of env, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 09/22] cpu: Change tcg_cpu_exec() arg to cpu, not env, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 14/22] hw/arm/boot: Use cpu_set_pc(), Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 06/22] target-ppc: Move cpu_exec_init() call to realize function, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 05/22] cpu: Convert cpu_index into a bitmap, Andreas Färber, 2015/07/07
- [Qemu-devel] [PULL v2 15/22] microblaze: boot: Use cpu_set_pc(), Andreas Färber, 2015/07/07