higan-emu/libco

RISC V

Opened this issue · 2 comments

Hi there

I would be interested to compile bsnes to a RISC V machine.

Do you have any plans to support that platform?

It's an open source architecture, backed by nearly everyone, except ARM :P

Is this a lot of work?

There are no plans to support RISC V at this time, although I wouldn't object to somebody contributing an implementation.

An implementation is not a lot of code (most of them are about a hundred lines), but it does require deep knowledge of the ABI of the platform in question, such as the stack layout, which registers need to be saved and restored, etc. It would also help if there were a way to automatically test the implementation in a GitHub Action, the same way that the current backends are tested (on real hardware where GitHub provides it, inside QEMU on x86_64 otherwise).

Feel free to cherry-pick my implementation from the ares fork of libo: ares-emulator/ares#1249