aboutsummaryrefslogtreecommitdiff
path: root/hw/versatilepb.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/versatilepb.c')
-rw-r--r--hw/versatilepb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index da6e4ec330..ecc0037af8 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -157,6 +157,8 @@ static qemu_irq *vpb_sic_init(uint32_t base, qemu_irq *parent, int irq)
peripherans and expansion busses. For now we emulate a subset of the
PB peripherals and just change the board ID. */
+static struct arm_boot_info versatile_binfo;
+
static void versatile_init(int ram_size, int vga_ram_size,
const char *boot_device, DisplayState *ds,
const char *kernel_filename, const char *kernel_cmdline,
@@ -283,8 +285,12 @@ static void versatile_init(int ram_size, int vga_ram_size,
/* 0x101f3000 UART2. */
/* 0x101f4000 SSPI. */
- arm_load_kernel(env, ram_size, kernel_filename, kernel_cmdline,
- initrd_filename, board_id, 0x0);
+ versatile_binfo.ram_size = ram_size;
+ versatile_binfo.kernel_filename = kernel_filename;
+ versatile_binfo.kernel_cmdline = kernel_cmdline;
+ versatile_binfo.initrd_filename = initrd_filename;
+ versatile_binfo.board_id = board_id;
+ arm_load_kernel(env, &versatile_binfo);
}
static void vpb_init(int ram_size, int vga_ram_size,