Fix internal error caused by invalid LR / SC / AMO widths.
The RISC-V spec. only shows LR / SC / AMOs for word and double widths even though the encoding would naturally extend to other widths (it is a little unclear). Previously the Sail model would decode the unused widths but throw an internal error in execute. With this change the unused widths will not be decoded and will cause illegal instruction exceptions instead.
parent
31b53ea1
Please register or sign in to comment