Revision 5fafdf24 hw/ppc405_boards.c

b/hw/ppc405_boards.c
1 1
/*
2 2
 * QEMU PowerPC 405 evaluation boards emulation
3
 * 
3
 *
4 4
 * Copyright (c) 2007 Jocelyn Mayer
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
......
172 172
}
173 173

  
174 174
static void ref405ep_init (int ram_size, int vga_ram_size, int boot_device,
175
                           DisplayState *ds, const char **fd_filename, 
175
                           DisplayState *ds, const char **fd_filename,
176 176
                           int snapshot,
177
                           const char *kernel_filename, 
177
                           const char *kernel_filename,
178 178
                           const char *kernel_cmdline,
179 179
                           const char *initrd_filename,
180 180
                           const char *cpu_model)
......
243 243
            exit(1);
244 244
        }
245 245
        bios_size = (bios_size + 0xfff) & ~0xfff;
246
        cpu_register_physical_memory((uint32_t)(-bios_size), 
246
        cpu_register_physical_memory((uint32_t)(-bios_size),
247 247
                                     bios_size, bios_offset | IO_MEM_ROM);
248 248
    }
249 249
    bios_offset += bios_size;
......
294 294
        /* now we can load the kernel */
295 295
        kernel_size = load_image(kernel_filename, phys_ram_base + kernel_base);
296 296
        if (kernel_size < 0) {
297
            fprintf(stderr, "qemu: could not load kernel '%s'\n", 
297
            fprintf(stderr, "qemu: could not load kernel '%s'\n",
298 298
                    kernel_filename);
299 299
            exit(1);
300 300
        }
......
310 310
            initrd_size = load_image(initrd_filename,
311 311
                                     phys_ram_base + initrd_base);
312 312
            if (initrd_size < 0) {
313
                fprintf(stderr, "qemu: could not load initial ram disk '%s'\n", 
313
                fprintf(stderr, "qemu: could not load initial ram disk '%s'\n",
314 314
                        initrd_filename);
315 315
                exit(1);
316 316
            }
......
495 495
}
496 496

  
497 497
static void taihu_405ep_init(int ram_size, int vga_ram_size, int boot_device,
498
                             DisplayState *ds, const char **fd_filename, 
498
                             DisplayState *ds, const char **fd_filename,
499 499
                             int snapshot,
500
                             const char *kernel_filename, 
500
                             const char *kernel_filename,
501 501
                             const char *kernel_cmdline,
502 502
                             const char *initrd_filename,
503 503
                             const char *cpu_model)
......
511 511
    target_ulong kernel_base, kernel_size, initrd_base, initrd_size;
512 512
    int linux_boot;
513 513
    int fl_idx, fl_sectors;
514
    
514
   
515 515
    /* RAM is soldered to the board so the size cannot be changed */
516 516
    ram_bases[0] = 0x00000000;
517 517
    ram_sizes[0] = 0x04000000;
......
556 556
            exit(1);
557 557
        }
558 558
        bios_size = (bios_size + 0xfff) & ~0xfff;
559
        cpu_register_physical_memory((uint32_t)(-bios_size), 
559
        cpu_register_physical_memory((uint32_t)(-bios_size),
560 560
                                     bios_size, bios_offset | IO_MEM_ROM);
561 561
    }
562 562
    bios_offset += bios_size;
......
592 592
        /* now we can load the kernel */
593 593
        kernel_size = load_image(kernel_filename, phys_ram_base + kernel_base);
594 594
        if (kernel_size < 0) {
595
            fprintf(stderr, "qemu: could not load kernel '%s'\n", 
595
            fprintf(stderr, "qemu: could not load kernel '%s'\n",
596 596
                    kernel_filename);
597 597
            exit(1);
598 598
        }
......
603 603
                                     phys_ram_base + initrd_base);
604 604
            if (initrd_size < 0) {
605 605
                fprintf(stderr,
606
                        "qemu: could not load initial ram disk '%s'\n", 
606
                        "qemu: could not load initial ram disk '%s'\n",
607 607
                        initrd_filename);
608 608
                exit(1);
609 609
            }

Also available in: Unified diff