3 ms·
Much closer than I would have expected. But what's this about RISC-V not having a jump with a register and offset address? Doesn't JALR have a 12-bit offset t
by kragen 4y ago
Much closer than I would have expected. But what's this about RISC-V not having a jump with a register and offset address? Doesn't JALR have a 12-bit offset that's added to the base register rs1? How is that different from RISC-I's JMP COND, S2(Rx)? Does COND mean the jump is conditional, like JMPR EQ?
Interestingly since this article most of the "In RISC-V, but not RISC-I" instructions have been moved to extensions: Zicsr for the CSR instructions and Zifencei for the FENCE.I instruction (which turns out not to be useful for user processes running on a multicore processor with a multitasking OS like FreeBSD or Linux). That leaves only AUIPC, SBREAK (now called EBREAK), and FENCE. So it's even closer now than it was in 02017.
- Dylan16807 4y ago> Does COND mean the jump is conditional, like JMPR EQ? Yes. The better generic description would have been Branch with register + offset but the RISC-I specific language uses "Jump" for everything.
- kragen 4y agoSo what's missing is conditional branch to a runtime-computed address.