.. | .. |
---|
| 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 SUSE Linux Products GmbH 2010 |
---|
16 | 5 | * |
---|
.. | .. |
---|
100 | 89 | return vcpu->arch.regs.nip; |
---|
101 | 90 | } |
---|
102 | 91 | |
---|
| 92 | +#ifdef CONFIG_BOOKE |
---|
103 | 93 | static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) |
---|
104 | 94 | { |
---|
105 | 95 | return vcpu->arch.fault_dear; |
---|
106 | 96 | } |
---|
| 97 | +#endif |
---|
107 | 98 | |
---|
108 | 99 | static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu) |
---|
109 | 100 | { |
---|