Re: [hatari-devel] Hatari clock question |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari clock question
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Mon, 15 Aug 2022 09:15:54 +0200
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1660547754; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=OWwQCWr6UvGPdtiHyUTRrnBMImUCoveYbKEdS71IyLI=; b=kC4SdrouFIgHrLuqAPNsa8BFGjBue6H2T4b1TSDoIEDAE2bFfyC/BzVeXMDdOdXXbb 3dWzvwmkzfgWLUZx4hLIsOfRJrMbjA6kQ0VgjtmpRJcyhOQ/G3bzCPAkLq14P2duJR/2 QBmtZIwzZsAps8bJ4rcMz8rDaMkqLg+/XwcIzINLhgOMjd28le/u3tk5gGqFW3K7P2xv jgK+EvYE80rsEXL+Zih7wgpocYYbrAC2tcvhj4sJp0i3osBfoiqMUvYM1OQR6l+cHVyq 9caHwJIDjxJTJs5q4gtW9FXzKy3Rj0Ds7r4g6pFQg5fXWDenaL2Sq8/UlN2WcGwkimeg /ztA==
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