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
Kconfig -rw-r--r-- 716 bytes
Makefile -rw-r--r-- 204 bytes
cfg.c -rw-r--r-- 11.4 KB
cfg.h -rw-r--r-- 202 bytes
driver-ops.h -rw-r--r-- 5.8 KB
ieee802154_i.h -rw-r--r-- 5.1 KB
iface.c -rw-r--r-- 19.0 KB
llsec.c -rw-r--r-- 24.9 KB
llsec.h -rw-r--r-- 2.8 KB
mac_cmd.c -rw-r--r-- 3.8 KB
main.c -rw-r--r-- 6.9 KB
mib.c -rw-r--r-- 5.1 KB
rx.c -rw-r--r-- 7.1 KB
trace.c -rw-r--r-- 189 bytes
trace.h -rw-r--r-- 6.4 KB
tx.c -rw-r--r-- 3.0 KB
util.c -rw-r--r-- 2.8 KB

back to top