Revision 5fafdf24 hw/sun4u.c

b/hw/sun4u.c
1 1
/*
2 2
 * QEMU Sun4u System Emulator
3
 * 
3
 *
4 4
 * Copyright (c) 2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
378 378
    cpu_register_physical_memory(0, ram_size, 0);
379 379

  
380 380
    prom_offset = ram_size + vga_ram_size;
381
    cpu_register_physical_memory(PROM_ADDR, 
382
                                 (PROM_SIZE_MAX + TARGET_PAGE_SIZE) & TARGET_PAGE_MASK, 
381
    cpu_register_physical_memory(PROM_ADDR,
382
                                 (PROM_SIZE_MAX + TARGET_PAGE_SIZE) & TARGET_PAGE_MASK,
383 383
                                 prom_offset | IO_MEM_ROM);
384 384

  
385 385
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, PROM_FILENAME);
386 386
    ret = load_elf(buf, PROM_ADDR - PROM_VADDR, NULL, NULL, NULL);
387 387
    if (ret < 0) {
388
	fprintf(stderr, "qemu: could not load prom '%s'\n", 
388
	fprintf(stderr, "qemu: could not load prom '%s'\n",
389 389
		buf);
390 390
	exit(1);
391 391
    }
......
400 400
	if (kernel_size < 0)
401 401
	    kernel_size = load_image(kernel_filename, phys_ram_base + KERNEL_LOAD_ADDR);
402 402
        if (kernel_size < 0) {
403
            fprintf(stderr, "qemu: could not load kernel '%s'\n", 
403
            fprintf(stderr, "qemu: could not load kernel '%s'\n",
404 404
                    kernel_filename);
405 405
	    exit(1);
406 406
        }
......
409 409
        if (initrd_filename) {
410 410
            initrd_size = load_image(initrd_filename, phys_ram_base + INITRD_LOAD_ADDR);
411 411
            if (initrd_size < 0) {
412
                fprintf(stderr, "qemu: could not load initial ram disk '%s'\n", 
412
                fprintf(stderr, "qemu: could not load initial ram disk '%s'\n",
413 413
                        initrd_filename);
414 414
                exit(1);
415 415
            }

Also available in: Unified diff