PiTubeDirect
PiTubeDirect copied to clipboard
Native ARM Co Pro: Implement X SWI Bit
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