Open tony-cole opened 6 days ago
@tony-cole : This part of the spec is only a place-holder and the current notation is not terribly well-defined as you point out. This is because the text is temporary and will eventually be replaced with auto-generated fragments of SAIL extracted from the open-source RISC-V CHERI SAIL model.
We should keep it like this for now and revisit when the SAIL is available. Note that we've had similar comments in the past.
Re: riscv-cheri-v0.8.2.pdf the Decoding pseudo-code on page 14.
For the calculations of
ct
andcb
to be correct,R
needs to be bounded toMW
bits, as follows:R[MW-1:0] = B - 2^MW-2^
and note that the comparisons in Tables 8 & 9 are unsigned.