Re: [hatari-devel] IDE byteswap option broken? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] IDE byteswap option broken?
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sat, 6 Jun 2020 11:49:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1591436965; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=5+xNV01QSop4bzDL99E1F1u1Q2JRxyn9H4CV0nyrD7Q=; b=FhQtcZq13SpoJycR5QJuQ+WT6bCT6wbUBU4aagA4IaWTAnFQyBN9RG4HNIccuu4+RO 4valVlItArNw4POGPn9rO+H+dXMBVtYWL9P3RdXI8R1dxal8rKGVwvK6S90jtADljYjt b8MPnetk53wn9Xe6+lUu26lp5ZZT+3kpNaPbW1ImsDmVqkiYzEBOmOiSFtmYxOblmLzk HF7aX2ethlZ/hf3qIbjd4Hlrq/R9Y5d0WqS+i2dpGVggR2tR/i1JkHc4wS/oA68S+Oy+ 62ZZCHbQOzZFN+BLUUIYrNiNqY/s2RBC8pS+c56ZjHQUjjiClAhx1yOWsRIm6gVRRNzL 0Q7w==
Hi,
After playing around for some time my impression is that changing the
byteswap setting *in the UI* does not work. When I switch from Off to On or
vice-versa, after a reset nothing has changed. But when I eject the drive,
reset Hatari, and then assign the previous image again, after the next reset
the byte order is as expected.
Best regards
Uwe
> Am Wed, 3 Jun 2020 22:34:03 +0200
> schrieb Uwe Seimet <Uwe.Seimet@xxxxxxxxx>:
>
> > There might be an issue with Hatari's byteswap option. With a drive
> > image that has a regular (i.e. not Atari IDE but ACSI/SCSI/PC) layout
> > whenever I read a sector the contents are swapped, regardless of
> > whether byteswap is set to On or Off. My expectation is that On and
> > Off would never yield the same result, i.e. one setting would return
> > swapped data, the other not.
>
> Hi,
>
> I am not aware of any changes in that area, so I'm surprised that this
> should not work anymore. Could you add some debugging code to
> bdrv_read() and maybe some other spots that use "byteswap" in src/ide.c
> to see what's going on?
>
> Thanks,
> Thomas
>
>