static void rc4030_dma_tt_write(void *opaque, hwaddr addr, uint64_t data,

                                unsigned int size)

{

    rc4030State *s = opaque;



    /* write memory */

    memcpy(memory_region_get_ram_ptr(&s->dma_tt) + addr, &data, size);



    /* update dma address space (only if frame field has been written) */

    if (addr % sizeof(dma_pagetable_entry) == 0) {

        int index = addr / sizeof(dma_pagetable_entry);

        memory_region_transaction_begin();

        rc4030_dma_as_update_one(s, index, (uint32_t)data);

        memory_region_transaction_commit();

    }

}

static void rc4030_dma_tt_write(void *opaque, hwaddr addr, uint64_t data,

                                unsigned int size)

{

    rc4030State *s = opaque;



    

    memcpy(memory_region_get_ram_ptr(&s->dma_tt) + addr, &data, size);



    

    if (addr % sizeof(dma_pagetable_entry) == 0) {

        int index = addr / sizeof(dma_pagetable_entry);

        memory_region_transaction_begin();

        rc4030_dma_as_update_one(s, index, (uint32_t)data);

        memory_region_transaction_commit();

    }

}

static void rc4030_dma_tt_write(void *opaque, hwaddr addr, uint64_t data,                                 unsigned int size)     rc4030State *s = opaque;     memcpy(memory_region_get_ram_ptr(&s->dma_tt) + addr, &data, size);     if (addr % sizeof(dma_pagetable_entry) == 0) {         int index = addr / sizeof(dma_pagetable_entry);         memory_region_transaction_begin();         rc4030_dma_as_update_one(s, index, (uint32_t)data);         memory_region_transaction_commit();         memory_region_transaction_begin();         memory_region_transaction_commit();
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,

                                unsigned int VAR_3)

{

    rc4030State *s = VAR_0;



    

    memcpy(memory_region_get_ram_ptr(&s->dma_tt) + VAR_1, &VAR_2, VAR_3);



    

    if (VAR_1 % sizeof(dma_pagetable_entry) == 0) {

        int VAR_4 = VAR_1 / sizeof(dma_pagetable_entry);

        memory_region_transaction_begin();

        rc4030_dma_as_update_one(s, VAR_4, (uint32_t)VAR_2);

        memory_region_transaction_commit();

    }

}

static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,
unsigned int VAR_3)
{ rc4030State *s = VAR_0; memcpy(memory_region_get_ram_ptr(&s->dma_tt) + VAR_1, &VAR_2, VAR_3); if (VAR_1 % sizeof(dma_pagetable_entry) == 0) { int VAR_4 = VAR_1 / sizeof(dma_pagetable_entry); memory_region_transaction_begin(); rc4030_dma_as_update_one(s, VAR_4, (uint32_t)VAR_2); memory_region_transaction_commit(); } }