lv.virt_mode := ctrl.msr(MSR_DR); lv.priv_mode := not ctrl.msr(MSR_PR); lv.mode_32bit := not ctrl.msr(MSR_SF);
https://libre-soc.org/irclog/%23libre-soc.2021-12-13.log.html#t2021-12-13T09:56:59 plan: add MSRSpec namedtuple in consts.py then compldst_multi.py uses it <lkcl> ./experiment/compldst_multi.py: comb += pi.msr_pr.eq(oper_r.msr[MSR.PR]) <lkcl> msr_spec = MSRSpec(dr=oper_r.msr[MSR.DR], pr=oper_r.msr[MSR.PR], ....) and all places where msr_pr are passed, are replaced with msr_spec (or, shorter: just msr)
i believe this one is completed now.