1 from soc
.regfile
.regfiles
import FastRegs
2 from soc
.decoder
.power_enums
import SPR
4 def fast_reg_to_spr(spr_num
):
5 if spr_num
== FastRegs
.CTR
:
7 elif spr_num
== FastRegs
.LR
:
9 elif spr_num
== FastRegs
.TAR
:
11 elif spr_num
== FastRegs
.SRR0
:
13 elif spr_num
== FastRegs
.SRR1
: