Re: [hatari-devel] FDC Memory Snapshot Restore not fully working

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


I had a look at the source and I found the issue.
It's not saving the current DMA address.

Just need to add the following line to the snapshot and it works fine now:

    MemorySnapShot_Store(&FDC_DMA_Address, sizeof(FDC_DMA_Address));

btw, I forgot to introduce myself. I'm squall (Hataroid) from the atari-forum 🙂


From: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
Sent: Wednesday, 9 September 2020 6:15 AM
To: hatari-devel@xxxxxxxxxxxxxxxxxxx <hatari-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [hatari-devel] FDC Memory Snapshot Restore not fully working
 
Le 08/09/2020 à 09:02, D C a écrit :
> Recent versions of Hatari don't seem to fully restore the state
> correctly as I'll get double bus errors or other loading errors when
> restoring.
>
> I think it might be in the FDC emulation as if I switch it out with the
> older fdc code (from 1.8.0), there's no issues saving and restoring.
>
> I tried this on the latest Windows Automated build as well as the stable
> 2.2.1.
> Easiest on games which have a lot of disk access (I tried it on Double
> Dragon and SWIV).
> - Load game disk
> - Save a memory snapshot during heavy loading phase
> - You need to Quit and restart Hatari
> - Load the save state straight away
>

Hi

does anyone reproduce this problem ? It would help to have several
examples to track this issue.

Nicolas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/