sun4u: Pass address_space_mem to sun4uv_init
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
27a9d2eacb
commit
38bc50f7e2
11
hw/sun4u.c
11
hw/sun4u.c
@ -736,7 +736,8 @@ static CPUState *cpu_devinit(const char *cpu_model, const struct hwdef *hwdef)
|
||||
return env;
|
||||
}
|
||||
|
||||
static void sun4uv_init(ram_addr_t RAM_size,
|
||||
static void sun4uv_init(MemoryRegion *address_space_mem,
|
||||
ram_addr_t RAM_size,
|
||||
const char *boot_devices,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model,
|
||||
@ -771,7 +772,7 @@ static void sun4uv_init(ram_addr_t RAM_size,
|
||||
|
||||
i = 0;
|
||||
if (hwdef->console_serial_base) {
|
||||
serial_mm_init(get_system_memory(), hwdef->console_serial_base, 0,
|
||||
serial_mm_init(address_space_mem, hwdef->console_serial_base, 0,
|
||||
NULL, 115200, serial_hds[i], DEVICE_BIG_ENDIAN);
|
||||
i++;
|
||||
}
|
||||
@ -876,7 +877,7 @@ static void sun4u_init(ram_addr_t RAM_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
sun4uv_init(RAM_size, boot_devices, kernel_filename,
|
||||
sun4uv_init(get_system_memory(), RAM_size, boot_devices, kernel_filename,
|
||||
kernel_cmdline, initrd_filename, cpu_model, &hwdefs[0]);
|
||||
}
|
||||
|
||||
@ -886,7 +887,7 @@ static void sun4v_init(ram_addr_t RAM_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
sun4uv_init(RAM_size, boot_devices, kernel_filename,
|
||||
sun4uv_init(get_system_memory(), RAM_size, boot_devices, kernel_filename,
|
||||
kernel_cmdline, initrd_filename, cpu_model, &hwdefs[1]);
|
||||
}
|
||||
|
||||
@ -896,7 +897,7 @@ static void niagara_init(ram_addr_t RAM_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
sun4uv_init(RAM_size, boot_devices, kernel_filename,
|
||||
sun4uv_init(get_system_memory(), RAM_size, boot_devices, kernel_filename,
|
||||
kernel_cmdline, initrd_filename, cpu_model, &hwdefs[2]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user