Revision ad82eef3cebf8cd4f67e20b902e6d02e679e2ef1 authored by Tiezhu Yang on 18 June 2022, 04:50:31 UTC, committed by Huacai Chen on 25 June 2022, 10:05:59 UTC
According to the configuration information accessible by the CPUCFG
instruction in LoongArch Reference Manual [1], FP_ver is stored in
bit [5: 3] of CPUCFG2, the current code to get fpu version is wrong,
use CPUCFG2_FPVERS to fix it.

[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html

Fixes: 628c3bb40e9a ("LoongArch: Add boot and setup routines")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 26808ce
History
File Mode Size
Makefile -rw-r--r-- 376 bytes
bitset.c -rw-r--r-- 22.2 KB
bitset.h -rw-r--r-- 1.5 KB
cabletest.c -rw-r--r-- 9.6 KB
channels.c -rw-r--r-- 6.9 KB
coalesce.c -rw-r--r-- 13.7 KB
common.c -rw-r--r-- 22.4 KB
common.h -rw-r--r-- 1.9 KB
debug.c -rw-r--r-- 3.3 KB
eee.c -rw-r--r-- 5.1 KB
eeprom.c -rw-r--r-- 6.8 KB
features.c -rw-r--r-- 8.8 KB
fec.c -rw-r--r-- 8.2 KB
ioctl.c -rw-r--r-- 85.3 KB
linkinfo.c -rw-r--r-- 4.3 KB
linkmodes.c -rw-r--r-- 10.6 KB
linkstate.c -rw-r--r-- 4.4 KB
module.c -rw-r--r-- 4.5 KB
netlink.c -rw-r--r-- 29.3 KB
netlink.h -rw-r--r-- 17.0 KB
pause.c -rw-r--r-- 4.9 KB
phc_vclocks.c -rw-r--r-- 2.4 KB
privflags.c -rw-r--r-- 5.4 KB
rings.c -rw-r--r-- 7.5 KB
stats.c -rw-r--r-- 13.9 KB
strset.c -rw-r--r-- 11.8 KB
tsinfo.c -rw-r--r-- 3.7 KB
tunnels.c -rw-r--r-- 7.0 KB
wol.c -rw-r--r-- 4.3 KB

back to top