LoongArch-Documentation
LoongArch-Documentation copied to clipboard
Add LoongArch-Old-and-New-World-Differences
插眼 当前状态可额外提供的信息、可完善的措辞还是很多的
插眼 当前状态可额外提供的信息、可完善的措辞还是很多的
Ping
插眼 当前状态可额外提供的信息、可完善的措辞还是很多的
Ping
咦,我在等你们把文档写完。。 :facepalm:
我最近可能没空写大段文字,要不你们再加多点细节(考虑开发者写程序时候要关心的技术细节,尽量不要一笔带过),我帮忙看下?
新旧世界的 /proc/cpuinfo 字段名称变了,影响应用解析和处理。
比如:"model name"-> "Model Name"
系统调用也有差异,79、80在新世界中没有了
新旧世界的
/proc/cpuinfo字段名称变了,影响应用解析和处理。 比如:"model name"-> "Model Name"
好的,下一版加上。
系统调用也有差异,79、80在新世界中没有了
好的,下一版加上。
新旧世界的
/proc/cpuinfo字段名称变了,影响应用解析和处理。 比如:"model name"-> "Model Name"
除此之外还多了一个空行(第二行)
1 system type : generic-loongson-machine
2
3 processor : 0
4 package : 0
5 core : 0
为此openmp在解析的时候需要特殊处理,我今天就碰到这个问题了
新旧世界的
/proc/cpuinfo字段名称变了,影响应用解析和处理。 比如:"model name"-> "Model Name"除此之外还多了一个空行(第二行)
1 system type : generic-loongson-machine 2 3 processor : 0 4 package : 0 5 core : 0为此openmp在解析的时候需要特殊处理,我今天就碰到这个问题了
涉及到代码级别的差异,篇幅过大,我暂时不准备在这篇文章里写太详细,根据你目前用到新旧世界差异的开发背景下的描述,我会进行一个指向性的概括,详情请关注下一版。
由于新旧世界环境切换起来有些繁琐,我这里贴出cpuinfo的新旧世界差异,供开发者以后查阅:(请自行忽略cpu频率等的硬件差异)
--- oldcpuinfo 2022-12-20 16:30:47.364454292 +0800 +++ newcpuinfo 2022-12-20 16:35:20.235440139 +0800 @@ -1,61 +1,62 @@ system type : generic-loongson-machine + processor : 0 package : 0 core : 0 -cpu family : Loongson-64bit -model name : Loongson-3A5000LL -CPU Revision : 0x10 +CPU Family : Loongson-64bit +Model Name : Loongson-3A5000-HV +CPU Revision : 0x11 FPU Revision : 0x00 -CPU MHz : 2300.00 -BogoMIPS : 4600.00 -TLB entries : 2112 -Address sizes : 48 bits physical, 48 bits virtual -isa : loongarch32 loongarch64 -features : cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips -hardware watchpoint : yes, iwatch count: 8, dwatch count: 8 +CPU MHz : 2500.00 +BogoMIPS : 5000.00 +TLB Entries : 2112 +Address Sizes : 48 bits physical, 48 bits virtual +ISA : loongarch32 loongarch64 +Features : cpucfg lam ual fpu complex crypto lvz +Hardware Watchpoint : yes, iwatch count: 8, dwatch count: 8
processor : 1 package : 0 core : 1 -cpu family : Loongson-64bit -model name : Loongson-3A5000LL -CPU Revision : 0x10 +CPU Family : Loongson-64bit +Model Name : Loongson-3A5000-HV +CPU Revision : 0x11 FPU Revision : 0x00 -CPU MHz : 2300.00 -BogoMIPS : 4600.00 -TLB entries : 2112 -Address sizes : 48 bits physical, 48 bits virtual -isa : loongarch32 loongarch64 -features : cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips -hardware watchpoint : yes, iwatch count: 8, dwatch count: 8 +CPU MHz : 2500.00 +BogoMIPS : 5000.00 +TLB Entries : 2112 +Address Sizes : 48 bits physical, 48 bits virtual +ISA : loongarch32 loongarch64 +Features : cpucfg lam ual fpu complex crypto lvz +Hardware Watchpoint : yes, iwatch count: 8, dwatch count: 8
processor : 2 package : 0 core : 2 -cpu family : Loongson-64bit -model name : Loongson-3A5000LL -CPU Revision : 0x10 +CPU Family : Loongson-64bit +Model Name : Loongson-3A5000-HV +CPU Revision : 0x11 FPU Revision : 0x00 -CPU MHz : 2300.00 -BogoMIPS : 4600.00 -TLB entries : 2112 -Address sizes : 48 bits physical, 48 bits virtual -isa : loongarch32 loongarch64 -features : cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips -hardware watchpoint : yes, iwatch count: 8, dwatch count: 8 +CPU MHz : 2500.00 +BogoMIPS : 5000.00 +TLB Entries : 2112 +Address Sizes : 48 bits physical, 48 bits virtual +ISA : loongarch32 loongarch64 +Features : cpucfg lam ual fpu complex crypto lvz +Hardware Watchpoint : yes, iwatch count: 8, dwatch count: 8
processor : 3 package : 0 core : 3 -cpu family : Loongson-64bit -model name : Loongson-3A5000LL -CPU Revision : 0x10 +CPU Family : Loongson-64bit +Model Name : Loongson-3A5000-HV +CPU Revision : 0x11 FPU Revision : 0x00 -CPU MHz : 2300.00 -BogoMIPS : 4600.00 -TLB entries : 2112 -Address sizes : 48 bits physical, 48 bits virtual -isa : loongarch32 loongarch64 -features : cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips -hardware watchpoint : yes, iwatch count: 8, dwatch count: 8 +CPU MHz : 2500.00 +BogoMIPS : 5000.00 +TLB Entries : 2112 +Address Sizes : 48 bits physical, 48 bits virtual +ISA : loongarch32 loongarch64 +Features : cpucfg lam ual fpu complex crypto lvz +Hardware Watchpoint : yes, iwatch count: 8, dwatch count: 8