mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
More phys_ram_base elimination.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7064 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
b584726df9
commit
d758525180
4 changed files with 54 additions and 57 deletions
|
@ -182,7 +182,7 @@ static void mpc8544ds_init(ram_addr_t ram_size, int vga_ram_size,
|
|||
ram_size &= ~(RAM_SIZES_ALIGN - 1);
|
||||
|
||||
/* Register Memory */
|
||||
cpu_register_physical_memory(0, ram_size, 0);
|
||||
cpu_register_physical_memory(0, ram_size, qemu_ram_alloc(ram_size));
|
||||
|
||||
/* MPIC */
|
||||
irqs = qemu_mallocz(sizeof(qemu_irq) * OPENPIC_OUTPUT_NB);
|
||||
|
@ -247,7 +247,8 @@ static void mpc8544ds_init(ram_addr_t ram_size, int vga_ram_size,
|
|||
|
||||
/* Load initrd. */
|
||||
if (initrd_filename) {
|
||||
initrd_size = load_image(initrd_filename, phys_ram_base + initrd_base);
|
||||
initrd_size = load_image_targphys(initrd_filename, initrd_base,
|
||||
ram_size - initrd_base);
|
||||
|
||||
if (initrd_size < 0) {
|
||||
fprintf(stderr, "qemu: could not load initial ram disk '%s'\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue