Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn> (cherry picked from commit 375dd15aef0ccae709305465bf1bc82de7acf65e)