Revision 9543b0cd hw/arm_boot.c

b/hw/arm_boot.c
59 59
  0           /* bootreg: Boot register address is held here */
60 60
};
61 61

  
62
static void default_write_secondary(CPUARMState *env,
62
static void default_write_secondary(ARMCPU *cpu,
63 63
                                    const struct arm_boot_info *info)
64 64
{
65 65
    int n;
......
303 303

  
304 304
void arm_load_kernel(CPUARMState *env, struct arm_boot_info *info)
305 305
{
306
    ARMCPU *cpu;
306
    ARMCPU *cpu = arm_env_get_cpu(env);
307 307
    int kernel_size;
308 308
    int initrd_size;
309 309
    int n;
......
402 402
        rom_add_blob_fixed("bootloader", bootloader, sizeof(bootloader),
403 403
                           info->loader_start);
404 404
        if (info->nb_cpus > 1) {
405
            info->write_secondary_boot(env, info);
405
            info->write_secondary_boot(cpu, info);
406 406
        }
407 407
    }
408 408
    info->is_linux = is_linux;

Also available in: Unified diff