RISC-V: __io_writes should respect the length argument