missed that soc.regfile.util has moved to openpower.util
[soc.git] / src / soc / regfile / util.py
index f27d711e417e0fd990cd42decbd5988497c979f3..30a0f6c8af267d2d6ee46133b0eb2b31fa9bdaca 100644 (file)
@@ -1,10 +1,4 @@
-from soc.regfile.regfiles import FastRegs
-from soc.decoder.power_enums import SPR
-
-def fast_reg_to_spr(spr_num):
-    if spr_num == FastRegs.CTR:
-        return SPR.CTR.value
-    elif spr_num == FastRegs.LR:
-        return SPR.LR.value
-    elif spr_num == FastRegs.TAR:
-        return SPR.TAR.value
+# XXX DO NOT NORMALLY USE WILDCARD IMPORTS, IT IS EXTREMELY BAD PRACTICE
+# however it solves a migration issue moving over to the openpower library
+# so a temporary exemption can be made
+from openpower.util import *