Re: [hatari-devel] Potential 68040 CPU/MMU fail with MOVES |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Thanks. I got both almost correct but still they were also stupidly wrong..
From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
Sent: 12 February 2024 19:42 To: Hatari devel list <hatari-devel@xxxxxxxxxxxxxxxxxxx>; Toni Wilen <twilen@xxxxxxxxxx> Subject: Re: [hatari-devel] Potential 68040 CPU/MMU fail with MOVES I was able to fix the problem and yet another issue regarding MOVES. A patch is appended (please do not modify). The patch fixes three issues:
Issue 1:
The "ismoves" flag got stuck if a page fault occurred during an access via MOVES on 68040. Subsequent instructions used a wrong function code in certain circumstances.
Issue 2:
The special handling of the function codes regarding MOVES on 68040 produced wrong results. It should translate 2 -> 1 and 6 -> 5 but did 2 -> 0 and 6 -> 4.
Issue 3:
The debugging message regarding special function code handling on 68040 printed the function code value passed to the function instead of the one loaded from the SFC or DFC register.
Also included is some minor improvement of the special function code handling (now exactly matches the values of Table 3-2 in M68040 User’s Manual) and a fixed comment.
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |