Lines Matching full:emulated
77 enum emulation_result emulated = EMULATE_DONE; in kvmppc_emulate_mtspr() local
115 emulated = vcpu->kvm->arch.kvm_ops->emulate_mtspr(vcpu, sprn, in kvmppc_emulate_mtspr()
117 if (emulated == EMULATE_FAIL) in kvmppc_emulate_mtspr()
125 return emulated; in kvmppc_emulate_mtspr()
130 enum emulation_result emulated = EMULATE_DONE; in kvmppc_emulate_mfspr() local
176 emulated = vcpu->kvm->arch.kvm_ops->emulate_mfspr(vcpu, sprn, in kvmppc_emulate_mfspr()
178 if (unlikely(emulated == EMULATE_FAIL)) { in kvmppc_emulate_mfspr()
185 if (emulated == EMULATE_DONE) in kvmppc_emulate_mfspr()
189 return emulated; in kvmppc_emulate_mfspr()
199 enum emulation_result emulated; in kvmppc_emulate_instruction() local
205 emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &pinst); in kvmppc_emulate_instruction()
207 if (emulated != EMULATE_DONE) in kvmppc_emulate_instruction()
208 return emulated; in kvmppc_emulate_instruction()
245 emulated = kvmppc_emulate_mfspr(vcpu, sprn, rt); in kvmppc_emulate_instruction()
246 if (emulated == EMULATE_AGAIN) { in kvmppc_emulate_instruction()
247 emulated = EMULATE_DONE; in kvmppc_emulate_instruction()
253 emulated = kvmppc_emulate_mtspr(vcpu, sprn, rs); in kvmppc_emulate_instruction()
254 if (emulated == EMULATE_AGAIN) { in kvmppc_emulate_instruction()
255 emulated = EMULATE_DONE; in kvmppc_emulate_instruction()
265 emulated = EMULATE_FAIL; in kvmppc_emulate_instruction()
278 emulated = EMULATE_EXIT_USER; in kvmppc_emulate_instruction()
281 emulated = EMULATE_FAIL; in kvmppc_emulate_instruction()
286 emulated = EMULATE_FAIL; in kvmppc_emulate_instruction()
289 if (emulated == EMULATE_FAIL) { in kvmppc_emulate_instruction()
290 emulated = vcpu->kvm->arch.kvm_ops->emulate_op(vcpu, inst, in kvmppc_emulate_instruction()
292 if (emulated == EMULATE_AGAIN) { in kvmppc_emulate_instruction()
294 } else if (emulated == EMULATE_FAIL) { in kvmppc_emulate_instruction()
301 trace_kvm_ppc_instr(inst, kvmppc_get_pc(vcpu), emulated); in kvmppc_emulate_instruction()
303 /* Advance past emulated instruction. */ in kvmppc_emulate_instruction()
311 return emulated; in kvmppc_emulate_instruction()