On 8/11/21 4:57 AM, LIU Zhiwei wrote:
I still don't know why the value written sign-extended. If that's the the rule of final specification, I will try to obey it although our Linux will not depend on the high part.
The text that I'm looking at is https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMFDQC-and-Priv-v1.11/riscv-privileged-20190608.pdf 3.1.6.2 Base ISA Control in mstatus Register In the fifth paragraph, the requirement for sign-extension is detailed. r~