void address_space_init(AddressSpace *as, MemoryRegion *root)

{

    memory_region_transaction_begin();

    as->root = root;

    as->current_map = g_new(FlatView, 1);

    flatview_init(as->current_map);

    as->ioeventfd_nb = 0;

    as->ioeventfds = NULL;

    QTAILQ_INSERT_TAIL(&address_spaces, as, address_spaces_link);

    as->name = NULL;

    memory_region_transaction_commit();

    address_space_init_dispatch(as);

}

void address_space_init(AddressSpace *as, MemoryRegion *root)

{

    memory_region_transaction_begin();

    as->root = root;

    as->current_map = g_new(FlatView, 1);

    flatview_init(as->current_map);

    as->ioeventfd_nb = 0;

    as->ioeventfds = NULL;

    QTAILQ_INSERT_TAIL(&address_spaces, as, address_spaces_link);

    as->name = NULL;

    memory_region_transaction_commit();

    address_space_init_dispatch(as);

}

void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1)

{

    memory_region_transaction_begin();

    VAR_0->VAR_1 = VAR_1;

    VAR_0->current_map = g_new(FlatView, 1);

    flatview_init(VAR_0->current_map);

    VAR_0->ioeventfd_nb = 0;

    VAR_0->ioeventfds = NULL;

    QTAILQ_INSERT_TAIL(&address_spaces, VAR_0, address_spaces_link);

    VAR_0->name = NULL;

    memory_region_transaction_commit();

    address_space_init_dispatch(VAR_0);

}

void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1)
{ memory_region_transaction_begin(); VAR_0->VAR_1 = VAR_1; VAR_0->current_map = g_new(FlatView, 1); flatview_init(VAR_0->current_map); VAR_0->ioeventfd_nb = 0; VAR_0->ioeventfds = NULL; QTAILQ_INSERT_TAIL(&address_spaces, VAR_0, address_spaces_link); VAR_0->name = NULL; memory_region_transaction_commit(); address_space_init_dispatch(VAR_0); }