riscv / riscv-cheri

This repository contains the CHERI extension specification, adding hardware capabilities to RISC-V ISA to enable fine-grained memory protection and scalable compartmentalization.
https://jira.riscv.org/browse/RVG-148
Creative Commons Attribution 4.0 International
47 stars 28 forks source link

The operation of C.JALR seems to be wrong #300

Closed francislaus closed 3 months ago

francislaus commented 3 months ago

The description of C.JALR links to JALR. In the JALR the PCC's offset is incremented by 4 and then written to the cd register. However, I think for C.JALR, it seems necessary to increment the PCC by 2 because the instruction is only 16 bits long.