Rename the Zylg Global flag from GL to G #1282
<!-- nspr:stack -->
Stack
main<sub>Managed by nspr. Each pull request shows only its own changes.</sub>
<!-- /nspr:stack -->
It's a bit os a shame that it doesn't match CHERIoT but the other fields are just the first letter of each word so G for Global seems consistent.
Approved these changes.
It's a bit os a shame that it doesn't match CHERIoT but the other fields are just the first letter of each word so G for Global seems consistent.
I guess we could also keep the current spelling and rename the extension to Zygl and then GL can interpreted as Global-Local? Not sure what is better
FWIW, CHERIoT's GL wasn't meant as "G(lobal)/L(ocal)" but rather "GL(obal)". Also in practice we have, I think, ended up using either the full names (especially in C and C++) or the single-letter abbreviations our debug pretty-printer uses (which uses G for "G(lobal)"). The two-letter abbreviations in the ISA document feel a bit archaic at this point.
Would be good to get some input here from the cheriot side (@nwf @davidchisnall)
I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.
I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.
The Zyseal chapter, while not up for ratification in this round, presently uses SE and US. I suppose S and U a la CHERIoT-RTOS's debug pretty-printer would be OK?
> I'm happy with 'G' as we don't have any other cases where we use more than one letter of a single word in an abbreviations AFAIK.
> The Zyseal chapter, while not up for ratification in this round, presently usesSEandUS. I supposeSandUa la CHERIoT-RTOS's debug pretty-printer would be OK?
it could be worth renaming them now while we remember.
tariqkurd-repo
arichardson
The GL naming was taken from CHERIoT, which uses two-letter names for all
permissions (GL, LG, SL, LM, LD, SD, EX, etc.), whereas CHERI ISAv9 called the
bit GLOBAL. This specification uses single-letter names for single-word
flags and permissions (R, W, X, C, P). Using G avoids confusion with the
"Local/Global" order in the Zylg extension name and also matches the G (Global)
bit naming in RISC-V PTEs. Also use "local or global" order in Zylg prose to
match the extension name.
Addresses the following ARC review comment on v0.9.10:
Inconsistent - pick one order."
Signed-off-by: Alex Richardson <alexrichardson@google.com>