Revision 28c5af54 hw/ppc_chrp.c

b/hw/ppc_chrp.c
74 74
    qemu_irq *dummy_irq;
75 75
    int pic_mem_index, dbdma_mem_index, cuda_mem_index;
76 76
    int ide_mem_index[2];
77
    int ppc_boot_device = boot_device[0];
77
    int ppc_boot_device;
78 78

  
79 79
    linux_boot = (kernel_filename != NULL);
80 80

  
......
175 175
        kernel_size = 0;
176 176
        initrd_base = 0;
177 177
        initrd_size = 0;
178
        ppc_boot_device = '\0';
179
        /* We consider that NewWorld PowerMac never have any floppy drive
180
         * For now, OHW cannot boot from the network.
181
         */
182
        for (i = 0; i < boot_device[i] != '\0'; i++) {
183
            ppc_boot_device = boot_device[i];
184
            if (ppc_boot_device >= 'c' && ppc_boot_device <= 'f')
185
                break;
186
        }
187
        if (ppc_boot_device == '\0') {
188
            fprintf(stderr, "No valid boot device for Mac99 machine\n");
189
            exit(1);
190
        }
178 191
    }
179 192

  
180 193
    isa_mem_base = 0x80000000;

Also available in: Unified diff