PiTubeDirect icon indicating copy to clipboard operation
PiTubeDirect copied to clipboard

Native ARM Co Pro: Implement X SWI Bit

Open hoglet67 opened this issue 9 months ago • 1 comments

See discussion here: https://stardot.org.uk/forums/viewtopic.php?p=424768#p424768

To correctly handle the X prefix, the SWI handler (in tube-swi.c) would need to install a temporary error handler. This would restore the original error handler, unwind the call and return to the caller with the V bit set. A non-error would also need to restore the original error handler and return with the V bit clear.

See #200 for how this was done in the RISC-V ECall Handler

hoglet67 avatar May 08 '24 11:05 hoglet67