aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/emulate.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/emulate.c')
-rw-r--r--arch/powerpc/kvm/emulate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c
index 4c30fa0c31ea..d1d38daa93fb 100644
--- a/arch/powerpc/kvm/emulate.c
+++ b/arch/powerpc/kvm/emulate.c
@@ -28,6 +28,7 @@
28#include <asm/byteorder.h> 28#include <asm/byteorder.h>
29#include <asm/kvm_ppc.h> 29#include <asm/kvm_ppc.h>
30#include <asm/disassemble.h> 30#include <asm/disassemble.h>
31#include "timing.h"
31 32
32void kvmppc_emulate_dec(struct kvm_vcpu *vcpu) 33void kvmppc_emulate_dec(struct kvm_vcpu *vcpu)
33{ 34{
@@ -73,6 +74,9 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
73 enum emulation_result emulated = EMULATE_DONE; 74 enum emulation_result emulated = EMULATE_DONE;
74 int advance = 1; 75 int advance = 1;
75 76
77 /* this default type might be overwritten by subcategories */
78 kvmppc_set_exit_type(vcpu, EMULATED_INST_EXITS);
79
76 switch (get_op(inst)) { 80 switch (get_op(inst)) {
77 case 3: /* trap */ 81 case 3: /* trap */
78 vcpu->arch.esr |= ESR_PTR; 82 vcpu->arch.esr |= ESR_PTR;