Re: [MIPS] GCC: Fix Loongson3 LLSC Errata

2019-09-30 Thread Jiaxun Yang
henghua Xu Date: Fri, 30 Nov 2018 19:57:38 +0800 Subject: [PATCH] [MIPS][GCC] Fix Loongson3 LLSC Errata. gcc/ * config.gcc (supported_defaults): Add fix-loongson3-llsc (with_fix_loongson3_llsc): Add validation. (all_defaults): Add fix-loongson3-llsc. * config/mip

[PATCH v2] [MIPS] GCC: Fix Loongson3 LLSC Errata

2018-12-14 Thread YunQiang Su
From: Paul Hua In some older Loongson3 processors there is a LL/SC errata that can cause the CPU to deadlock occasionally. The details are very complicated. We find a way to work around this errata by a) adding a sync before ll/lld instruction, b) adding a sync before branch target that betwee

Re: [PATCH] [MIPS] GCC: Fix Loongson3 LLSC Errata

2018-12-02 Thread YunQiang Su
Paul Hua 于2018年11月30日周五 下午8:46写道: > > In some older Loongson3 processors there is a LL/SC errata that can > cause the CPU to deadlock occasionally. The details are very > complicated. We find a way to work around this errata by a) adding a > sync before ll/lld instruction, b) adding a sync > befo

[PATCH] [MIPS] GCC: Fix Loongson3 LLSC Errata

2018-11-30 Thread Paul Hua
2018 19:57:38 +0800 Subject: [PATCH] [MIPS][GCC] Fix Loongson3 LLSC Errata. gcc/ * config.gcc (supported_defaults): Add fix-loongson3-llsc (with_fix_loongson3_llsc): Add validation. (all_defaults): Add fix-loongson3-llsc. * config/mips/mips.c (mips_process_sync_loop): Add sync before branch ta