riscv: Make contribs build again.
commit8704f528f227f587d0e06dfd2f807aeca7a69a71
authorCharles Zhang <charleszhang99@yahoo.com>
Thu, 1 Jun 2023 14:39:26 +0000 (1 16:39 +0200)
committerCharles Zhang <charleszhang99@yahoo.com>
Thu, 1 Jun 2023 14:54:43 +0000 (1 16:54 +0200)
tree79faddd625e22466f8248dfbb010987ead203f84
parentaab1f64b0419b03b7d613751014ee6bcbb7e8583
riscv: Make contribs build again.

The issue was that the LINKAGE_TEMP_REG being NL3 was a C argument
register, so of course that caused clashing on C call-out, causing
problems with run-program. Going back to NL7 didn't work either
because it wasn't getting saved before entry into the trampoline. The
code here used to have NL7 before the trampoline code was gutted and
then restored, so I'm wondering how this ever worked before, because
it definitely did. Pick LIP as the TEMP_REG now because not only does
it get saved, it's also the least likely thing to get disturbed by
clobbering.

Fixes #lp2002930.

Also remove assembly routine printing because it doesn't need to be
part of the build script (unlike the other files in output/ which
can't trivially be recovered from a built image), and because not all
disassembler printers have been written on riscv yet.
NEWS
make-target-2-load.lisp
src/runtime/riscv-arch.c