Commit aef009c
fix: mstatus.SXL/UXL should be 0 when S/U modes are not implemented (#3231)
This PR fixes #3182 by ensuring the SXL and UXL fields in mstatus are tied to 0 when S-mode or U-mode is not implemented, as required by the RISC-V Privileged Spec.
Co-authored-by: JeanRochCoulon <jean-roch.coulon@thalesgroup.com>1 parent 587312e commit aef009c
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
1941 | | - | |
1942 | | - | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1943 | 1945 | | |
1944 | 1946 | | |
1945 | 1947 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments