From dcac9679febc944f79e82fb9970ad83154de22ac Mon Sep 17 00:00:00 2001 From: pbrook Date: Thu, 9 Apr 2009 20:05:49 +0000 Subject: Use load_image_targphys and avoid phys_ram_base. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7056 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/etraxfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/etraxfs.c') diff --git a/hw/etraxfs.c b/hw/etraxfs.c index eda992971f..445f5f9012 100644 --- a/hw/etraxfs.c +++ b/hw/etraxfs.c @@ -129,7 +129,8 @@ void bareetraxfs_init (ram_addr_t ram_size, int vga_ram_size, bootstrap_pc = entry; if (kernel_size < 0) { /* Takes a kimage from the axis devboard SDK. */ - kernel_size = load_image(kernel_filename, phys_ram_base + 0x4000); + kernel_size = load_image_targphys(kernel_filename, 0x40004000, + ram_size); bootstrap_pc = 0x40004000; env->regs[9] = 0x40004000 + kernel_size; } -- cgit v1.2.3