power_enums.py SPRs Enum to read from this: http://libre-riscv.org/openpower/isatables/sprs.csv
Done: 474eb33c
(In reply to Michael Nolan from comment #1) > Done: 474eb33c ah magic that was quick! :)
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 :)
(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.
(In reply to Michael Nolan from comment #4) > Oh no! :) ehh it was fiiine > 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? hmmm... separate doesn't make a lot of sense, people might think they're somehow not related. > Side note, why would they make them duplicate anyhow? That seems somewhat > nutty. sigh i know, welcome to an "organically-grown" ISA. they should have put a prefix "H" or "S" in front of them, with "U" for "userspace".