Subject: [PATCH] add more regs to kvm_show_regs for powerpc
From: Christian Ehrhardt <[EMAIL PROTECTED]>
This adds some registers useful for guest debugging to the powerpc code for
kvm_show_regs in libkvm.
Signed-off-by: Christian Ehrhardt <[EMAIL PROTECTED]>
libkvm-powerpc.c | 4 ++++
1 files changed, 4 insertions(+)
diff --git a/libkvm/libkvm-powerpc.c b/libkvm/libkvm-powerpc.c
--- a/libkvm/libkvm-powerpc.c
+++ b/libkvm/libkvm-powerpc.c
@@ -67,6 +67,10 @@ void kvm_show_regs(kvm_context_t kvm, in
if (kvm_get_regs(kvm, vcpu, ®s))
return;
+ fprintf(stderr,"guest vcpu #%d\n", vcpu);
+ fprintf(stderr,"pc: %08x msr: %08x\n", regs.pc, regs.msr);
+ fprintf(stderr,"lr: %08x ctr: %08x\n", regs.lr, regs.ctr);
+ fprintf(stderr,"srr0: %08x srr1: %08x\n", regs.srr0, regs.srr1);
for (i=0; i<32; i+=4)
{
fprintf(stderr, "gpr%02d: %08x %08x %08x %08x\n", i,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel