What is the point of RISC-V? You are taking a massive performance hit as it is not a bytecode format designed for being portable but a HW instruction architecture. There are intentional tradeoffs such as the mapping of bits as a direct result of this, which is extremely expensive in SW, but is just wire swapping in HW.
I would recommend you use WebAssembly instead.
