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