mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Use load_image_targphys and avoid phys_ram_base.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7056 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f78630ab2f
commit
dcac9679fe
16 changed files with 113 additions and 71 deletions
|
@ -338,7 +338,8 @@ void axisdev88_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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue