Revision d7585251 hw/ppce500_mpc8544ds.c

b/hw/ppce500_mpc8544ds.c
182 182
    ram_size &= ~(RAM_SIZES_ALIGN - 1);
183 183

  
184 184
    /* Register Memory */
185
    cpu_register_physical_memory(0, ram_size, 0);
185
    cpu_register_physical_memory(0, ram_size, qemu_ram_alloc(ram_size));
186 186

  
187 187
    /* MPIC */
188 188
    irqs = qemu_mallocz(sizeof(qemu_irq) * OPENPIC_OUTPUT_NB);
......
247 247

  
248 248
    /* Load initrd. */
249 249
    if (initrd_filename) {
250
        initrd_size = load_image(initrd_filename, phys_ram_base + initrd_base);
250
        initrd_size = load_image_targphys(initrd_filename, initrd_base,
251
                                          ram_size - initrd_base);
251 252

  
252 253
        if (initrd_size < 0) {
253 254
            fprintf(stderr, "qemu: could not load initial ram disk '%s'\n",

Also available in: Unified diff