note possible BE/LE mode needed for memory reads/writes
[soc.git] / src / soc / decoder / isa / caller.py
index f76afdab5bc28d0200cdc847a062e4a2db9809a1..4c2cfd83a966b4c212fc0c8deddfb23b696678f7 100644 (file)
@@ -51,6 +51,9 @@ class Mem:
     def _get_shifter_mask(self, wid, remainder):
         shifter = ((self.bytes_per_word - wid) - remainder) * \
             8  # bits per byte
+        # XXX https://bugs.libre-soc.org/show_bug.cgi?id=377
+        # BE/LE mode?
+        # shifter = remainder * 8
         mask = (1 << (wid * 8)) - 1
         print ("width,rem,shift,mask", wid, remainder, hex(shifter), hex(mask))
         return shifter, mask