[libre-riscv-dev] [Bug 261] power_enums.py to read SPRs from sprs.csv
bugzilla-daemon at libre-riscv.org
bugzilla-daemon at libre-riscv.org
Wed Mar 18 14:40:34 GMT 2020
http://bugs.libre-riscv.org/show_bug.cgi?id=261
--- Comment #4 from Michael Nolan <mtnolan2640 at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #3)
> oops i'd forgotten to put in the extra fields (length, priv yes/no), added
> them to the csv file and *then* discovered you'd learned that the key-names
> aren't unique. had a lovely time re-introducing the suffixes you added,
> michael :)
Oh no!
I'm thinking I could either make the enum value a namedstruct/SPR object that
contains the length/privelages, or make a separate dict of structs/objects for
that information. Thoughts on which way to go?
Side note, why would they make them duplicate anyhow? That seems somewhat
nutty.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-riscv-dev
mailing list