projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396a14a
)
shix: Catch CPU initialization errors
author
Andreas Färber
<afaerber@suse.de>
Tue, 9 Apr 2013 14:51:23 +0000
(16:51 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Sat, 13 Apr 2013 11:51:44 +0000
(13:51 +0200)
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>
hw/sh4/shix.c
patch
|
blob
|
history
diff --git
a/hw/sh4/shix.c
b/hw/sh4/shix.c
index c23d4afb10f17e825ef6c5935e666c221d55ab28..f5cfef9e3bb6eabfd3e8993b17203fe77d126a87 100644
(file)
--- a/
hw/sh4/shix.c
+++ b/
hw/sh4/shix.c
@@
-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");