diff options
Diffstat (limited to 'hw/an5206.c')
-rw-r--r-- | hw/an5206.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/an5206.c b/hw/an5206.c index 83078aa81b..cd40d2a504 100644 --- a/hw/an5206.c +++ b/hw/an5206.c @@ -72,8 +72,8 @@ static void an5206_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) { |