X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=blobdiff_plain;f=src%2Fsoc%2Fdecoder%2Fpower_svp64.py;h=8bb896afcd11664edba15c42ffd93e6980df6557;hp=32498f954566d25cde49a688ad0bcac248067ba7;hb=23017a47970e7908664056261c3e2836a0257e44;hpb=a044ebddf465b15ae4ee567f8ed3ca2417ebe20b diff --git a/src/soc/decoder/power_svp64.py b/src/soc/decoder/power_svp64.py index 32498f95..8bb896af 100644 --- a/src/soc/decoder/power_svp64.py +++ b/src/soc/decoder/power_svp64.py @@ -128,6 +128,13 @@ class SVP64RM: cr_out = entry['CR out'] entry['sv_cr_out'] = svp64_dest.get(cr_out, None) + # more enum-friendly Ptype names. should have done this in + # sv_analysis.py, oh well + if entry['SV_Ptype'] == '1P': + if entry['SV_Ptype'] = 'P1' + if entry['SV_Ptype'] == '2P': + if entry['SV_Ptype'] = 'P2' + return v30b if __name__ == '__main__':