mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 05:46:47 +07:00
powerpc: Move and fix MTMSR_EERI definition
Move this duplicated definition to ppc_asm.h and remove the braces which prevent the use of %rN register names Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
d72be892c8
commit
b38c77d82e
@ -475,6 +475,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
|
|||||||
#ifdef CONFIG_PPC_BOOK3S_64
|
#ifdef CONFIG_PPC_BOOK3S_64
|
||||||
#define RFI rfid
|
#define RFI rfid
|
||||||
#define MTMSRD(r) mtmsrd r
|
#define MTMSRD(r) mtmsrd r
|
||||||
|
#define MTMSR_EERI(reg) mtmsrd reg,1
|
||||||
#else
|
#else
|
||||||
#define FIX_SRR1(ra, rb)
|
#define FIX_SRR1(ra, rb)
|
||||||
#ifndef CONFIG_40x
|
#ifndef CONFIG_40x
|
||||||
@ -483,6 +484,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
|
|||||||
#define RFI rfi; b . /* Prevent prefetch past rfi */
|
#define RFI rfi; b . /* Prevent prefetch past rfi */
|
||||||
#endif
|
#endif
|
||||||
#define MTMSRD(r) mtmsr r
|
#define MTMSRD(r) mtmsr r
|
||||||
|
#define MTMSR_EERI(reg) mtmsr reg
|
||||||
#define CLR_TOP32(r)
|
#define CLR_TOP32(r)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#if defined(CONFIG_PPC_BOOK3S_64)
|
#if defined(CONFIG_PPC_BOOK3S_64)
|
||||||
|
|
||||||
#define FUNC(name) GLUE(.,name)
|
#define FUNC(name) GLUE(.,name)
|
||||||
#define MTMSR_EERI(reg) mtmsrd (reg),1
|
|
||||||
|
|
||||||
.globl kvmppc_skip_interrupt
|
.globl kvmppc_skip_interrupt
|
||||||
kvmppc_skip_interrupt:
|
kvmppc_skip_interrupt:
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#define GET_SHADOW_VCPU(reg) \
|
#define GET_SHADOW_VCPU(reg) \
|
||||||
mr reg, r13
|
mr reg, r13
|
||||||
#define MTMSR_EERI(reg) mtmsrd (reg),1
|
|
||||||
|
|
||||||
#elif defined(CONFIG_PPC_BOOK3S_32)
|
#elif defined(CONFIG_PPC_BOOK3S_32)
|
||||||
|
|
||||||
@ -31,7 +30,6 @@
|
|||||||
tophys(reg, r2); \
|
tophys(reg, r2); \
|
||||||
lwz reg, (THREAD + THREAD_KVM_SVCPU)(reg); \
|
lwz reg, (THREAD + THREAD_KVM_SVCPU)(reg); \
|
||||||
tophys(reg, reg)
|
tophys(reg, reg)
|
||||||
#define MTMSR_EERI(reg) mtmsr (reg)
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user