[PATCH 6.6 065/117] LoongArch: Fix MAX_REG_OFFSET calculation