If APIC IDs are not sequential (e.g., 0, 1, 2, 3), then hard-coding the CPU indexes will break sending IRQs to correct CPUs. Fixes: b2a1ee7ea179 ("x86: ioapic: Test physical and logical destination mode")