riscv / riscv-j-extension

Working Draft of the RISC-V J Extension Specification
https://jira.riscv.org/browse/RVG-128
Creative Commons Attribution 4.0 International
158 stars 19 forks source link

Pointer Masking Example with N=16 #51

Closed martinmaas closed 9 months ago

martinmaas commented 9 months ago

Feedback by Ved Shanbhogue:

Would it be better if the example was representative of the only N values (N=16) supported by the extension?

SiFiveHolland commented 9 months ago

Also the current example in the spec is wrong. The hex doesn't match the binary:

0xAAFFFFFF12345678
NVBITS[1010101] VBITS[11111111111111111111111110001...000]

Bit 56 is set, so this is 0xABFFFFFF12345678.

martinmaas commented 9 months ago

Addressed in 92a88a2.