2 files changed, 3 insertions(+)
qemu/gdbstub.c | 2 ++
qemu/qemu-kvm-powerpc.c | 1 +
This patch initilizes breakpoints in the cpu enviroment for PowerPC for kvm
qemu.
It also adds places into gdb stub for commands that change env->nip, and load
kvm registers with the new program counter.
Signed-off-by: Jerone Young <[EMAIL PROTECTED]>
diff --git a/qemu/gdbstub.c b/qemu/gdbstub.c
--- a/qemu/gdbstub.c
+++ b/qemu/gdbstub.c
@@ -983,6 +983,7 @@ static int gdb_handle_packet(GDBState *s
kvm_load_registers(env);
#elif defined (TARGET_PPC)
env->nip = addr;
+ kvm_load_registers(env);
#elif defined (TARGET_SPARC)
env->pc = addr;
env->npc = addr + 4;
@@ -1021,6 +1022,7 @@ static int gdb_handle_packet(GDBState *s
kvm_load_registers(env);
#elif defined (TARGET_PPC)
env->nip = addr;
+ kvm_load_registers(env);
#elif defined (TARGET_SPARC)
env->pc = addr;
env->npc = addr + 4;
diff --git a/qemu/qemu-kvm-powerpc.c b/qemu/qemu-kvm-powerpc.c
--- a/qemu/qemu-kvm-powerpc.c
+++ b/qemu/qemu-kvm-powerpc.c
@@ -31,6 +31,7 @@ extern kvm_context_t kvm_context;
void cpu_reset(CPUState *env)
{
+ memset(env->breakpoints, 0, sizeof(env->breakpoints));
cpu_ppc_reset(env);
}
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html