mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
shix: Catch CPU initialization errors
Print an error message as done for the r2d machine and exit. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
396a14a3be
commit
06f3ed2698
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ static void shix_init(QEMUMachineInitArgs *args)
|
|||
|
||||
printf("Initializing CPU\n");
|
||||
env = cpu_init(cpu_model);
|
||||
if (env == NULL) {
|
||||
fprintf(stderr, "Unable to find CPU definition\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Allocate memory space */
|
||||
printf("Allocating ROM\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue