core/cpu: put __builtin_unreachable() into one place