Add stub memory methods to cpudevice.