kvm: qemu: Add print to PowerPC
PATCH 1/1 kvm: qemu: Add print to PowerPC
This patch adds a print to notify of failed reads and rights.
Signed-off-by Jerone Young <[email protected]>
Signed-off-by Hollis Blanchard <[email protected]>
qemu/qemu-kvm-powerpc.c +6 -2
@@ -199,13 +199,17 @@ int handle_powerpc_dcr_read(int vcpu, uiint handle_powerpc_dcr_read (int vcpu,uint32_t dcrn,uint32_t *data) {CPUState *env = cpu_single_env; -ppc_dcr_read (env->dcr_env, dcrn, data); +if (ppc_dcr_read (env->dcr_env, dcrn, data) <0 ) +fprintf (stderr,"Read to unhandled DCR (0x%x)\n" , dcrn); +return 0 ;/* XXX ignore failed DCR ops */ }int handle_powerpc_dcr_write (int vcpu,uint32_t dcrn,uint32_t data) {CPUState *env = cpu_single_env; -ppc_dcr_write (env->dcr_env, dcrn, data); +if (ppc_dcr_write (env->dcr_env, dcrn, data) <0 ) +fprintf (stderr,"Write to unhandled DCR (0x%x)\n" , dcrn); +return 0 ;/* XXX ignore failed DCR ops */ }
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel