Add RISC-V RV32I support and 32/64-bit fixes

RV32I is missing SYSTEM and FENCE support, both of which doesn't yet
fit in the simple framework.