forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/powerpc/kvm/booke.h
....@@ -1,16 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
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.
143 *
154 * Copyright IBM Corp. 2008
165 *
....@@ -81,7 +70,7 @@
8170 void kvmppc_set_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits);
8271 void kvmppc_clr_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits);
8372
84
-int kvmppc_booke_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
73
+int kvmppc_booke_emulate_op(struct kvm_vcpu *vcpu,
8574 unsigned int inst, int *advance);
8675 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);
8776 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val);
....@@ -105,18 +94,12 @@
10594
10695 void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type);
10796
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,
11198 unsigned int inst, int *advance);
11299 extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn,
113100 ulong spr_val);
114101 extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn,
115102 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);
120103 extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn,
121104 ulong spr_val);
122105 extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn,