apic: avoid passing CPUState from CPU code