From 7f04d9931f6a33e2e4a879d3284b273a6406b6d0 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 18 Mar 2020 09:34:45 -0400 Subject: [PATCH] Fix bug where enum values weren't getting set to int --- src/soc/decoder/power_enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2