[PATCH 3 of 6] [PATCH] kvm-userspace: ppc: align with upstream qemu - breakpoint reset

Christian Ehrhardt
2008-12-10T15:48:18Z

# Date 1228922788 -3600
# Node ID c032d8555c9494f9812e4d4e0b5ccccb511ae597
# Parent f100b1bfa5f3d084d68bd2c66244271db1f5d084
[PATCH] kvm-userspace: ppc: align with upstream qemu - breakpoint reset

From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

The way resettign that changed upstream, adopt new style in kvmppc code.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---

[diffstat]
qemu-kvm-powerpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

[diff]

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,7 +31,7 @@ extern kvm_context_t kvm_context;

void cpu_reset(CPUState *env)
{
- memset(env->breakpoints, 0, sizeof(env->breakpoints));
+ memset(env, 0, offsetof(CPUPPCState, breakpoints));
cpu_ppc_reset(env);
}