Commit 06f3ed26 authored by Andreas Färber's avatar Andreas Färber Committed by Aurelien Jarno
Browse files

shix: Catch CPU initialization errors



Print an error message as done for the r2d machine and exit.

Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 396a14a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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");