apic: move target-dependent definitions to cpu.h