hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/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 SUSE Linux Products GmbH 2010
165 *
....@@ -100,10 +89,12 @@
10089 return vcpu->arch.regs.nip;
10190 }
10291
92
+#ifdef CONFIG_BOOKE
10393 static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu)
10494 {
10595 return vcpu->arch.fault_dear;
10696 }
97
+#endif
10798
10899 static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu)
109100 {