void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner,

                                  AcpiCpuHotplug *gpe_cpu, uint16_t base)

{

    CPUState *cpu;



    CPU_FOREACH(cpu) {

        acpi_set_cpu_present_bit(gpe_cpu, cpu, &error_abort);

    }

    memory_region_init_io(&gpe_cpu->io, owner, &AcpiCpuHotplug_ops,

                          gpe_cpu, "acpi-cpu-hotplug", ACPI_GPE_PROC_LEN);

    memory_region_add_subregion(parent, base, &gpe_cpu->io);

    gpe_cpu->device = owner;

}

void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner,

                                  AcpiCpuHotplug *gpe_cpu, uint16_t base)

{

    CPUState *cpu;



    CPU_FOREACH(cpu) {

        acpi_set_cpu_present_bit(gpe_cpu, cpu, &error_abort);

    }

    memory_region_init_io(&gpe_cpu->io, owner, &AcpiCpuHotplug_ops,

                          gpe_cpu, "acpi-cpu-hotplug", ACPI_GPE_PROC_LEN);

    memory_region_add_subregion(parent, base, &gpe_cpu->io);

    gpe_cpu->device = owner;

}

void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1,

                                  AcpiCpuHotplug *VAR_2, uint16_t VAR_3)

{

    CPUState *cpu;



    CPU_FOREACH(cpu) {

        acpi_set_cpu_present_bit(VAR_2, cpu, &error_abort);

    }

    memory_region_init_io(&VAR_2->io, VAR_1, &AcpiCpuHotplug_ops,

                          VAR_2, "acpi-cpu-hotplug", ACPI_GPE_PROC_LEN);

    memory_region_add_subregion(VAR_0, VAR_3, &VAR_2->io);

    VAR_2->device = VAR_1;

}

void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1,
AcpiCpuHotplug *VAR_2, uint16_t VAR_3)
{ CPUState *cpu; CPU_FOREACH(cpu) { acpi_set_cpu_present_bit(VAR_2, cpu, &error_abort); } memory_region_init_io(&VAR_2->io, VAR_1, &AcpiCpuHotplug_ops,
VAR_2, "acpi-cpu-hotplug", ACPI_GPE_PROC_LEN); memory_region_add_subregion(VAR_0, VAR_3, &VAR_2->io); VAR_2->device = VAR_1; }