summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-07-14 11:35:17 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2009-07-14 19:37:30 -0300
commitc4485199f8d1a1c8a358f0432d19bf73b251c5d6 (patch)
treedc0e84fec92ecdc044ba2e09d014e4b1ea8191c3 /qemu-kvm-x86.c
parentprovide env->kvm_fd (diff)
downloadqemu-kvm-c4485199f8d1a1c8a358f0432d19bf73b251c5d6.tar.gz
qemu-kvm-c4485199f8d1a1c8a358f0432d19bf73b251c5d6.tar.bz2
qemu-kvm-c4485199f8d1a1c8a358f0432d19bf73b251c5d6.zip
use kvm_upstream sw_breakpoints structure
Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index b531ca46a..3bbb9d25a 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1519,7 +1519,7 @@ int kvm_arch_debug(struct kvm_debug_exit_arch *arch_info)
break;
}
}
- } else if (kvm_find_sw_breakpoint(arch_info->pc))
+ } else if (kvm_find_sw_breakpoint(cpu_single_env, arch_info->pc))
handle = 1;
if (!handle)
@@ -1542,7 +1542,7 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
};
int n;
- if (!TAILQ_EMPTY(&kvm_sw_breakpoints))
+ if (kvm_sw_breakpoints_active(env))
dbg->control |= KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP;
if (nb_hw_breakpoint > 0) {