WÁNG Xuěruì

Results 280 comments of WÁNG Xuěruì

> > Aside from the Loongson teams, there is [an active community around LoongArch](https://bbs.loongarch.org/) (also [Telegram user group](https://t.me/loongson_users)) with multiple porters and power users willing to help. I'm heavily involved...

There's now a mgo-like library wrapping the official mongo-driver called [qmgo](https://github.com/qiniu/qmgo). I have successfully migrated our production systems from mgo to it with minimal fuss. Basically you pass `context` everywhere...

> 顺便说一下,在这个补丁的基础之上,如果再修改一下 `REGISTER_NAMES` 内容,将寄存器名字中的 `$` 字符去掉,则 gcc 生成的汇编指令,就和其他架构一样不带 `$` 了,但是需要修改 binutils 才能通过汇编阶段。 这个是显然。不过 meanwhile 我们得推进一下 documentation 的审查进度了。。。有好几个东西卡了很久了,我的、龙芯的都有。 《龙芯架构指令格式约定》搞定之后,还需要一篇《龙芯架构汇编语法约定》,把现在代码实现的一些习俗、实现细节以规范固定下来,也得到那个时候才能讨论、确立不带 `$` 寄存器操作数的合法性。

> > 顺便说一下,在这个补丁的基础之上,如果再修改一下 `REGISTER_NAMES` 内容,将寄存器名字中的 `$` 字符去掉,则 gcc 生成的汇编指令,就和其他架构一样不带 `$` 了,但是需要修改 binutils 才能通过汇编阶段。 > > 目前汇编器支持寄存器名加'$',之前cfi指令不支持加'$',我交了一个补丁支持[https://github.com/loongson/binutils-gdb/pull/162](https://github.com/loongson/binutils-gdb/pull/162). 你这个不是“支持”,是从“不支持”改成了“仅支持” 目前楼主想做的事情是提供两种写法,即同时支持加或者不加 `$` 以方便那些来自 RISC-V 背景(习惯不加 `$`)的人。否则用户能找很多理由来喷的。

> > > > 顺便说一下,在这个补丁的基础之上,如果再修改一下 `REGISTER_NAMES` 内容,将寄存器名字中的 `$` 字符去掉,则 gcc 生成的汇编指令,就和其他架构一样不带 `$` 了,但是需要修改 binutils 才能通过汇编阶段。 > > > > > > > > > 目前汇编器支持寄存器名加'$',之前cfi指令不支持加'$',我交了一个补丁支持[loongson/binutils-gdb#162](https://github.com/loongson/binutils-gdb/pull/162). > > > > >...

r21 早就不叫 x 了,不清楚之前为何没发现,别的我觉得兼容性能保持还是尽量保持吧,内核跟编译器、binutils已经有不兼容组合了,再来一次不兼容要人命

Hi, what should we (loong64 porters) do at this point regarding this backport issue? Do we have to submit the backport CL now (or relatively quickly), or are you just...

It seems a bit involved to add such support. We have to: * bump https://github.com/tonistiigi/xx toolchain components to very recent versions (binutils 2.40+, Clang 16+, go 1.19+ but ideally the...

> After #151 #174 , Why is there still no linux/loong64 image? missing one platform in https://github.com/tonistiigi/binfmt/blob/master/docker-bake.hcl ? You could use a little patience or make it happen yourself ;-)...

It seems `tonistiigi/xx` needs to get LoongArch awareness: [the `xx-info` helper](https://github.com/tonistiigi/xx/blob/aea919680785fd97360ceed93f52eaedf15e67bd/src/xx-info) currently does not handle the `loongarch64` `loong64` things, which it definitely needs to. ~~And the fact that the Alpine...