Commit dcb462b
rvp: Fix shift amount masking in PSLL.DWS
Use 5-bit mask (0x1F) for shift amount instead of 8-bit field
extraction. Spec defines rs2[4:0] as shift amount. Also removes
incorrect >= 32 check that zeroed result.
Fixed instruction:
- PSLL.DWS: P-ext spec
Changed: P_FIELD(RS2, 0, 8) with >= 32 check → RS2 & 0x1F
Signed-off-by: Max Chou <max.chou@sifive.com>1 parent 5afd1f4 commit dcb462b
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
0 commit comments