diff options
Diffstat (limited to 'hw/dummy_m68k.c')
-rw-r--r-- | hw/dummy_m68k.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/dummy_m68k.c b/hw/dummy_m68k.c index 9c0a9dcf71..d9f14441a0 100644 --- a/hw/dummy_m68k.c +++ b/hw/dummy_m68k.c @@ -47,8 +47,9 @@ static void dummy_m68k_init(ram_addr_t ram_size, int vga_ram_size, kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL); } if (kernel_size < 0) { - kernel_size = load_image(kernel_filename, - phys_ram_base + KERNEL_LOAD_ADDR); + kernel_size = load_image_targphys(kernel_filename, + KERNEL_LOAD_ADDR, + ram_size - KERNEL_LOAD_ADDR); entry = KERNEL_LOAD_ADDR; } if (kernel_size < 0) { |