Signed-off-by: Hui Li <lihui@loongson.cn> (cherry picked from commit 4db4362c6bfeb4ef0bb62e43c2b7701458d0ce4e)