[PATCH v3 5/9] LoongArch: KVM: INTC: Avoid overflow with array index