cpu: fix crash for other devices