diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-04-27 17:00:32 -0300 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-07-09 15:20:39 +0200 |
commit | 7c39163e389e6e6e16965606fb5a26abcdb6ad73 (patch) | |
tree | b8424125c3b7f43b62d17d7c991e286f696c3ebc /qom/cpu.c | |
parent | 199fc85acd0571902eeefef6ea861b8ba4c8201f (diff) | |
download | qemu-7c39163e389e6e6e16965606fb5a26abcdb6ad73.zip qemu-7c39163e389e6e6e16965606fb5a26abcdb6ad73.tar.gz qemu-7c39163e389e6e6e16965606fb5a26abcdb6ad73.tar.bz2 |
cpu: Initialize breakpoint/watchpoint lists in cpu_common_initfn()
One small step in the simplification of cpu_exec_init().
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qom/cpu.c')
-rw-r--r-- | qom/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |