|
@@ -515,7 +515,7 @@ static const void *create_fdt(BostonState *s,
|
|
{
|
|
{
|
|
void *fdt;
|
|
void *fdt;
|
|
int cpu;
|
|
int cpu;
|
|
- MachineState *mc = s->mach;
|
|
|
|
|
|
+ MachineState *ms = s->mach;
|
|
uint32_t platreg_ph, gic_ph, clk_ph;
|
|
uint32_t platreg_ph, gic_ph, clk_ph;
|
|
char *name, *gic_name, *platreg_name, *stdout_name;
|
|
char *name, *gic_name, *platreg_name, *stdout_name;
|
|
static const char * const syscon_compat[2] = {
|
|
static const char * const syscon_compat[2] = {
|
|
@@ -542,7 +542,7 @@ static const void *create_fdt(BostonState *s,
|
|
qemu_fdt_setprop_cell(fdt, "/cpus", "#size-cells", 0x0);
|
|
qemu_fdt_setprop_cell(fdt, "/cpus", "#size-cells", 0x0);
|
|
qemu_fdt_setprop_cell(fdt, "/cpus", "#address-cells", 0x1);
|
|
qemu_fdt_setprop_cell(fdt, "/cpus", "#address-cells", 0x1);
|
|
|
|
|
|
- for (cpu = 0; cpu < mc->smp.cpus; cpu++) {
|
|
|
|
|
|
+ for (cpu = 0; cpu < ms->smp.cpus; cpu++) {
|
|
name = g_strdup_printf("/cpus/cpu@%d", cpu);
|
|
name = g_strdup_printf("/cpus/cpu@%d", cpu);
|
|
qemu_fdt_add_subnode(fdt, name);
|
|
qemu_fdt_add_subnode(fdt, name);
|
|
qemu_fdt_setprop_string(fdt, name, "compatible", "img,mips");
|
|
qemu_fdt_setprop_string(fdt, name, "compatible", "img,mips");
|