Message ID | CANtoAtMZwWqdL+xaw9u-7SNgjCHb_MbWKy8AFrG8_OhqNxf7QQ@mail.gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | powerpc: fix building after binutils changes. - but the 'lwsync' question | expand |
--- a/media/thread/12fd50d6-d14c-42af-ad1d-a595e5f080cd/dev/linux-main/linux/arch/powerpc/lib/sstep.c +++ b/home/thread/dev/linus/linux/arch/powerpc/lib/sstep.c @@ -3265,7 +3265,11 @@ void emulate_update_regs(struct pt_regs *regs, struct instruction_op *op) eieio(); break; case BARRIER_LWSYNC: +#if defined (CONFIG_40x || CONFIG_44x || CONFIG_E500 || CONFIG_PPA8548 || CONFIG_TQM8548 || CONFIG_MPC8540_ADS || CONFIG_PPC_BOOK3S_603) + asm volatile("sync" : : : "memory"); +#else asm volatile("lwsync" : : : "memory"); +#endif break; #ifdef CONFIG_PPC64 case BARRIER_PTESYNC: