在 2020/8/14 下午5:44, Huacai Chen 写道:
Hi, Thomas,
On Tue, Aug 11, 2020 at 8:08 PM Thomas Bogendoerfer
<tsbogend@xxxxxxxxxxxxxxxx> wrote:
On Tue, Aug 11, 2020 at 02:45:05PM +0800, Huacai Chen wrote:
Hi, Thomas and Jiaxun,
On Tue, Aug 11, 2020 at 10:18 AM Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote:
在 2020/8/10 22:12, Thomas Bogendoerfer 写道:
On Sun, Aug 09, 2020 at 10:53:13PM +0800, Jiaxun Yang wrote:
Thus we still need to enable CU2 with exception for user space, and we can
always enable CU2 in
kernel since kernel won't be compiled with hard-float. :-)
I see, how about the patch below
That looks fine for me.
Is it good with you, Huacai?
There are two problems:
1, zboot (arch/mips/boot/compressed/head.S) should be considered,
because the initial value of Status may or may not contain CU2.
this comes with it's own memcpy/memset and stuff, I don't see a reason why
COP2 needs to be enabled there,
gslq/gssq can also be generated by toolchains.
To correct myself, GSLQ/GSSQ won't be generated by current upstream GCC
with msoft-float but it is possible to happen with Loongson's GCC 4.9/7
fork.
And I think we should care this case as well....
Thanks.
- Jiaxun