Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu: Fix qemu_get_cpu() to return NULL if CPU not found
Commit 55e5c28 breaks CPU not found return value, and returns CPU corresponding to the last non NULL env. Fix it by returning CPU only if env is not NULL, otherwise CPU is not found and function should return NULL. Signed-off-by: Igor Mammedov <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
- Loading branch information