From: Michael Nolan Date: Wed, 18 Mar 2020 13:34:45 +0000 (-0400) Subject: Fix bug where enum values weren't getting set to int X-Git-Tag: div_pipeline~1683 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f04d9931f6a33e2e4a879d3284b273a6406b6d0;p=soc.git Fix bug where enum values weren't getting set to int --- diff --git a/src/soc/decoder/power_enums.py b/src/soc/decoder/power_enums.py index fa7d1cab..ab838132 100644 --- a/src/soc/decoder/power_enums.py +++ b/src/soc/decoder/power_enums.py @@ -220,5 +220,5 @@ class CryIn(Enum): # http://bugs.libre-riscv.org/show_bug.cgi?id=261 spr_csv = get_csv("sprs.csv") -fields = [(row['SPR'], row['Idx']) for row in spr_csv] +fields = [(row['SPR'], int(row['Idx'])) for row in spr_csv] SPR = Enum('SPR', fields)