View Single Post
Old 10 September 2016, 09:38   #2
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 20,660
What is your HDF size in bytes?

EDIT: Duplicated, some buffer overflow somewhere..

EDIT2: Fixed. It was unexpected side-effect of "cpu trace" which collects remaining CPU cycles if CPU is currently mid-instruction for "replying" for possible state file creation and loading. (It is always done when entering GUI to guarantee proper statefile if saved from GUI). If GUI was entered during Xebec internal DMA operation (Current CPU instruction was DMA enable write), whole DMA operation was collected which can be thousands of memory accesses, overflowing the buffer. (No normal instruction can overflow it, thats why there was no extra checks).

Correct fix would be to decouple DMA start CPU memory access and actual DMA transfer (for example A2091 and others do it this way), but it is not worth the trouble with these ancient drives which are only emulated because you can

Last edited by Toni Wilen; 10 September 2016 at 10:44.
Toni Wilen is online now  
Page generated in 0.05443 seconds with 9 queries