riscv/riscv-isa-manual

funct7 values of SRA,SUBW,SRAW appear to be incorrect in unpriv section 4.2.2 of version 20240411.

puyogo-suzuki opened this issue · 2 comments

Hi,
I think that the funct7 values in unpriv section 4.2.2 of version 20240411 are incorrect.
In the V20191213, funct7 values are 7-bits (in section 5.2).
The values are 0000000 or 0100000.
image

However, in the version 20240411, funct7 values have only 6-bits; the least significant bits seem to be missing.
The values are 000000 or 010000.
image

Is this correct?

The relevant file is:

{bits: 7, name: 'funct7', attr: ['7', '000000', '010000', '000000', '000000', '010000'], type: 8}

@wmat this is indeed a bug; these funct7 fields should all have another 0 appended on the right.