提交 06f3ed26 编写于 作者: A Andreas Färber 提交者: Aurelien Jarno

shix: Catch CPU initialization errors

Print an error message as done for the r2d machine and exit.
Signed-off-by: NAndreas Färber <afaerber@suse.de>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 396a14a3
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册