add bit more TODO
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 01:46:58 +0000 (02:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 01:46:58 +0000 (02:46 +0100)
src/soc/fu/trap/main_stage.py

index d9b0040aa69dbd09b5298cef2b610f8e4732edcd..a9f9195454913830ec71ce0dbdd294e14248ca65 100644 (file)
@@ -124,7 +124,7 @@ class TrapMainStage(PipeModBase):
             with m.Case(InternalOp.OP_MTMSR):
                 # TODO: some of the bits need zeroing?
                 """
-                if e_in.insn(16) = '1' then
+                if e_in.insn(16) = '1' then  <-- this is X-form field "L".
                     -- just update EE and RI
                     ctrl_tmp.msr(MSR_EE) <= c_in(MSR_EE);
                     ctrl_tmp.msr(MSR_RI) <= c_in(MSR_RI);
@@ -140,7 +140,8 @@ class TrapMainStage(PipeModBase):
                         ctrl_tmp.msr(MSR_DR) <= '1';
                 """
                 # TODO translate this:
-                # if e_in.insn(16) = '1' then
+                # L = self.fields.FormXL.L[0:-1]
+                # if e_in.insn(16) = '1' then  <-- this is X-form field "L".
                 #     -- just update EE and RI
                 #     ctrl_tmp.msr(MSR_EE) <= c_in(MSR_EE);
                 #     ctrl_tmp.msr(MSR_RI) <= c_in(MSR_RI);