Re: [Qemu-devel] [PATCH] monitor: add PPC BookE SPRs

2011-04-29 Thread Scott Wood
On Fri, 29 Apr 2011 14:05:23 +0200 Jan Kiszka wrote: > On 2011-04-28 23:01, Scott Wood wrote: > > +#ifdef KVM_CAP_PPC_BOOKE_SREGS > > +if (kvm_check_extension(env->kvm_state, KVM_CAP_PPC_BOOKE_SREGS)) { > > You probably want to cache the result of this syscall during init and > check that he

Re: [Qemu-devel] [PATCH] monitor: add PPC BookE SPRs

2011-04-29 Thread Jan Kiszka
On 2011-04-28 23:01, Scott Wood wrote: > Read them via KVM_GET_SREGS in kvm_arch_get_registers(), > and display them in "info registers". > > Also get CR and PID from the existing KVM_GET_REGS. > > Signed-off-by: Scott Wood > --- > hw/ppc.c | 12 + > monitor.c |

[Qemu-devel] [PATCH] monitor: add PPC BookE SPRs

2011-04-28 Thread Scott Wood
Read them via KVM_GET_SREGS in kvm_arch_get_registers(), and display them in "info registers". Also get CR and PID from the existing KVM_GET_REGS. Signed-off-by: Scott Wood --- hw/ppc.c | 12 + monitor.c | 71 +++- target-ppc/cpu.h