[PATCH 6.12 076/143] LoongArch: Fix MAX_REG_OFFSET calculation