rather invasive reduction of SPR regfile size
[soc.git] / src / soc / regfile / util.py
index 5ccc4c54c607d1c6cc18f4d0fbd672353d8646d7..e5f095dc9bff939896e5330cf6cbe02ea9dd7023 100644 (file)
@@ -1,6 +1,8 @@
 from soc.regfile.regfiles import FastRegs
-from soc.decoder.power_enums import SPR, spr_dict
+from soc.decoder.power_enums import SPRfull as SPR, spr_dict
 
+# note that we can get away with using SPRfull here because the values
+# (numerical values) are what is used for lookup.
 spr_to_fast = { SPR.CTR: FastRegs.CTR,
                 SPR.LR: FastRegs.LR,
                 SPR.TAR: FastRegs.TAR,