Revision 0986ac3b hw/sun4m.c

b/hw/sun4m.c
28 28
#define INITRD_LOAD_ADDR     0x00800000
29 29
#define PROM_SIZE_MAX        (256 * 1024)
30 30
#define PROM_ADDR	     0xffd00000
31
#define PROM_FILENAMEB	     "proll.bin"
32
#define PROM_FILENAMEE	     "proll.elf"
31
#define PROM_FILENAME	     "openbios-sparc32"
33 32
#define PHYS_JJ_EEPROM	0x71200000	/* m48t08 */
34 33
#define PHYS_JJ_IDPROM_OFF	0x1FD8
35 34
#define PHYS_JJ_EEPROM_SIZE	0x2000
......
273 272
                                 (PROM_SIZE_MAX + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK, 
274 273
                                 prom_offset | IO_MEM_ROM);
275 274

  
276
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, PROM_FILENAMEE);
275
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, PROM_FILENAME);
277 276
    ret = load_elf(buf, 0, NULL);
278 277
    if (ret < 0) {
279
	snprintf(buf, sizeof(buf), "%s/%s", bios_dir, PROM_FILENAMEB);
280
	ret = load_image(buf, phys_ram_base + prom_offset);
281
    }
282
    if (ret < 0) {
283 278
	fprintf(stderr, "qemu: could not load prom '%s'\n", 
284 279
		buf);
285 280
	exit(1);

Also available in: Unified diff