make: fix CPU reset in some conditions