|
@@ -78,13 +78,15 @@ static void machine_hppa_init(MachineState *machine)
|
|
|
|
|
|
/* Create CPUs. */
|
|
|
for (i = 0; i < smp_cpus; i++) {
|
|
|
+ char *name = g_strdup_printf("cpu%ld-io-eir", i);
|
|
|
cpu[i] = HPPA_CPU(cpu_create(machine->cpu_type));
|
|
|
|
|
|
cpu_region = g_new(MemoryRegion, 1);
|
|
|
memory_region_init_io(cpu_region, OBJECT(cpu[i]), &hppa_io_eir_ops,
|
|
|
- cpu[i], g_strdup_printf("cpu%ld-io-eir", i), 4);
|
|
|
+ cpu[i], name, 4);
|
|
|
memory_region_add_subregion(addr_space, CPU_HPA + i * 0x1000,
|
|
|
cpu_region);
|
|
|
+ g_free(name);
|
|
|
}
|
|
|
|
|
|
/* Limit main memory. */
|