Fix up some DMA emulation