Patchwork [2/2] KVM: PPC: 440: Implement mfdcrx

login
register
mail settings
Submitter Alexander Graf
Date Aug. 15, 2012, 10:42 p.m.
Message ID <1345070546-27513-2-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/177870/
State New
Headers show

Comments

Alexander Graf - Aug. 15, 2012, 10:42 p.m.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/44x_emulate.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/powerpc/kvm/44x_emulate.c b/arch/powerpc/kvm/44x_emulate.c
index ea57631..30ea3a7 100644
--- a/arch/powerpc/kvm/44x_emulate.c
+++ b/arch/powerpc/kvm/44x_emulate.c
@@ -27,6 +27,7 @@ 
 #include "booke.h"
 #include "44x_tlb.h"
 
+#define XOP_MFDCRX  259
 #define XOP_MFDCR   323
 #define XOP_MTDCRX  387
 #define XOP_MTDCR   451
@@ -50,6 +51,8 @@  int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
 	case 31:
 		switch (get_xop(inst)) {
 
+		case XOP_MFDCRX:
+			dcrn = kvmppc_get_gpr(vcpu, ra);
 		case XOP_MFDCR:
 			/* The guest may access CPR0 registers to determine the timebase
 			 * frequency, and it must know the real host frequency because it