diff options
-rw-r--r-- | hw/sh4/shix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/sh4/shix.c b/hw/sh4/shix.c index c23d4afb10..f5cfef9e3b 100644 --- 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"); |