| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 3 | | - * it under the terms of the GNU General Public License, version 2, as |
|---|
| 4 | | - * published by the Free Software Foundation. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 7 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 8 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 9 | | - * GNU General Public License for more details. |
|---|
| 10 | | - * |
|---|
| 11 | | - * You should have received a copy of the GNU General Public License |
|---|
| 12 | | - * along with this program; if not, write to the Free Software |
|---|
| 13 | | - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 14 | 3 | * |
|---|
| 15 | 4 | * Copyright IBM Corp. 2008 |
|---|
| 16 | 5 | * |
|---|
| .. | .. |
|---|
| 81 | 70 | void kvmppc_set_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits); |
|---|
| 82 | 71 | void kvmppc_clr_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits); |
|---|
| 83 | 72 | |
|---|
| 84 | | -int kvmppc_booke_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu, |
|---|
| 73 | +int kvmppc_booke_emulate_op(struct kvm_vcpu *vcpu, |
|---|
| 85 | 74 | unsigned int inst, int *advance); |
|---|
| 86 | 75 | int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val); |
|---|
| 87 | 76 | int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val); |
|---|
| .. | .. |
|---|
| 105 | 94 | |
|---|
| 106 | 95 | void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type); |
|---|
| 107 | 96 | |
|---|
| 108 | | -extern void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu); |
|---|
| 109 | | -extern int kvmppc_core_emulate_op_e500(struct kvm_run *run, |
|---|
| 110 | | - struct kvm_vcpu *vcpu, |
|---|
| 97 | +extern int kvmppc_core_emulate_op_e500(struct kvm_vcpu *vcpu, |
|---|
| 111 | 98 | unsigned int inst, int *advance); |
|---|
| 112 | 99 | extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, |
|---|
| 113 | 100 | ulong spr_val); |
|---|
| 114 | 101 | extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, |
|---|
| 115 | 102 | ulong *spr_val); |
|---|
| 116 | | -extern void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu); |
|---|
| 117 | | -extern int kvmppc_core_emulate_op_e500(struct kvm_run *run, |
|---|
| 118 | | - struct kvm_vcpu *vcpu, |
|---|
| 119 | | - unsigned int inst, int *advance); |
|---|
| 120 | 103 | extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, |
|---|
| 121 | 104 | ulong spr_val); |
|---|
| 122 | 105 | extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, |
|---|