Revision 97fe84f5

b/hw/loader.c
51 51

  
52 52
#include <zlib.h>
53 53

  
54
static int roms_loaded;
55

  
54 56
/* return the size or -1 if error */
55 57
int get_image_size(const char *filename)
56 58
{
......
540 542
{
541 543
    Rom *item;
542 544

  
545
    if (roms_loaded) {
546
        hw_error ("ROM images must be loaded at startup\n");
547
    }
548

  
543 549
    /* list is ordered by load address */
544 550
    QTAILQ_FOREACH(item, &roms, next) {
545 551
        if (rom->min >= item->min)
......
682 688
            rom->isrom = 1;
683 689
    }
684 690
    qemu_register_reset(rom_reset, NULL);
691
    roms_loaded = 1;
685 692
    return 0;
686 693
}
687 694

  

Also available in: Unified diff