[PATCH 6.1 41/97] LoongArch: Fix MAX_REG_OFFSET calculation