Re: [hatari-devel] Hatari clock question

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


Hi,

> Hatari RTC code reads the time from host:
> https://git.tuxfamily.org/hatari/hatari.git/tree/src/rtc.c
> 
> And allowing emulation to write host time seems rather bad form...

I did not mean that the host time should be modified when you set the time
in the emulation. If you set the time in Hatari the host time should not be
affected.

> For modifiable, host derived RTC, Hatari would need to calculated offset 
> from host time whenever emulation program tries to change RTC values, 
> and use that offset on all reads.

That is a solution that also crossed my mind.

> If you are interested on adding patch like that, it would be good if 
> others could befoe that comment whether supporting such behavior is good 
> idea, or are there potential issues?

I don't intend to provide a patch, I just noticed a potential problem where
Hatari's behavior differs from real hardware and reported it. It turned out
that the software problem I stumbled upon is not caused by the date/time.
But I would not be surprised if (maybe not now but in the future) this will actually become an issue.

Best regards

Uwe



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