powerpc/64s/exception: Trim unused arguments from KVMTEST macro

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200225173541.1549955-16-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2020-02-26 03:35:24 +10:00 committed by Michael Ellerman
parent 931dc86b3a
commit 9d598f9344

View File

@ -224,7 +224,7 @@ do_define_int n
#define kvmppc_interrupt kvmppc_interrupt_pr #define kvmppc_interrupt kvmppc_interrupt_pr
#endif #endif
.macro KVMTEST name, hsrr, n .macro KVMTEST name
lbz r10,HSTATE_IN_GUEST(r13) lbz r10,HSTATE_IN_GUEST(r13)
cmpwi r10,0 cmpwi r10,0
bne \name\()_kvm bne \name\()_kvm
@ -293,7 +293,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR)
.endm .endm
#else #else
.macro KVMTEST name, hsrr, n .macro KVMTEST name
.endm .endm
.macro GEN_KVM name .macro GEN_KVM name
.endm .endm
@ -439,7 +439,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_CFAR)
DEFINE_FIXED_SYMBOL(\name\()_common_real) DEFINE_FIXED_SYMBOL(\name\()_common_real)
\name\()_common_real: \name\()_common_real:
.if IKVM_REAL .if IKVM_REAL
KVMTEST \name IHSRR IVEC KVMTEST \name
.endif .endif
ld r10,PACAKMSR(r13) /* get MSR value for kernel */ ld r10,PACAKMSR(r13) /* get MSR value for kernel */
@ -462,7 +462,7 @@ DEFINE_FIXED_SYMBOL(\name\()_common_real)
DEFINE_FIXED_SYMBOL(\name\()_common_virt) DEFINE_FIXED_SYMBOL(\name\()_common_virt)
\name\()_common_virt: \name\()_common_virt:
.if IKVM_VIRT .if IKVM_VIRT
KVMTEST \name IHSRR IVEC KVMTEST \name
1: 1:
.endif .endif
.endif /* IVIRT */ .endif /* IVIRT */
@ -476,7 +476,7 @@ DEFINE_FIXED_SYMBOL(\name\()_common_virt)
DEFINE_FIXED_SYMBOL(\name\()_common_real) DEFINE_FIXED_SYMBOL(\name\()_common_real)
\name\()_common_real: \name\()_common_real:
.if IKVM_REAL .if IKVM_REAL
KVMTEST \name IHSRR IVEC KVMTEST \name
.endif .endif
.endm .endm
@ -1598,7 +1598,7 @@ INT_DEFINE_END(system_call)
GET_PACA(r13) GET_PACA(r13)
std r10,PACA_EXGEN+EX_R10(r13) std r10,PACA_EXGEN+EX_R10(r13)
INTERRUPT_TO_KERNEL INTERRUPT_TO_KERNEL
KVMTEST system_call EXC_STD 0xc00 /* uses r10, branch to system_call_kvm */ KVMTEST system_call /* uses r10, branch to system_call_kvm */
mfctr r9 mfctr r9
#else #else
mr r9,r13 mr r9,r13