Revision 0f4f039b hw/mac_dbdma.c
b/hw/mac_dbdma.c | ||
---|---|---|
707 | 707 |
DBDMA_DPRINTF("channel 0x%x reg 0x%x\n", |
708 | 708 |
(uint32_t)addr >> DBDMA_CHANNEL_SHIFT, reg); |
709 | 709 |
|
710 |
value = bswap32(value); |
|
711 |
|
|
712 | 710 |
/* cmdptr cannot be modified if channel is RUN or ACTIVE */ |
713 | 711 |
|
714 | 712 |
if (reg == DBDMA_CMDPTR_LO && |
... | ... | |
788 | 786 |
break; |
789 | 787 |
} |
790 | 788 |
|
791 |
value = bswap32(value); |
|
792 | 789 |
return value; |
793 | 790 |
} |
794 | 791 |
|
... | ... | |
845 | 842 |
s = qemu_mallocz(sizeof(DBDMA_channel) * DBDMA_CHANNELS); |
846 | 843 |
|
847 | 844 |
*dbdma_mem_index = cpu_register_io_memory(dbdma_read, dbdma_write, s, |
848 |
DEVICE_NATIVE_ENDIAN);
|
|
845 |
DEVICE_LITTLE_ENDIAN);
|
|
849 | 846 |
register_savevm(NULL, "dbdma", -1, 1, dbdma_save, dbdma_load, s); |
850 | 847 |
qemu_register_reset(dbdma_reset, s); |
851 | 848 |
|
Also available in: Unified diff