NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-mac68k/13078 (Mac 68LC040 problem)
The following reply was made to PR port-mac68k/13078; it has been noted by GNATS.
From: Nat Sloss <nathanialsloss%yahoo.com.au@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: port-mac68k/13078 (Mac 68LC040 problem)
Date: Mon, 2 Dec 2024 23:51:25 +1100
I have two simpler patches for consideration they are similar exepept one sees
if the assembled instruction starts with an 'f' (i would have to add
instructions starting with 'p' also) and the second alternatvely checks the
assembled opcode is a n f-line instruction and applies the fix.
They patch sys/m68k to ensure there's a nop at the end to task switching just
incase it switching into an f-line instruction and patch the assembler gas to
add the nops before f-line instructions:
http://ftp.netbsd.org/pub/NetBSD/misc/nat/lc040nop-fpuemul.fix-gas.diff
http://ftp.netbsd.org/pub/NetBSD/misc/nat/lc040nop-fpuemul.fix-gas-take2.diff
I believe take2 is the preferred one would you agree?
These patches patch all f-line (coprocessor and fpu instructions) without
needing to alter the way m86k assembler is written (provided you use labels
and not hardcoded addresses based on instruction byte counting).
Best regards,
Nat
Home |
Main Index |
Thread Index |
Old Index